add folke/snacks plugin
add keybinding ctrl-w d to close buffer without closing window
This commit is contained in:
parent
b341a42762
commit
ef1029c595
19
init.lua
19
init.lua
|
@ -120,6 +120,25 @@ require('lazy').setup({
|
|||
-- Use `opts = {}` to force a plugin to be loaded.
|
||||
--
|
||||
|
||||
{
|
||||
'folke/snacks.nvim',
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
bigfile = { enabled = true },
|
||||
dashboard = { enabled = true },
|
||||
notifier = {
|
||||
enabled = true,
|
||||
timeout = 3000,
|
||||
},
|
||||
quickfile = { enabled = true },
|
||||
statuscolumn = { enabled = true },
|
||||
words = { enabled = true },
|
||||
},
|
||||
},
|
||||
-- Here is a more advanced example where we pass configuration
|
||||
-- options to `gitsigns.nvim`. This is equivalent to the following Lua:
|
||||
-- require('gitsigns').setup({ ... })
|
||||
|
|
|
@ -37,6 +37,7 @@ return {
|
|||
map('n', '<S-Tab>', ':bp!<Enter>', { desc = 'Go to previous buffer' }),
|
||||
map('n', '<leader>bd', ':bd<Enter>', { desc = 'close the current buffer' }),
|
||||
map('n', '<leader>bl', ':FlyBuf<Enter>', { desc = 'open up a list of all buffers in a float' }),
|
||||
map('n', '<C-w>d', ':bp<bar>sp<bar>bn<bar>bd<CR>', { desc = 'close the current buffer' }),
|
||||
|
||||
-- neo-tree
|
||||
vim.keymap.set('n', '<leader>e', ':Neotree reveal<CR>', { desc = 'Open file browser' }),
|
||||
|
|
Loading…
Reference in New Issue