Closed echoface closed 1 year ago
nvim 0.8.1 nvim-treesitter: latest indent behaviour wrong
details:
case 1: enable nvim-treesitter with go support set indentexpr? output => indentexpr=nvim_treesitter#indent()
func abc(v int) { switch v { } switch { } for { switch { } } }
case 2: disable nvim-treesitter, everything going on well: (ps: filetype indent on)
set indentexpr? output => indentexpr=GoIndent(v:lnum)
That's an issue for nvim-treesitter, not tree-sitter-go
nvim 0.8.1 nvim-treesitter: latest indent behaviour wrong
details:
case 1: enable nvim-treesitter with go support set indentexpr? output => indentexpr=nvim_treesitter#indent()
case 2: disable nvim-treesitter, everything going on well: (ps: filetype indent on)
set indentexpr? output => indentexpr=GoIndent(v:lnum)