tyru / caw.vim

Vim comment plugin: supported operator/non-operator mappings, repeatable by dot-command, 300+ filetypes
379 stars 48 forks source link

Toggle does not work when using nvim-tree-sitter #149

Closed lighttiger2505 closed 4 years ago

lighttiger2505 commented 4 years ago

To reproduce

caw_treesitter

  1. Execute <Plug>(caw:hatpos:toggle)
  2. Execute <Plug>(caw:hatpos:toggle)
call plug#begin('~/.local/share/nvim/cawdev')

Plug 'nvim-treesitter/nvim-treesitter'
Plug 'tyru/caw.vim'

call plug#end()

lua <<EOF
require'nvim-treesitter.configs'.setup {
  ensure_installed = "all",
  highlight = {
    enable = true,
    disable = { "c", "rust" },
  },
}
EOF

nmap <Space><Space> <Plug>(caw:hatpos:toggle)

Neovim version

NVIM v0.5.0-657-g1e14dacd0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

OS version

OS: Arch Linux x86_64
Host: 20NLCTO1WW ThinkPad X395
Kernel: 5.8.3-arch1-1
Uptime: 12 days, 9 hours, 18 mins
Packages: 779 (pacman)
Shell: zsh 5.8
Resolution: 1920x1080, 1920x1080
WM: i3
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
CPU: AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx (8) @ 2.300GHz
GPU: AMD ATI 05:00.0 Picasso
Memory: 4122MiB / 13934MiB