Finally modularize neovim configuration
This commit is contained in:
parent
d4ca4668c4
commit
e2697f61fd
16 changed files with 872 additions and 1004 deletions
31
lua/plugins/formatting.lua
Normal file
31
lua/plugins/formatting.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
-- Formatting plugins
|
||||
|
||||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
setup = {
|
||||
formatters = {
|
||||
black = {
|
||||
command = "black",
|
||||
prepend_args = { "--line-length", "100" },
|
||||
},
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
notify_on_error = false,
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = false,
|
||||
},
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
python = { "black" },
|
||||
cpp = { "clang-format" },
|
||||
c = { "clang-format" },
|
||||
sh = { "beautysh" },
|
||||
tex = { "latexindent" },
|
||||
java = { "java" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue