fix(nvim): treesitter paths
This commit is contained in:
parent
85db57210d
commit
1a0707910e
|
@ -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>" }
|
||||
|
|
Loading…
Reference in a new issue