Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment text objects seem not to work #55

Open
maciejzj opened this issue Mar 25, 2023 · 0 comments
Open

Comment text objects seem not to work #55

maciejzj opened this issue Mar 25, 2023 · 0 comments

Comments

@maciejzj
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant