summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/TODO-comment.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/custom/plugins/TODO-comment.lua')
-rw-r--r--.config/nvim/lua/custom/plugins/TODO-comment.lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/.config/nvim/lua/custom/plugins/TODO-comment.lua b/.config/nvim/lua/custom/plugins/TODO-comment.lua
deleted file mode 100644
index 02eb39d..0000000
--- a/.config/nvim/lua/custom/plugins/TODO-comment.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-return {
- 'numToStr/Comment.nvim',
- opts = {
- padding = true,
- ignore = nil,
-
- toggler = { line = 'gcc', block = 'gbc' },
- opleader = { line = 'gc', block = 'gb' },
- extra = { above = 'gcO', below = 'gco', eol = 'gcA' },
-
- mappings = {
- basic = true, -- `gcc` `gbc` `gc[count]{motion}` `gb[count]{motion}`
- extra = false, -- `gco`, `gcO`, `gcA`
- },
- },
- config = function()
- local api = require('Comment.api')
- local esc = vim.api.nvim_replace_termcodes('<ESC>', true, false, true)
- local toggole_linewise_selection = function()
- vim.api.nvim_feedkeys(esc, 'nx', false)
- api.toggle.linewise(vim.fn.visualmode())
- end
-
- vim.keymap.set('n', '<C-_>', api.toggle.linewise.current, { noremap = true, silent = true })
- vim.keymap.set('v', '<C-_>', toggole_linewise_selection, { noremap = true, silent = true })
- end,
-}