vim: fix treesitter lazy loading problem
This commit is contained in:
parent
b08a873811
commit
b9e5e9e4ea
1 changed files with 5 additions and 15 deletions
|
@ -6,27 +6,17 @@ M.dependencies = {
|
|||
'nvim-treesitter/playground',
|
||||
}
|
||||
|
||||
M.event = {
|
||||
'BufReadPost',
|
||||
'BufNewFile'
|
||||
}
|
||||
|
||||
M.cmd = {
|
||||
'TSInstall',
|
||||
'TSUninstall',
|
||||
'TSUpdate',
|
||||
'TSUpdateSync',
|
||||
'TSInstallInfo',
|
||||
'TSInstallSync',
|
||||
'TSInstallFromGrammar',
|
||||
}
|
||||
|
||||
M.keys = {
|
||||
{ '<leader>tp', '<cmd>TSPlaygroundToggle<cr>' },
|
||||
{ '<leader>th', '<cmd>TSHighlightCapturesUnderCursor<cr>' },
|
||||
{ '<leader>tn', '<cmd>TSNodeUnderCursor<cr>' },
|
||||
}
|
||||
|
||||
-- When lazy loading treesitter, I get a problem when I open the first file
|
||||
-- using Telescope: treesitter is used correctly in the previewer but is broken
|
||||
-- afterwards.
|
||||
M.lazy = false
|
||||
|
||||
M.config = function()
|
||||
require('nvim-treesitter.configs').setup {
|
||||
ensure_installed = {
|
||||
|
|
Loading…
Add table
Reference in a new issue