first commit
This commit is contained in:
80
lua/plugins/lsp.lua
Normal file
80
lua/plugins/lsp.lua
Normal file
@@ -0,0 +1,80 @@
|
||||
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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user