mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 23:06:38 -05:00
Use 4 spaces per tab in lua files
This commit is contained in:
parent
df2b91279b
commit
53ef5d112e
1 changed files with 21 additions and 17 deletions
|
@ -1,22 +1,26 @@
|
||||||
if (vim.g.enabletreesitter ~= nill and vim.g.enabletreesitter == 1) then
|
if (vim.g.enabletreesitter ~= nill) then
|
||||||
if (vim.g.treesitterparserdir ~= nill) then
|
if (vim.g.enabletreesitter == 1) then
|
||||||
local parser_dir = vim.g.treesitterparserdir
|
local parser_dir
|
||||||
else
|
|
||||||
local parser_dir = "~/.config/nvim/treesitter-parsers"
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.opt.runtimepath:append(parser_dir)
|
if (vim.g.treesitterparserdir == nill) then
|
||||||
|
parser_dir = "~/.config/nvim/treesitter-parsers"
|
||||||
|
else
|
||||||
|
parser_dir = vim.g.treesitterparserdir
|
||||||
|
end
|
||||||
|
|
||||||
require'nvim-treesitter.configs'.setup {
|
vim.opt.runtimepath:append(parser_dir)
|
||||||
ensure_installed = { "bash", "c", "cpp", "git_config", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "toml", "typescript", "vim", "vue" },
|
|
||||||
sync_install = false,
|
|
||||||
auto_install = false,
|
|
||||||
parser_install_dir = parser_dir,
|
|
||||||
|
|
||||||
highlight = {
|
require'nvim-treesitter.configs'.setup {
|
||||||
enable = true,
|
ensure_installed = { "bash", "c", "cpp", "git_config", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "toml", "typescript", "vim", "vue" },
|
||||||
disable = {},
|
sync_install = false,
|
||||||
additional_vim_regex_highlighting = false,
|
auto_install = false,
|
||||||
|
parser_install_dir = parser_dir,
|
||||||
|
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
disable = {},
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue