From fcb7002e3ba29c6c4596fa8bee62447c375986c1 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Mon, 12 Sep 2022 18:34:03 -0500 Subject: fix(nvim): update lua-dev setup to reflect new version --- nvim/.config/nvim/lua/tobyvin/plugins/lua-dev.lua | 36 +++++++++++------------ 1 file 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 -- cgit v1.2.3-70-g09d2