summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/globals.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/globals.lua')
-rw-r--r--.config/nvim/lua/globals.lua61
1 files changed, 61 insertions, 0 deletions
diff --git a/.config/nvim/lua/globals.lua b/.config/nvim/lua/globals.lua
new file mode 100644
index 0000000..a0f291c
--- /dev/null
+++ b/.config/nvim/lua/globals.lua
@@ -0,0 +1,61 @@
+O = {
+ auto_close_tree = 0,
+ auto_complete = true,
+ colorscheme = 'lunar',
+ hidden_files = true,
+ wrap_lines = false,
+ number = true,
+ relative_number = true,
+ shell = 'bash',
+
+ -- @usage pass a table with your desired languages
+ treesitter = {
+ ensure_installed = "all",
+ ignore_install = {"haskell"},
+ highlight = {enabled = true},
+ playground = {enabled = true},
+ rainbow = {enabled = false}
+ },
+ database = {save_location = '~/.config/nvim_db', auto_execute = 1},
+ python = {
+ linter = 'flake8',
+ formatter = 'black',
+ autoformat = false,
+ isort = false,
+ diagnostics = {virtual_text = true, signs = true, underline = 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}
+ },
+ 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 = {
+ -- @usage can be 'prettier'
+ formatter = '',
+ 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}},
+}
+
+DATA_PATH = vim.fn.stdpath('data')
+CACHE_PATH = vim.fn.stdpath('cache')