Files
nvim/lua/plugins/lsp.lua
2026-01-03 18:17:24 +11:00

81 lines
1.5 KiB
Lua

return {
{
"mason-org/mason.nvim",
event = "LazyFile",
cmd = "Mason",
keys = { { "<leader>cm", "<cmd>Mason<cr>", desc = "Mason" } },
build = ":MasonUpdate",
opts_extend = { "ensure_installed" },
opts = {
ensure_installed = {
"lua-language-server",
"bash-language-server",
"css-variables-language-server",
"css-lsp",
"gopls",
"html-lsp",
"json-lsp",
"tailwindcss-language-server",
"templ",
},
},
},
{
"neovim/nvim-lspconfig",
event = "LazyFile",
opts = {
servers = {
templ = {
filetypes = { "templ" },
settings = {
templ = {
enable_snippets = true,
},
},
},
},
},
},
{
"nvim-treesitter/nvim-treesitter",
event = { "LazyFile", "VeryLazy" },
opts_extend = { "ensure_installed" },
opts = {
highlight = { enable = true },
indent = { enable = true },
ensure_installed = {
"bash",
"c",
"diff",
"go",
"html",
"javascript",
"jsdoc",
"json",
"jsonc",
"lua",
"luadoc",
"luap",
"markdown",
"markdown_inline",
"printf",
"query",
"toml",
"vim",
"vimdoc",
"yaml",
"templ",
"typescript",
},
},
},
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
templ = { "templ" },
},
},
},
}