From edc640c50fe3d8f1378576c2bdb14b5c6e8140d5 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 28 Mar 2021 03:52:09 -0400 Subject: new settings options for autoformat --- nv-settings.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'nv-settings.lua') diff --git a/nv-settings.lua b/nv-settings.lua index ad17272f..a77e25c0 100644 --- a/nv-settings.lua +++ b/nv-settings.lua @@ -5,15 +5,11 @@ Formatters and linters should be filled in as strings with either a global executable or a path to an executable -]] - - --- general +]] -- general O.auto_complete = true O.colorscheme = 'nvcode' O.auto_close_tree = 0 - -- python -- add things like O.python.formatter.yapf.exec_path -- add things like O.python.linter.flake8.exec_path @@ -21,15 +17,20 @@ O.auto_close_tree = 0 O.python.formatter = 'yapf' O.python.linter = 'flake8' O.python.isort = true -O.python.autoformat = false +O.python.autoformat = true O.python.diagnostics.virtual_text = true O.python.diagnostics.signs = true O.python.diagnostics.underline = true -- lua O.lua.formatter = 'lua-format' +-- O.lua.formatter = 'lua-format' +O.lua.autoformat = true -- javascript O.tsserver.formatter = 'prettier' O.tsserver.linter = nil -O.tsserver.autoformat = false +O.tsserver.autoformat = true + +-- json +O.json.autoformat = true -- cgit v1.2.3