LunarVim/lua/nv-globals.lua

67 lines
2.1 KiB
Lua
Raw Normal View History

2021-03-27 06:59:28 +01:00
O = {
2021-03-28 09:52:09 +02:00
auto_close_tree = 0,
2021-03-27 06:59:28 +01:00
auto_complete = true,
colorscheme = 'nvcode',
2021-04-01 10:33:02 +02:00
hidden_files = true,
2021-04-03 21:59:03 +02:00
wrap_lines = false,
2021-04-01 10:33:02 +02:00
number = true,
relative_number = true,
2021-03-30 21:15:38 +02:00
shell = 'bash',
2021-04-03 21:59:03 +02:00
-- @usage pass a table with your desired languages
treesitter = {
ensure_installed = "all",
ignore_install = {"haskell"},
highlight = {enabled = true},
playground = {enabled = true},
rainbow = {enabled = false}
2021-03-31 16:45:46 +02:00
},
2021-04-03 21:59:03 +02:00
database = {save_location = '~/.config/nvcode_db', auto_execute = 1},
2021-03-27 08:49:27 +01:00
python = {
linter = '',
2021-03-28 20:53:00 +02:00
-- @usage can be 'yapf', 'black'
2021-03-27 08:49:27 +01:00
formatter = '',
autoformat = false,
2021-03-27 22:21:52 +01:00
isort = false,
2021-03-27 09:06:14 +01:00
diagnostics = {virtual_text = true, signs = true, underline = true}
2021-03-27 08:49:27 +01:00
},
2021-04-03 21:59:03 +02:00
dart = {sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'},
2021-03-28 09:52:09 +02:00
lua = {
2021-03-28 09:58:56 +02:00
-- @usage can be 'lua-format'
2021-03-28 09:52:09 +02:00
formatter = '',
autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true}
},
2021-03-27 22:21:52 +01:00
sh = {
2021-03-28 09:58:56 +02:00
-- @usage can be 'shellcheck'
2021-03-27 22:21:52 +01:00
linter = '',
2021-03-28 09:58:56 +02:00
-- @usage can be 'shfmt'
2021-03-27 22:21:52 +01:00
formatter = '',
autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true}
},
tsserver = {
2021-03-28 09:58:56 +02:00
-- @usage can be 'eslint'
2021-03-27 22:21:52 +01:00
linter = '',
2021-03-28 09:58:56 +02:00
-- @usage can be 'prettier'
2021-03-27 22:21:52 +01:00
formatter = '',
autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true}
},
2021-03-28 09:58:56 +02:00
json = {
-- @usage can be 'prettier'
formatter = '',
autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true}
2021-04-01 09:29:52 +02:00
},
2021-04-03 21:59:03 +02:00
tailwindls = {filetypes = {'html', 'css', 'scss', 'javascript', 'javascriptreact', 'typescript', 'typescriptreact'}},
clang = {diagnostics = {virtual_text = true, signs = true, underline = true}}
2021-03-27 22:21:52 +01:00
-- css = {formatter = '', autoformat = false, virtual_text = true},
-- json = {formatter = '', autoformat = false, virtual_text = true}
2021-03-27 06:03:58 +01:00
}
2021-03-27 06:59:28 +01:00
DATA_PATH = vim.fn.stdpath('data')
CACHE_PATH = vim.fn.stdpath('cache')