Skip to content

Commit

Permalink
refactor(nvim): remove comment mappings to support built-in commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsan committed Apr 9, 2024
1 parent 4237269 commit ef4d29a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 116 deletions.
98 changes: 0 additions & 98 deletions .config/nvim/autoload/kutsan/mappings/operator/comment.vim

This file was deleted.

18 changes: 0 additions & 18 deletions .config/nvim/plugin/mappings/operator.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1 @@
local keymap = vim.keymap

-- Comment and uncomment operator.
keymap.set(
'n',
'gc',
'<Cmd>set operatorfunc=kutsan#mappings#operator#comment#<CR>g@',
{
silent = true,
}
)
keymap.set(
'x',
'gc',
':<C-u>call kutsan#mappings#operator#comment#(visualmode())<CR>',
{
silent = true,
}
)

0 comments on commit ef4d29a

Please sign in to comment.