63 lines
1.8 KiB
Lua
63 lines
1.8 KiB
Lua
return {
|
|
{
|
|
'numToStr/Comment.nvim',
|
|
keys = {
|
|
{ 'gcc', mode = 'n', desc = 'Comment toggle current line' },
|
|
{ 'gc', mode = { 'n', 'o' }, desc = 'Comment toggle linewise' },
|
|
{ 'gc', mode = 'x', desc = 'Comment toggle linewise (visual)' },
|
|
{ 'gbc', mode = 'n', desc = 'Comment toggle current block' },
|
|
{ 'gb', mode = { 'n', 'o' }, desc = 'Comment toggle blockwise' },
|
|
{ 'gb', mode = 'x', desc = 'Comment toggle blockwise (visual)' },
|
|
{
|
|
'<leader>v',
|
|
function()
|
|
require('Comment.api').toggle.linewise.current()
|
|
end,
|
|
mode = { 'n', 'v' },
|
|
desc = 'Comment toggle current line',
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
vim.keymap.set('n', '<leader>c', function()
|
|
require('Comment.api').toggle.linewise.current()
|
|
end, { desc = '[T]oggle [C]omment' })
|
|
vim.keymap.set('v', '<leader>c', function()
|
|
require('Comment.api').toggle.linewise.current()
|
|
end, { desc = '[T]oggle [C]omment' })
|
|
|
|
require('Comment').setup(opts)
|
|
end,
|
|
},
|
|
{
|
|
'uga-rosa/ccc.nvim',
|
|
lazy = false,
|
|
event = 'FileType',
|
|
keys = {
|
|
{ '<Leader>cp', '<cmd>CccPick<CR>', desc = 'Color-picker' },
|
|
},
|
|
opts = {
|
|
highlighter = {
|
|
auto_enable = true,
|
|
lsp = true,
|
|
excludes = { 'lazy', 'mason', 'help', 'neo-tree' },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
'dhruvasagar/vim-table-mode',
|
|
lazy = false,
|
|
-- <Leader>tm is automatically set for toggle
|
|
-- see <Leader>t menu
|
|
},
|
|
{
|
|
'ziontee113/icon-picker.nvim',
|
|
keys = {
|
|
{ '<localleader>fi', '<cmd>IconPickerNormal<CR>', desc = 'pick icon' },
|
|
},
|
|
cmd = { 'IconPickerInsert', 'IconPickerYank', 'IconPickerNormal' },
|
|
config = function()
|
|
require('icon-picker').setup { disable_legacy_commands = true }
|
|
end,
|
|
},
|
|
}
|