From 43d45750e6c98faca4f21d0ec7fda7ed0b3b79c7 Mon Sep 17 00:00:00 2001 From: Lee Tang Date: Sun, 25 Dec 2022 19:03:07 +0800 Subject: [PATCH] update neodev Signed-off-by: Lee Tang --- nvim/lua/config/lsp-setup.lua | 12 +++++------- nvim/lua/plugins.lua | 4 ++-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/nvim/lua/config/lsp-setup.lua b/nvim/lua/config/lsp-setup.lua index 2f0f380..60017bd 100644 --- a/nvim/lua/config/lsp-setup.lua +++ b/nvim/lua/config/lsp-setup.lua @@ -8,7 +8,12 @@ local mappings = { ['f'] = 'lua vim.lsp.buf.format({async=true})', } +require("neodev").setup({ + -- add any options here, or leave empty to use the default settings +}) + local servers = { + sumneko_lua = {}, bashls = {}, yamlls = { filetypes = { 'yaml', 'yml' }, @@ -53,13 +58,6 @@ local servers = { }, }, }, - sumneko_lua = require('lua-dev').setup({ - lspconfig = { - on_attach = function(client, _) - utils.disable_formatting(client) - end, - }, - }), beancount = { init_options = { journal_file = "", diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index faa7f89..4692948 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -76,7 +76,7 @@ return require('packer').startup(function(use) config = function() require('Comment').setup() end, - }) + }) use({ 'windwp/nvim-autopairs', config = function() @@ -205,7 +205,7 @@ return require('packer').startup(function(use) 'williamboman/mason.nvim', 'williamboman/mason-lspconfig.nvim', 'folke/lsp-colors.nvim', - 'folke/lua-dev.nvim', + 'folke/neodev.nvim', 'ray-x/lsp_signature.nvim', 'RRethy/vim-illuminate',