fix(nvim): treesitter paths

This commit is contained in:
Oliver Davies 2022-10-03 21:33:14 +01:00
parent 85db57210d
commit 1a0707910e

View file

@ -3,6 +3,9 @@ if not has_configs then
return
end
local parser_install_dir = vim.fn.stdpath('data') .. "/site";
configs.setup {
context_commenting = {
enable = true,
@ -51,8 +54,11 @@ configs.setup {
},
},
},
parser_install_dir = parser_install_dir,
}
vim.opt.runtimepath:append(parser_install_dir)
local nmap = require("opdavies.keymap").nmap
nmap { "<leader>th", "<cmd>TSHighlightCapturesUnderCursor<CR>" }