diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index 875e06d..02c760a 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -13,21 +13,12 @@ for _, lsp in ipairs(servers) do lspconfig[lsp].setup { on_attach = on_attach, on_init = on_init, - capabilities = { - textDocument = { - completion = { - completionItem = { - snippetSupport = false, - }, - }, - }, - }, + capabilities = capabilities, } end require("cmp").setup { sources = { - { name = "buffer" }, { name = "path" }, { name = "nvim_lsp" }, { name = "rg", keyword_length = 4 }, diff --git a/lua/plugins/custom.lua b/lua/plugins/custom.lua index 530b344..8d955f4 100644 --- a/lua/plugins/custom.lua +++ b/lua/plugins/custom.lua @@ -1,11 +1,13 @@ return { { "mfussenegger/nvim-ansible", - lazy = false, }, { - "lukas-reineke/cmp-rg", - lazy = false, + "hrsh7th/nvim-cmp", + event = "InsertEnter", + dependencies = { + "lukas-reineke/cmp-rg", + }, }, { "sindrets/diffview.nvim",