lsp integration with coq

This commit is contained in:
nova 2024-01-29 23:25:41 +01:00
parent 37e28c2b11
commit 95a377929a
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,19 @@
local lsp = require "lspconfig"
local coq = require "coq" -- add this
lsp.clangd.setup(coq.lsp_ensure_capabilities({
on_attach = on_attach,
capabilities = capabilities,
}))
lsp.rust_analyzer.setup(coq.lsp_ensure_capabilities({
on_attach = on_attach,
capabilities = capabilities,
}))
lsp.lua_ls.setup(coq.lsp_ensure_capabilities({
on_attach = on_attach,
capabilities = capabilities,
}))
lsp.arduino_language_server.setup(coq.lsp_ensure_capabilities({
on_attach = on_attach,
capabilities = capabilities,
}))

View File

@ -17,7 +17,10 @@ local plugins = {
'ms-jpq/coq_nvim',
branch = 'coq',
event = "InsertEnter",
init = function() vim.g.coq_settings = { auto_start = true, ["keymap.jump_to_mark"] = "<C-s>" } end,
init = function() vim.g.coq_settings = {
auto_start = 'shut-up',
["keymap.jump_to_mark"] = "<C-s>",
} end,
dependencies = {
{ "ms-jpq/coq.artifacts",
branch = "artifacts",