summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <[email protected]>2021-03-28 03:58:56 -0400
committerChris <[email protected]>2021-03-28 03:58:56 -0400
commitdae4864d45645aaddfe20f9dbb940a3a0bc81efa (patch)
treeee4a45a9e27a620154918281f0487d321b004f7d
parentedc640c50fe3d8f1378576c2bdb14b5c6e8140d5 (diff)
add @usage to fields
-rw-r--r--lua/nv-globals.lua16
-rw-r--r--nv-settings.lua2
2 files changed, 14 insertions, 4 deletions
diff --git a/lua/nv-globals.lua b/lua/nv-globals.lua
index b4e548a9..873a8994 100644
--- a/lua/nv-globals.lua
+++ b/lua/nv-globals.lua
@@ -4,6 +4,7 @@ O = {
colorscheme = 'nvcode',
python = {
linter = '',
+ -- @usage can be 'yapf'
formatter = '',
autoformat = false,
isort = false,
@@ -11,26 +12,33 @@ O = {
},
lua = {
-
- -- @usage can be lua-format
+ -- @usage can be 'lua-format'
formatter = '',
-
autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true}
},
sh = {
+ -- @usage can be 'shellcheck'
linter = '',
+ -- @usage can be 'shfmt'
formatter = '',
autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true}
},
tsserver = {
+ -- @usage can be 'eslint'
linter = '',
+ -- @usage can be 'prettier'
formatter = '',
autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true}
},
- json = {formatter = '', autoformat = false, diagnostics = {virtual_text = true, signs = true, underline = true}}
+ json = {
+ -- @usage can be 'prettier'
+ formatter = '',
+ autoformat = false,
+ diagnostics = {virtual_text = true, signs = true, underline = true}
+ }
-- css = {formatter = '', autoformat = false, virtual_text = true},
-- json = {formatter = '', autoformat = false, virtual_text = true}
}
diff --git a/nv-settings.lua b/nv-settings.lua
index a77e25c0..9d8c2ded 100644
--- a/nv-settings.lua
+++ b/nv-settings.lua
@@ -34,3 +34,5 @@ O.tsserver.autoformat = true
-- json
O.json.autoformat = true
+
+-- create custom autocommand field (This would be easy with lua)