mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-29 14:28:18 +02:00
add @usage to fields
This commit is contained in:
parent
edc640c50f
commit
dae4864d45
2 changed files with 14 additions and 4 deletions
|
@ -4,6 +4,7 @@ O = {
|
||||||
colorscheme = 'nvcode',
|
colorscheme = 'nvcode',
|
||||||
python = {
|
python = {
|
||||||
linter = '',
|
linter = '',
|
||||||
|
-- @usage can be 'yapf'
|
||||||
formatter = '',
|
formatter = '',
|
||||||
autoformat = false,
|
autoformat = false,
|
||||||
isort = false,
|
isort = false,
|
||||||
|
@ -11,26 +12,33 @@ O = {
|
||||||
},
|
},
|
||||||
|
|
||||||
lua = {
|
lua = {
|
||||||
|
-- @usage can be 'lua-format'
|
||||||
-- @usage can be lua-format
|
|
||||||
formatter = '',
|
formatter = '',
|
||||||
|
|
||||||
autoformat = false,
|
autoformat = false,
|
||||||
diagnostics = {virtual_text = true, signs = true, underline = true}
|
diagnostics = {virtual_text = true, signs = true, underline = true}
|
||||||
},
|
},
|
||||||
sh = {
|
sh = {
|
||||||
|
-- @usage can be 'shellcheck'
|
||||||
linter = '',
|
linter = '',
|
||||||
|
-- @usage can be 'shfmt'
|
||||||
formatter = '',
|
formatter = '',
|
||||||
autoformat = false,
|
autoformat = false,
|
||||||
diagnostics = {virtual_text = true, signs = true, underline = true}
|
diagnostics = {virtual_text = true, signs = true, underline = true}
|
||||||
},
|
},
|
||||||
tsserver = {
|
tsserver = {
|
||||||
|
-- @usage can be 'eslint'
|
||||||
linter = '',
|
linter = '',
|
||||||
|
-- @usage can be 'prettier'
|
||||||
formatter = '',
|
formatter = '',
|
||||||
autoformat = false,
|
autoformat = false,
|
||||||
diagnostics = {virtual_text = true, signs = true, underline = true}
|
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},
|
-- css = {formatter = '', autoformat = false, virtual_text = true},
|
||||||
-- json = {formatter = '', autoformat = false, virtual_text = true}
|
-- json = {formatter = '', autoformat = false, virtual_text = true}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,3 +34,5 @@ O.tsserver.autoformat = true
|
||||||
|
|
||||||
-- json
|
-- json
|
||||||
O.json.autoformat = true
|
O.json.autoformat = true
|
||||||
|
|
||||||
|
-- create custom autocommand field (This would be easy with lua)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue