diff --git a/lua/custom/plugins/lsp.lua b/lua/custom/plugins/lsp.lua index 488c184..9fce50c 100644 --- a/lua/custom/plugins/lsp.lua +++ b/lua/custom/plugins/lsp.lua @@ -1,4 +1,3 @@ -local cmp = require 'cmp' -- this is nvim-cmp return { { 'neovim/nvim-lspconfig', @@ -16,6 +15,9 @@ return { -- used for completion, annotations and signatures of Neovim apis { 'folke/neodev.nvim', opts = {} }, }, + config = function() + require 'custom.plugins.configs.lsp' + local cmp = require 'cmp' -- this is nvim-cmp keys = { { '', cmp.mapping.select_prev_item(), desc = 'Next completion' }, { '', cmp.mapping.select_next_item(), desc = 'Last completion' }, @@ -58,8 +60,6 @@ return { desc = 'Last completion', }, }, - config = function() - require 'custom.plugins.configs.lsp' end, }, -- See `:help gitsigns` to understand what the configuration keys do