mirror of
https://github.com/Dannecron/nvchad-starter.git
synced 2025-12-26 04:02:34 +03:00
customize config
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
local options = {
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
-- css = { "prettier" },
|
||||
-- html = { "prettier" },
|
||||
|
||||
javascript = { "prettier" },
|
||||
css = { "prettier" },
|
||||
html = { "prettier" },
|
||||
|
||||
sh = { "shfmt" },
|
||||
},
|
||||
|
||||
-- format_on_save = {
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
require("nvchad.configs.lspconfig").defaults()
|
||||
|
||||
local servers = { "html", "cssls" }
|
||||
local servers = {
|
||||
-- front-end
|
||||
"html",
|
||||
"cssls",
|
||||
-- static files
|
||||
"jsonls",
|
||||
"yamlls",
|
||||
-- docker
|
||||
"dockerls",
|
||||
"docker_compose_language_service",
|
||||
}
|
||||
vim.lsp.enable(servers)
|
||||
|
||||
-- read :h vim.lsp.config for changing options of lsp servers
|
||||
|
||||
Reference in New Issue
Block a user