mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
263 lines
13 KiB
Lua
263 lines
13 KiB
Lua
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,
|
||
colorscheme = 'lunar',
|
||
hidden_files = true,
|
||
wrap_lines = false,
|
||
number = true,
|
||
relative_number = true,
|
||
cursorline = true,
|
||
shell = 'bash',
|
||
timeoutlen = 100,
|
||
nvim_tree_disable_netrw = 0,
|
||
extras = false,
|
||
ignore_case = true,
|
||
smart_case = true,
|
||
|
||
-- @usage pass a table with your desired languages
|
||
treesitter = {
|
||
ensure_installed = "all",
|
||
ignore_install = {"haskell"},
|
||
highlight = {enabled = true},
|
||
rainbow = {enabled = false}
|
||
},
|
||
|
||
database = {save_location = '~/.config/nvcode_db', auto_execute = 1},
|
||
|
||
plugin = {
|
||
hop = {active = false},
|
||
dial = {active = false},
|
||
dashboard = {active = false},
|
||
matchup = {active = false},
|
||
colorizer = {active = false},
|
||
numb = {active = false},
|
||
zen = {active = false},
|
||
ts_playground = {active = false},
|
||
indent_line = {active = false},
|
||
ts_context_commentstring = {active = false},
|
||
symbol_outline = {active = false},
|
||
debug = {active = false},
|
||
bqf = {active = false},
|
||
trouble = {active = false},
|
||
floatterm = {active = false},
|
||
spectre = {active = false},
|
||
lsp_rooter = {active = false},
|
||
markdown_preview = {active = false},
|
||
codi = {active = false},
|
||
telescope_fzy = {active = false},
|
||
sanegx = {active = false},
|
||
ranger = {active = false},
|
||
todo_comments = {active = false},
|
||
lsp_colors = {active = false},
|
||
git_blame = {active = false},
|
||
gist = {active = false},
|
||
gitlinker = {active = false},
|
||
lazygit = {active = false},
|
||
octo = {active = false},
|
||
lush = {active = false},
|
||
diffview = {active = false},
|
||
bracey = {active = false},
|
||
telescope_project = {active = false}
|
||
|
||
},
|
||
|
||
lang = {
|
||
python = {
|
||
active = false,
|
||
linter = '',
|
||
-- @usage can be 'yapf', 'black'
|
||
formatter = '',
|
||
autoformat = false,
|
||
isort = false,
|
||
diagnostics = {
|
||
virtual_text = {spacing = 0, prefix = ""},
|
||
signs = true,
|
||
underline = true
|
||
},
|
||
analysis = {
|
||
type_checking = "basic",
|
||
auto_search_paths = true,
|
||
use_library_code_types = true
|
||
}
|
||
},
|
||
dart = {
|
||
active = false,
|
||
sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'
|
||
},
|
||
lua = {
|
||
active = false,
|
||
-- @usage can be 'lua-format'
|
||
formatter = '',
|
||
autoformat = false,
|
||
diagnostics = {
|
||
virtual_text = {spacing = 0, prefix = ""},
|
||
signs = true,
|
||
underline = true
|
||
}
|
||
},
|
||
sh = {
|
||
active = false,
|
||
-- @usage can be 'shellcheck'
|
||
linter = '',
|
||
-- @usage can be 'shfmt'
|
||
formatter = '',
|
||
autoformat = false,
|
||
diagnostics = {
|
||
virtual_text = {spacing = 0, prefix = ""},
|
||
signs = true,
|
||
underline = true
|
||
}
|
||
},
|
||
tsserver = {
|
||
active = false,
|
||
-- @usage can be 'eslint'
|
||
linter = '',
|
||
-- @usage can be 'prettier'
|
||
formatter = '',
|
||
autoformat = false,
|
||
diagnostics = {
|
||
virtual_text = {spacing = 0, prefix = ""},
|
||
signs = true,
|
||
underline = true
|
||
}
|
||
},
|
||
json = {
|
||
active = false,
|
||
-- @usage can be 'prettier'
|
||
formatter = '',
|
||
autoformat = false,
|
||
diagnostics = {
|
||
virtual_text = {spacing = 0, prefix = ""},
|
||
signs = true,
|
||
underline = true
|
||
}
|
||
},
|
||
tailwindcss = {
|
||
active = false,
|
||
filetypes = {
|
||
'html', 'css', 'scss', 'javascript', 'javascriptreact',
|
||
'typescript', 'typescriptreact'
|
||
}
|
||
},
|
||
clang = {
|
||
active = false,
|
||
diagnostics = {
|
||
virtual_text = {spacing = 0, prefix = ""},
|
||
signs = true,
|
||
underline = true
|
||
}
|
||
},
|
||
ruby = {
|
||
active = false,
|
||
diagnostics = {
|
||
virtualtext = {spacing = 0, prefix = ""},
|
||
signs = true,
|
||
underline = true
|
||
},
|
||
filetypes = {'rb', 'erb', 'rakefile'}
|
||
},
|
||
go = {active = false},
|
||
elixir = {active = false},
|
||
vim = {active = false},
|
||
yaml = {active = false},
|
||
terraform = {active = false},
|
||
rust = {
|
||
active = false,
|
||
linter = '',
|
||
formatter = '',
|
||
autoformat = false,
|
||
diagnostics = {
|
||
virtual_text = {spacing = 0, prefix = ""},
|
||
signs = true,
|
||
underline = true
|
||
}
|
||
},
|
||
svelte = {active = false},
|
||
php = {active = false},
|
||
latex = {active = false},
|
||
kotlin = {active = false},
|
||
html = {active = false},
|
||
elm = {active = false},
|
||
emmet = {active = false},
|
||
graphql = {active = false},
|
||
efm = {active = true},
|
||
docker = {active = false},
|
||
cmake = {active = false},
|
||
java = {active = false},
|
||
css = {
|
||
active = false,
|
||
|
||
formatter = '',
|
||
autoformat = false,
|
||
virtual_text = true
|
||
}
|
||
|
||
},
|
||
|
||
dashboard = {
|
||
|
||
custom_header = {
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣶⣾⠿⠿⠟⠛⠛⠛⠛⠿⠿⣿⣷⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⡿⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠿⣷⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⡿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠒⠂⠉⠉⠉⠉⢩⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⡀⠀⠀⠀⠀⠀⢰⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠠⡀⠀⠀⢀⣾⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠢⢀⣸⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡧⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠈⠁⠒⠤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣇⠀⠀⠀⠀⠀⠀⠉⠢⠤⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⡟⠈⠑⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠑⠒⠤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡇⠀⠀⢀⣣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠒⠢⠤⠄⣀⣀⠀⠀⠀⢠⣿⡟⠀⠀⠀⣺⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠇⠀⠀⠀⠀⠀⣤⡄⠀⠀⢠⣤⡄⠀⢨⣭⣠⣤⣤⣤⡀⠀⠀⢀⣤⣤⣤⣤⡄⠀⠀⠀⣤⣄⣤⣤⣤⠀⠀⣿⣯⠉⠉⣿⡟⠀⠈⢩⣭⣤⣤⠀⠀⠀⠀⣠⣤⣤⣤⣄⣤⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠀⠀⠀⠀⠀⠀⣿⠃⠀⠀⣸⣿⠁⠀⣿⣿⠉⠀⠈⣿⡇⠀⠀⠛⠋⠀⠀⢹⣿⠀⠀⠀⣿⠏⠀⠸⠿⠃⠀⣿⣿⠀⣰⡟⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⣿⡟⢸⣿⡇⢀⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⡇⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⣿⡟⠀⢠⣿⡇⠀⠀⢰⣿⡇⠀⣰⣾⠟⠛⠛⣻⡇⠀⠀⢸⡿⠀⠀⠀⠀⠀⠀⢻⣿⢰⣿⠀⠀⠀⠀⠀⠀⣾⡇⠀⠀⠀⢸⣿⠇⢸⣿⠀⢸⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣧⣤⣤⣤⡄⠀⠘⣿⣤⣤⡤⣿⠇⠀⢸⣿⠁⠀⠀⣼⣿⠀⠀⢿⣿⣤⣤⠔⣿⠃⠀⠀⣾⡇⠀⠀⠀⠀⠀⠀⢸⣿⣿⠋⠀⠀⠀⢠⣤⣤⣿⣥⣤⡄⠀⣼⣿⠀⣸⡏⠀⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
|
||
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠉⠉⠁⠀⠀⠈⠉⠉⠀⠉⠀⠀⠈⠉⠀⠀⠀⠉⠉⠀⠀⠀⠉⠉⠁⠈⠉⠀⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠀⠀⠀⠀⠈⠉⠉⠉⠉⠉⠁⠀⠉⠁⠀⠉⠁⠀⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀'
|
||
|
||
},
|
||
footer = {'chrisatmachine.com'}
|
||
}
|
||
}
|
||
|
||
-- TODO find a new home for these autocommands
|
||
require('lv-utils').define_augroups({
|
||
_general_settings = {
|
||
{
|
||
'TextYankPost', '*',
|
||
'lua require(\'vim.highlight\').on_yank({higroup = \'Search\', timeout = 200})'
|
||
}, {
|
||
'BufWinEnter', '*',
|
||
'setlocal formatoptions-=c formatoptions-=r formatoptions-=o'
|
||
},
|
||
{
|
||
'BufRead', '*',
|
||
'setlocal formatoptions-=c formatoptions-=r formatoptions-=o'
|
||
}, {
|
||
'BufNewFile', '*',
|
||
'setlocal formatoptions-=c formatoptions-=r formatoptions-=o'
|
||
}, {'VimLeavePre', '*', 'set title set titleold='},
|
||
{'FileType', 'qf', 'set nobuflisted'}
|
||
},
|
||
-- _solidity = {
|
||
-- {'BufWinEnter', '.sol', 'setlocal filetype=solidity'}, {'BufRead', '*.sol', 'setlocal filetype=solidity'},
|
||
-- {'BufNewFile', '*.sol', 'setlocal filetype=solidity'}
|
||
-- },
|
||
-- _gemini = {
|
||
-- {'BufWinEnter', '.gmi', 'setlocal filetype=markdown'}, {'BufRead', '*.gmi', 'setlocal filetype=markdown'},
|
||
-- {'BufNewFile', '*.gmi', 'setlocal filetype=markdown'}
|
||
-- },
|
||
_markdown = {
|
||
{'FileType', 'markdown', 'setlocal wrap'},
|
||
{'FileType', 'markdown', 'setlocal spell'}
|
||
},
|
||
_buffer_bindings = {
|
||
{'FileType', 'floaterm', 'nnoremap <silent> <buffer> q :q<CR>'}
|
||
}
|
||
})
|
||
|