Skip to content

What to use in place of deprecated api? #232

@steve-lorimer

Description

@steve-lorimer

I was previously using the following commands in some custom keybindings:

in normal mode, to toggle the current line:

    "<cmd>lua require('Comment.api').toggle_current_linewise()<CR>",

in visual mode. to toggle the current block:

    ":lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())<CR>",

After upgrading recently, I'm getting an error ... deprecate ..., obviously signalling the api I was using has since been deprecated.

What should I use instead please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions