1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
return {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end
},
{
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = { "lua_ls", "clangd", "crystalline", "html", "htmx", "jsonls", "ols"},
})
end
},
{
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require("lspconfig")
lspconfig.lua_ls.setup({})
lspconfig.clangd.setup({})
lspconfig.crystalline.setup({})
lspconfig.html.setup({})
lspconfig.htmx.setup({})
lspconfig.jsonls.setup({})
lspconfig.ols.setup({})
vim.keymap.set('n','gd', vim.lsp.buf.definition, {})
vim.keymap.set('n','K', vim.lsp.buf.hover, {})
vim.keymap.set({'n'},'<leader>ca', vim.lsp.buf.code_action, {})
end
}
}
|