1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

switch back to nvim-cmp (#381)

This commit is contained in:
jdhao 2025-02-16 21:03:17 +01:00 committed by GitHub
parent ab059bbb6d
commit 2383eb7075
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -117,7 +117,7 @@ local custom_attach = function(client, bufnr)
end
end
local capabilities = require("cmp_nvim_lsp").default_capabilities()
local capabilities = vim.lsp.protocol.make_client_capabilities()
-- required by nvim-ufo
capabilities.textDocument.foldingRange = {

View File

@ -23,7 +23,7 @@ end
local plugin_specs = {
-- auto-completion engine
{
"iguanacucumber/magazine.nvim",
"hrsh7th/nvim-cmp",
name = "nvim-cmp",
-- event = 'InsertEnter',
event = "VeryLazy",
@ -39,6 +39,7 @@ local plugin_specs = {
require("config.nvim-cmp")
end,
},
{
"neovim/nvim-lspconfig",
event = { "BufRead", "BufNewFile" },
@ -385,7 +386,7 @@ local plugin_specs = {
end
return false
end,
build = "cd app && npm install",
build = "cd app && npm install && git restore .",
ft = { "markdown" },
},