Add nvim COQ package
This commit is contained in:
parent
1d2a775658
commit
75f62a7ffb
3 changed files with 19 additions and 1 deletions
6
vim/plugin/coq.lua
Normal file
6
vim/plugin/coq.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
xpcall(function()
|
||||||
|
require("coq")
|
||||||
|
vim.api.nvim_command("command COQ COQnow --shut-up")
|
||||||
|
end, function()
|
||||||
|
vim.api.nvim_command("command COQ echoerr 'COQ not loaded.'")
|
||||||
|
end)
|
|
@ -1,5 +1,14 @@
|
||||||
local config = require 'lspconfig'
|
local config = require 'lspconfig'
|
||||||
|
|
||||||
|
local ensure_capabilities
|
||||||
|
xpcall(function()
|
||||||
|
ensure_capabilities = require("coq").lsp_ensure_capabilities
|
||||||
|
end, function()
|
||||||
|
function ensure_capabilities(...)
|
||||||
|
return ...
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
local default = { on_attach = require 'lsp.attach' }
|
local default = { on_attach = require 'lsp.attach' }
|
||||||
for _, language in ipairs {
|
for _, language in ipairs {
|
||||||
"html",
|
"html",
|
||||||
|
@ -11,5 +20,5 @@ for _, language in ipairs {
|
||||||
"standardrb",
|
"standardrb",
|
||||||
"zls",
|
"zls",
|
||||||
} do
|
} do
|
||||||
config[language].setup(default)
|
config[language].setup(ensure_capabilities(default))
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,6 +32,9 @@ use {
|
||||||
};
|
};
|
||||||
'folke/twilight.nvim';
|
'folke/twilight.nvim';
|
||||||
'leafo/moonscript-vim';
|
'leafo/moonscript-vim';
|
||||||
|
'ms-jpq/coq_nvim';
|
||||||
|
'ms-jpq/coq.artifacts';
|
||||||
|
'ms-jpq/coq.thirdparty';
|
||||||
'neovim/nvim-lspconfig';
|
'neovim/nvim-lspconfig';
|
||||||
'pigpigyyy/Yuescript-vim';
|
'pigpigyyy/Yuescript-vim';
|
||||||
'vim-scripts/openscad.vim';
|
'vim-scripts/openscad.vim';
|
||||||
|
|
Loading…
Reference in a new issue