diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-09-12 18:34:03 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-09-12 18:34:03 -0500 |
commit | fcb7002e3ba29c6c4596fa8bee62447c375986c1 (patch) | |
tree | 1a2a8e4ff57fd00b6af527d5688c5ef366f18ee9 | |
parent | 6040f109293e17d395fa31fb956f92943bb4ec61 (diff) |
fix(nvim): update lua-dev setup to reflect new version
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua b/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua index f764559..660fb55 100644 --- a/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua +++ b/nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua @@ -7,30 +7,28 @@ M.setup = function() return end + lua_dev.setup() + local lsp = require("tobyvin.lsp") local lspconfig = require("lspconfig") - lspconfig.sumneko_lua.setup(lua_dev.setup({ - library = { - vimruntime = true, -- runtime path - types = true, -- full signature, docs and completion of vim.api, vim.treesitter, vim.lsp and others - plugins = true, -- installed opt or start plugins in packpath - -- you can also specify the list of plugins to make available as a workspace library - -- plugins = { "nvim-treesitter", "plenary.nvim", "telescope.nvim" }, - }, - -- runtime_path = true, - lspconfig = lsp.config({ - settings = { - Lua = { - format = { - enable = false, - }, - telemetry = { - enable = false, - }, + lspconfig.sumneko_lua.setup(lsp.config({ + settings = { + Lua = { + completion = { + callSnippet = "Replace", + }, + diagnostics = { + globals = { "vim" }, + }, + format = { + enable = false, + }, + telemetry = { + enable = false, }, }, - }), + }, })) end |