fix: bug cmp and lsp with lazy enabled for rg
This commit is contained in:
parent
04c29f5f0f
commit
c0062610a4
2 changed files with 6 additions and 13 deletions
|
@ -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 },
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue