Format project, setup conform format on save, remove redundant commented pieces

This commit is contained in:
2025-05-31 20:02:10 +05:00
parent f12cc324f1
commit 90b457b768
8 changed files with 37 additions and 49 deletions

View File

@ -1,15 +1,12 @@
local options = {
formatters_by_ft = {
lua = { "stylua" },
-- css = { "prettier" },
-- html = { "prettier" },
},
-- format_on_save = {
-- -- These options will be passed to conform.format()
-- timeout_ms = 500,
-- lsp_fallback = true,
-- },
format_on_save = {
timeout_ms = 500,
lsp_fallback = true,
},
}
return options

View File

@ -2,5 +2,3 @@ require("nvchad.configs.lspconfig").defaults()
local servers = { "html", "cssls" }
vim.lsp.enable(servers)
-- read :h vim.lsp.config for changing options of lsp servers

View File

@ -0,0 +1,10 @@
return {
ensure_installed = { "lua", "luadoc", "printf", "vim", "vimdoc" },
highlight = {
enable = true,
use_languagetree = true,
},
indent = { enable = true },
}