This commit is contained in:
Walter Jenkins 2025-08-12 23:10:09 -05:00
parent 83f02dbde7
commit 5bdc9a9944
7 changed files with 31 additions and 8 deletions

4
lua/plugins/aaa.lua Normal file
View file

@ -0,0 +1,4 @@
return {
{ "mason-org/mason.nvim", version = "^1.0.0" },
{ "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
}

View file

@ -4,7 +4,11 @@ return {
config = function()
require("conform").setup({
formatters_by_ft = {
templ = { "templ", "prettier" }, -- Use templ first, then Prettier for embedded content
-- Disable formatters for .templ files
templ = {},
-- Add your other filetype configs here as needed
-- e.g., go = { "gofmt" },
},
format_on_save = {
timeout_ms = 500,
@ -12,6 +16,6 @@ return {
},
})
end,
event = { "BufReadPre", "BufNewFile" }, -- Load only when opening a file
event = { "BufReadPre", "BufNewFile" },
}
}

View file

@ -19,6 +19,7 @@ return {
'eslint_d', -- ts/js linter
'shfmt',
'ruff',
'goimports'
},
-- auto-install configured formatters & linters (with null-ls)
automatic_installation = true,

View file

@ -0,0 +1,6 @@
return {
{
"tpope/vim-unimpaired",
lazy = false, -- Load immediately since it provides useful mappings
}
}