File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ require('nvim-treesitter').setup({
4848 -- Directory to install parsers and queries to
4949 install_dir = vim .fn .stdpath (' data' ) .. ' /site' ,
5050})
51+ vim .opt .rtp :append (vim .fn .stdpath (' data' ) .. ' /site' )
5152
5253vim .api .nvim_create_autocmd (' FileType' , {
5354 pattern = { ' go' },
Original file line number Diff line number Diff line change @@ -7,9 +7,13 @@ for i = 1, #_G.arg do
77 parsers [# parsers + 1 ] = _G .arg [i ] --- @type string
88end
99
10+ local install_dir = vim .fn .stdpath (' data' ) .. ' /site'
11+ print (' Installing to: ' .. install_dir )
12+
13+ vim .opt .rtp :append (install_dir )
1014require (' nvim-treesitter' ).setup ({
1115 -- Directory to install parsers and queries to
12- install_dir = vim . fn . stdpath ( ' data ' ) .. ' /site ' ,
16+ install_dir = install_dir ,
1317})
1418
1519require (' nvim-treesitter' ).install (parsers , { force = true }):wait (1800000 ) -- wait max. 30 minutes
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ vim.cmd([[
1111 runtime! plugin/nvim-lspconfig.vim
1212 runtime! plugin/guihua.lua
1313]] )
14+ vim .opt .rtp :append (vim .fn .stdpath (' data' ) .. ' /site' )
1415
1516vim .opt .swapfile = false -- no swapfile
1617vim .opt .backup = false -- no backup
You can’t perform that action at this time.
0 commit comments