mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-12-15 18:48:34 +00:00
Migrate neovim config to lua
This commit is contained in:
70
.config/nvim/lua/globals.lua
Normal file
70
.config/nvim/lua/globals.lua
Normal file
@@ -0,0 +1,70 @@
|
||||
O = {
|
||||
auto_close_tree = 0,
|
||||
auto_complete = true,
|
||||
background = dark,
|
||||
ignorecase = smartcase,
|
||||
clipboard = unnamedplus,
|
||||
incsearch = true,
|
||||
termguicolors = true,
|
||||
colorscheme = 'moonlight',
|
||||
hidden_files = true,
|
||||
wrap_lines = false,
|
||||
number = true,
|
||||
relative_number = true,
|
||||
shell = 'zsh',
|
||||
timeoutlen = 100,
|
||||
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')
|
||||
Reference in New Issue
Block a user