feat: add some new language servers
This commit is contained in:
parent
7faba0c08a
commit
65f3cf2928
2 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ return {
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = { "lua_ls", "tsserver" }
|
ensure_installed = { "lua_ls", "tsserver", "html" }
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
@ -24,7 +24,7 @@ return {
|
||||||
})
|
})
|
||||||
|
|
||||||
lspconfig.tsserver.setup({
|
lspconfig.tsserver.setup({
|
||||||
capabilities = capabilities
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { desc = "Go to definition" })
|
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { desc = "Go to definition" })
|
||||||
|
@ -41,6 +41,7 @@ return {
|
||||||
|
|
||||||
mason_tool_installer.setup({
|
mason_tool_installer.setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
|
"djlint",
|
||||||
"prettierd",
|
"prettierd",
|
||||||
"eslint_d",
|
"eslint_d",
|
||||||
},
|
},
|
||||||
|
@ -60,12 +61,11 @@ return {
|
||||||
yaml = { "prettierd" },
|
yaml = { "prettierd" },
|
||||||
typescript = { "eslint_d" },
|
typescript = { "eslint_d" },
|
||||||
typescriptreact = { "eslint_d" },
|
typescriptreact = { "eslint_d" },
|
||||||
html = { "prettierd" },
|
html = { "djlint" },
|
||||||
ejs = { "prettierd" },
|
ejs = { "prettierd" },
|
||||||
css = { "prettierd" },
|
css = { "prettierd" },
|
||||||
scss = { "prettierd" },
|
scss = { "prettierd" },
|
||||||
graphql = { "prettierd" },
|
graphql = { "prettierd" },
|
||||||
markdown = { "prettierd" },
|
|
||||||
["_"] = { "trim_whitespace" },
|
["_"] = { "trim_whitespace" },
|
||||||
},
|
},
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
|
|
|
@ -5,7 +5,7 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
local config = require("nvim-treesitter.configs")
|
local config = require("nvim-treesitter.configs")
|
||||||
config.setup({
|
config.setup({
|
||||||
ensure_installed = { "lua", "javascript", "typescript", "tsx" },
|
ensure_installed = { "lua", "javascript", "typescript", "tsx", "htmldjango", "html", "jsonc", "json", "jsdoc", "markdown", "markdown_inline", "vim", "vimdoc" },
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true }
|
indent = { enable = true }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue