mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-04-26 20:35:40 +00:00
71 lines
2.3 KiB
Lua
71 lines
2.3 KiB
Lua
O = {
|
|
auto_close_tree = 0,
|
|
auto_complete = true,
|
|
background = dark,
|
|
ignorecase = smartcase,
|
|
clipboard = unnamedplus,
|
|
incsearch = true,
|
|
termguicolors = true,
|
|
colorscheme = 'dracula',
|
|
hidden_files = true,
|
|
wrap_lines = false,
|
|
number = true,
|
|
relative_number = true,
|
|
shell = 'zsh',
|
|
timeoutlen = 500,
|
|
number = true,
|
|
scrolloff = 8,
|
|
noshowmode = true,
|
|
splitright = true,
|
|
splitbelow = true,
|
|
|
|
database = {save_location = '~/.config/nvcode_db', auto_execute = 1},
|
|
python = {
|
|
linter = 'flake8',
|
|
-- @usage can be 'yapf', 'black'
|
|
formatter = 'black',
|
|
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}
|
|
},
|
|
lua = {
|
|
-- @usage can be 'lua-format'
|
|
formatter = '',
|
|
autoformat = false,
|
|
diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
|
|
},
|
|
sh = {
|
|
-- @usage can be 'shellcheck'
|
|
linter = '',
|
|
-- @usage can be 'shfmt'
|
|
formatter = '',
|
|
autoformat = false,
|
|
diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
|
|
},
|
|
tsserver = {
|
|
-- @usage can be 'eslint'
|
|
linter = '',
|
|
-- @usage can be 'prettier'
|
|
formatter = '',
|
|
autoformat = false,
|
|
diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
|
|
},
|
|
json = {
|
|
-- @usage can be 'prettier'
|
|
formatter = '',
|
|
autoformat = false,
|
|
diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}
|
|
},
|
|
clang = {diagnostics = {virtual_text = {spacing = 0, prefix = ""}, signs = true, underline = true}},
|
|
ruby = {
|
|
diagnostics = {virtualtext = {spacing = 0, prefix = ""}, signs = true, underline = true},
|
|
filetypes = {'rb', 'erb', 'rakefile'}
|
|
},
|
|
-- css = {formatter = '', autoformat = false, virtual_text = true},
|
|
-- json = {formatter = '', autoformat = false, virtual_text = true}
|
|
}
|
|
|
|
DATA_PATH = vim.fn.stdpath('data')
|
|
CACHE_PATH = vim.fn.stdpath('cache')
|