Skip to content

Commit

Permalink
feat: add coq and configure lsp for it
Browse files Browse the repository at this point in the history
Signed-off-by: Aljoscha Poertner <[email protected]>
  • Loading branch information
aljoshare committed Jun 17, 2024
1 parent 3dd0062 commit fa3815f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 16 deletions.
29 changes: 29 additions & 0 deletions lua/config/lsp/lspconfig.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
local lspconfig = require('lspconfig')
local coq = require('coq')
lspconfig.rust_analyzer.setup {
settings = {
['rust-analyzer'] = {},
},
coq.lsp_ensure_capabilities()
}
lspconfig.gopls.setup {
coq.lsp_ensure_capabilities()
}
lspconfig.yamlls.setup {
coq.lsp_ensure_capabilities()
}
lspconfig.marksman.setup {
coq.lsp_ensure_capabilities()
}
lspconfig.helm_ls.setup {
coq.lsp_ensure_capabilities()
}
lspconfig.gitlab_ci_ls.setup {
coq.lsp_ensure_capabilities()
}
lspconfig.jinja_lsp.setup {
coq.lsp_ensure_capabilities()
}
lspconfig.jsonls.setup {
coq.lsp_ensure_capabilities()
}
43 changes: 27 additions & 16 deletions lua/config/plugins.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
return {
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{
"hrsh7th/nvim-cmp",
-- load cmp on InsertEnter
event = "InsertEnter",
-- these dependencies will only be loaded when cmp loads
-- dependencies are always lazy-loaded unless specified otherwise
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
},
config = function()
-- ...
end,
},
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{ "nvim-tree/nvim-tree.lua" },
{
"folke/which-key.nvim",
Expand All @@ -39,7 +25,32 @@ return {
dependencies = { "mason.nvim" },
},
{ "mfussenegger/nvim-lint" },
{ "neovim/nvim-lspconfig" },
{
"neovim/nvim-lspconfig",
lazy = false,
dependencies = {
-- main one
{ "ms-jpq/coq_nvim", branch = "coq" },

-- 9000+ Snippets
{ "ms-jpq/coq.artifacts", branch = "artifacts" },

-- lua & third party sources -- See https://github.com/ms-jpq/coq.thirdparty
-- Need to **configure separately**
{ 'ms-jpq/coq.thirdparty', branch = "3p" }
-- - shell repl
-- - nvim lua api
-- - scientific calculator
-- - comment banner
-- - etc
},
init = function()
vim.g.coq_settings = {
auto_start = true, -- if you want to start COQ at startup
-- Your COQ settings here
}
end,
},
{ "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", "neovim/nvim-lspconfig" },
{ "nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter-context" },
{ "stevearc/dressing.nvim" },
Expand Down

0 comments on commit fa3815f

Please sign in to comment.