summaryrefslogtreecommitdiff
path: root/lua/lv-neoformat/init.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-07-10 22:48:28 +0430
committerGitHub <[email protected]>2021-07-10 14:18:28 -0400
commit0f7c876e93bdf42337257e70b5c9c9039a40bb47 (patch)
treefd6794b949c2a0fd7dc7bef25b8b998b288de145 /lua/lv-neoformat/init.lua
parent50202efd0d409e51d7a0b09d8c923482e7488351 (diff)
WIP: using formatter.nvim instead of neoformat (#781)
Diffstat (limited to 'lua/lv-neoformat/init.lua')
-rw-r--r--lua/lv-neoformat/init.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/lua/lv-neoformat/init.lua b/lua/lv-neoformat/init.lua
deleted file mode 100644
index 4dbaad23..00000000
--- a/lua/lv-neoformat/init.lua
+++ /dev/null
@@ -1,23 +0,0 @@
--- autoformat
-if O.format_on_save then
- require("lv-utils").define_augroups {
- autoformat = {
- {
- "BufWritePre",
- "*",
- [[try | undojoin | Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry]],
- },
- },
- }
-end
-
-vim.g.neoformat_run_all_formatters = 0
-
-vim.g.neoformat_enabled_python = { "autopep8", "yapf", "docformatter" }
-vim.g.neoformat_enabled_javascript = { "prettier" }
-
-if not O.format_on_save then
- vim.cmd [[if exists('#autoformat#BufWritePre')
- :autocmd! autoformat
- endif]]
-end