Use ${XDG_CACHE_HOME}/nvim/tree-sitter for treesitter parser caching.
This commit is contained in:
@@ -7,6 +7,7 @@ return { {
|
|||||||
config = function()
|
config = function()
|
||||||
-- Pre-install a few languages we're (very) likely going to use
|
-- Pre-install a few languages we're (very) likely going to use
|
||||||
local ts = require('nvim-treesitter')
|
local ts = require('nvim-treesitter')
|
||||||
|
ts.setup({ install_dir = vim.fn.stdpath('cache') .. '/tree-sitter' })
|
||||||
ts.install({
|
ts.install({
|
||||||
'c', 'make',
|
'c', 'make',
|
||||||
'bash', 'gitignore', 'editorconfig',
|
'bash', 'gitignore', 'editorconfig',
|
||||||
|
|||||||
Reference in New Issue
Block a user