716 current 2024-05-28 16:51:56 24.11.20240524.bfb7a88 6.9.1-zen1 *
This commit is contained in:
parent
9e93b132a4
commit
36765368aa
3 changed files with 29 additions and 26 deletions
|
|
@ -1,26 +0,0 @@
|
|||
return {
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
config = function()
|
||||
local null_ls = require("null-ls")
|
||||
|
||||
null_ls.setup({
|
||||
debug = false,
|
||||
sources = {
|
||||
null_ls.builtins.formatting.prettierd,
|
||||
null_ls.builtins.formatting.alejandra,
|
||||
null_ls.builtins.formatting.stylua,
|
||||
null_ls.builtins.formatting.rustfmt.with({
|
||||
extra_args = { "--edition=2021" },
|
||||
}),
|
||||
null_ls.builtins.formatting.shfmt.with({
|
||||
filetypes = { "sh", "zsh" },
|
||||
extra_args = { "--indent-type Spaces" },
|
||||
}),
|
||||
null_ls.builtins.formatting.clang_format.with({
|
||||
extra_args = { "-style={IndentWidth: 4, AllowShortFunctionsOnASingleLine: Empty}" },
|
||||
}),
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
return {
|
||||
"stevearc/conform.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
javascript = { "prettierd" },
|
||||
typescript = { "prettierd" },
|
||||
javascriptreact = { "prettierd", "rustywind" },
|
||||
typescriptreact = { "prettierd", "rustywind" },
|
||||
svelte = { "prettierd", "rustywind" },
|
||||
astro = { "prettierd", "rustywind" },
|
||||
css = { "prettierd" },
|
||||
html = { "prettierd" },
|
||||
json = { "prettierd" },
|
||||
yaml = { "prettierd" },
|
||||
markdown = { "prettierd" },
|
||||
graphql = { "prettierd" },
|
||||
lua = { "stylua" },
|
||||
python = { "isort", "black" },
|
||||
nix = { "alejandra" },
|
||||
},
|
||||
format_on_save = {
|
||||
lsp_fallback = true,
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -45,6 +45,7 @@ in {
|
|||
shfmt
|
||||
isort
|
||||
stylua
|
||||
rustywind
|
||||
|
||||
# LSP
|
||||
lua-language-server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue