fix(nvim): treesitter parser location issue

This commit is contained in:
Oliver Davies 2023-04-06 00:25:49 +01:00
parent dc9ee849bb
commit 388b423114

View file

@ -4,7 +4,7 @@ if not has_configs then
end end
local parser_install_dir = vim.fn.stdpath('data') .. "/site"; local parser_install_dir = vim.fn.stdpath('cache') .. "treesitters";
configs.setup { configs.setup {
autotag = { autotag = {
@ -62,6 +62,7 @@ configs.setup {
parser_install_dir = parser_install_dir, parser_install_dir = parser_install_dir,
} }
vim.fn.mkdir(parser_install_dir, "p")
vim.opt.runtimepath:append(parser_install_dir) vim.opt.runtimepath:append(parser_install_dir)
local nmap = require("opdavies.keymap").nmap local nmap = require("opdavies.keymap").nmap