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
|
||||||
end
|
end
|
||||||
|
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
|
|
||||||
-- required by nvim-ufo
|
-- required by nvim-ufo
|
||||||
capabilities.textDocument.foldingRange = {
|
capabilities.textDocument.foldingRange = {
|
||||||
|
|||||||
@ -23,7 +23,7 @@ end
|
|||||||
local plugin_specs = {
|
local plugin_specs = {
|
||||||
-- auto-completion engine
|
-- auto-completion engine
|
||||||
{
|
{
|
||||||
"iguanacucumber/magazine.nvim",
|
"hrsh7th/nvim-cmp",
|
||||||
name = "nvim-cmp",
|
name = "nvim-cmp",
|
||||||
-- event = 'InsertEnter',
|
-- event = 'InsertEnter',
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
@ -39,6 +39,7 @@ local plugin_specs = {
|
|||||||
require("config.nvim-cmp")
|
require("config.nvim-cmp")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
event = { "BufRead", "BufNewFile" },
|
event = { "BufRead", "BufNewFile" },
|
||||||
@ -385,7 +386,7 @@ local plugin_specs = {
|
|||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end,
|
end,
|
||||||
build = "cd app && npm install",
|
build = "cd app && npm install && git restore .",
|
||||||
ft = { "markdown" },
|
ft = { "markdown" },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user