mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-19 10:15:01 +02:00
Added default formatters (#908)
* added default formatters for a couple of langs * fix: sugesstions from tastyep * allow users to change default formatters * suggestion: mellow pointed out the telescope issue * we don't need to use formatter.setup
This commit is contained in:
parent
6bbc082f57
commit
de7ec62f5f
16 changed files with 164 additions and 38 deletions
|
@ -1,3 +1,18 @@
|
|||
O.formatters.filetype["python"] = {
|
||||
function()
|
||||
return {
|
||||
exe = O.lang.python.formatter.exe,
|
||||
args = O.lang.python.formatter.args,
|
||||
stdin = not (O.lang.python.formatter.stdin ~= nil),
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
require("formatter.config").set_defaults {
|
||||
logging = false,
|
||||
filetype = O.formatters.filetype,
|
||||
}
|
||||
|
||||
local python_arguments = {}
|
||||
|
||||
-- TODO: replace with path argument
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue