Dots Updated
* Adds Neovim config
This commit is contained in:
32
nvim/lua/plugins/lsp-configs.lua
Normal file
32
nvim/lua/plugins/lsp-configs.lua
Normal file
@@ -0,0 +1,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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user