summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/globals.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-31 22:20:30 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-31 22:20:30 +0200
commit7d1e8075b8f156f3f8c300326abf730a1a8f2875 (patch)
tree4fff845d6cd1b66e267ef76dfad122a174f2c7a4 /.config/nvim/lua/globals.lua
parent0ce9de258802b9c3259083e6f1ab5739e8e51084 (diff)
Copying of Luke's dots
Diffstat (limited to '.config/nvim/lua/globals.lua')
-rw-r--r--.config/nvim/lua/globals.lua27
1 files changed, 15 insertions, 12 deletions
diff --git a/.config/nvim/lua/globals.lua b/.config/nvim/lua/globals.lua
index a0f291c..9115c2e 100644
--- a/.config/nvim/lua/globals.lua
+++ b/.config/nvim/lua/globals.lua
@@ -1,3 +1,6 @@
+CONFIG_PATH = vim.fn.stdpath('config')
+DATA_PATH = vim.fn.stdpath('data')
+CACHE_PATH = vim.fn.stdpath('cache')
O = {
auto_close_tree = 0,
auto_complete = true,
@@ -7,6 +10,9 @@ O = {
number = true,
relative_number = true,
shell = 'bash',
+ timeoutlen = 100,
+ nvim_tree_disable_netrw = 0,
+ extras = false,
-- @usage pass a table with your desired languages
treesitter = {
@@ -18,18 +24,18 @@ O = {
},
database = {save_location = '~/.config/nvim_db', auto_execute = 1},
python = {
- linter = 'flake8',
- formatter = 'black',
+ linter = '',
+ formatter = '',
autoformat = false,
isort = false,
- diagnostics = {virtual_text = true, signs = true, underline = true}
+ diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true},
+ analysis = {type_checking = "basic", auto_search_paths = true, use_library_code_types = true}
},
- dart = {sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'},
lua = {
-- @usage can be 'lua-format'
formatter = '',
autoformat = false,
- diagnostics = {virtual_text = true, signs = true, underline = true}
+ diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
},
sh = {
-- @usage can be 'shellcheck'
@@ -37,7 +43,7 @@ O = {
-- @usage can be 'shfmt'
formatter = '',
autoformat = false,
- diagnostics = {virtual_text = true, signs = true, underline = true}
+ diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
},
tsserver = {
-- @usage can be 'eslint'
@@ -45,7 +51,7 @@ O = {
-- @usage can be 'prettier'
formatter = '',
autoformat = false,
- diagnostics = {virtual_text = true, signs = true, underline = true}
+ diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
},
json = {
-- @usage can be 'prettier'
@@ -53,9 +59,6 @@ O = {
autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true}
},
- tailwindls = {filetypes = {'html', 'css', 'scss', 'javascript', 'javascriptreact', 'typescript', 'typescriptreact'}},
- clang = {diagnostics = {virtual_text = true, signs = true, underline = true}},
+ go = {},
+ clang = {diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}},
}
-
-DATA_PATH = vim.fn.stdpath('data')
-CACHE_PATH = vim.fn.stdpath('cache')