/cmp-treesitter

cmp source for treesitter

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

cmp-treesitter

nvim-cmp source for treesitter nodes. Using all treesitter highlight nodes as completion candicates. LRU cache is used to improve performance.

Setup

require'cmp'.setup {
  sources = {
    { name = 'treesitter' }
  }
}

Screenshot

treesitter_cmp

Screen Shot 2021-10-24 at 1 00 29 pm