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:
parent
ab059bbb6d
commit
2383eb7075
@ -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 = {
|
||||
|
||||
@ -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" },
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user