support lua config
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
let g:vim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*')
|
let g:vim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*')
|
||||||
endif
|
endif
|
||||||
let g:vim_version = str2float(g:vim_version)
|
let g:vim_version = str2float(g:vim_version)
|
||||||
|
let g:dotfile_path = '~/.dotfiles/'
|
||||||
|
|
||||||
" The default leader is '\', but many people prefer ',' as it's in a standard
|
" The default leader is '\', but many people prefer ',' as it's in a standard
|
||||||
let mapleader = ','
|
let mapleader = ','
|
||||||
|
|||||||
+4
-10
@@ -109,16 +109,10 @@ if g:vim_type == 'nvim'
|
|||||||
if g:vim_version >= 0.7
|
if g:vim_version >= 0.7
|
||||||
" nvim-treesitter/nvim-treesitter {
|
" nvim-treesitter/nvim-treesitter {
|
||||||
|
|
||||||
call v:lua.require'nvim-treesitter.configs'.setup {
|
if filereadable(expand(g:dotfile_path . '.vimrc.lua'))
|
||||||
ensure_installed = { "c", "bash", "lua" },
|
execute('source ' . g:dotfile_path . '/.vimrc.lua')
|
||||||
sync_install = false,
|
endif
|
||||||
auto_install = true,
|
|
||||||
ignore_install = { "javascript" },
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
" }
|
" }
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
-- ensure_installed = { "c", "bash", "lua" },
|
||||||
|
sync_install = false,
|
||||||
|
auto_install = true,
|
||||||
|
-- ignore_install = { "javascript" },
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user