terrortylor / nvim-comment

A comment toggler for Neovim, written in Lua
MIT License
479 stars 23 forks source link

Comment text objects seem not to work #55

Open maciejzj opened 1 year ago

maciejzj commented 1 year ago

Hi! I have the following nvim_comment setup:

-- Code commenting
require("nvim_comment").setup()

My full config at: https://github.com/maciejzj/dotfiles/blob/master/init.lua

I expect the default setup from nvim-comment's README to include:

-- text object mapping, comment chunk,,
comment_chunk_text_object = "ic",

The comment text objects seem not to work (at least in bash scripts and python). When I edit a chunk of text like this:

    # Matplotlib components are oververbose < Cursor on this line
    matplotlib.pyplot.set_loglevel('info')

And type cic in normal mode I would expect to change inside comment, yet nothing really happens (nvim enters insert mode).

Versions: NVIM v0.8.3 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@Ventura-arm64.

nim-comment@e9ac16ab056695cad6461173693069ec070d2b23