working?
This commit is contained in:
parent
83f02dbde7
commit
5bdc9a9944
7 changed files with 31 additions and 8 deletions
4
lua/plugins/aaa.lua
Normal file
4
lua/plugins/aaa.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
{ "mason-org/mason.nvim", version = "^1.0.0" },
|
||||
{ "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
|
||||
}
|
||||
|
|
@ -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" },
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ return {
|
|||
'eslint_d', -- ts/js linter
|
||||
'shfmt',
|
||||
'ruff',
|
||||
'goimports'
|
||||
},
|
||||
-- auto-install configured formatters & linters (with null-ls)
|
||||
automatic_installation = true,
|
||||
|
|
|
|||
6
lua/plugins/unimpaired.lua
Normal file
6
lua/plugins/unimpaired.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
{
|
||||
"tpope/vim-unimpaired",
|
||||
lazy = false, -- Load immediately since it provides useful mappings
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue