kickstart.nvim/lua/misc/blink.nvim.lua

38 lines
930 B
Lua

return {
'saghen/blink.nvim',
build = 'cargo build --release', -- for delimiters
keys = {
-- chartoggle
{
';',
function()
require('blink.chartoggle').toggle_char_eol ';'
end,
mode = { 'n', 'v' },
desc = 'Toggle ; at eol',
},
{
',',
function()
require('blink.chartoggle').toggle_char_eol ','
end,
mode = { 'n', 'v' },
desc = 'Toggle , at eol',
},
--[[
-- tree
{ '<C-e>', '<cmd>BlinkTree reveal<cr>', desc = 'Reveal current file in tree' },
{ '<leader>E', '<cmd>BlinkTree toggle<cr>', desc = 'Reveal current file in tree' },
{ '<leader>e', '<cmd>BlinkTree toggle-focus<cr>', desc = 'Toggle file tree focus' },
--]]
},
-- all modules handle lazy loading internally
lazy = false,
opts = {
chartoggle = { enabled = true },
indent = { enabled = false },
tree = { enabled = false },
},
}