feat: add snipe.nvim
This commit is contained in:
parent
3b2af3b611
commit
f3ab80b598
2 changed files with 33 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ This is more accurate than `nvim --startuptime`.
|
||||||
| **copilot.lua** | The better github.com/github/copilot.vim | <https://github.com/zbirenbaum/copilot.lua> |
|
| **copilot.lua** | The better github.com/github/copilot.vim | <https://github.com/zbirenbaum/copilot.lua> |
|
||||||
| **copilot-cmp** | transforms zbirenbaum/copilot.lua into a cmp source. | <https://github.com/zbirenbaum/copilot-cmp> |
|
| **copilot-cmp** | transforms zbirenbaum/copilot.lua into a cmp source. | <https://github.com/zbirenbaum/copilot-cmp> |
|
||||||
| **nvim-lint** | Narrow-scope linter plugin to use via Neovim diagnostic framework | <https://github.com/mfussenegger/nvim-lint> |
|
| **nvim-lint** | Narrow-scope linter plugin to use via Neovim diagnostic framework | <https://github.com/mfussenegger/nvim-lint> |
|
||||||
|
| **snipe.nvim** | Buffer navigation | <https://github.com/leath-dub/snipe.nvim> |
|
||||||
|
|
||||||
## Looks
|
## Looks
|
||||||
|
|
||||||
|
|
|
||||||
32
lua/weeheavy/plugins/snipe.lua
Normal file
32
lua/weeheavy/plugins/snipe.lua
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
-- Buffer navigation
|
||||||
|
-- https://github.com/leath-dub/snipe.nvim
|
||||||
|
return {
|
||||||
|
"leath-dub/snipe.nvim",
|
||||||
|
opts = {},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader><leader>",
|
||||||
|
function()
|
||||||
|
require("snipe").open_buffer_menu()
|
||||||
|
end,
|
||||||
|
desc = "Open Snipe buffer menu",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
local snipe = require("snipe")
|
||||||
|
snipe.setup({
|
||||||
|
hints = {
|
||||||
|
-- Charaters to use for hints
|
||||||
|
-- make sure they don't collide with the navigation keymaps
|
||||||
|
dictionary = "saflewcmpghio",
|
||||||
|
},
|
||||||
|
navigate = {
|
||||||
|
cancel_snipe = "q",
|
||||||
|
-- Close the buffer under the cursor
|
||||||
|
-- PR not merged yet: https://github.com/leath-dub/snipe.nvim/pull/13
|
||||||
|
-- NOTE: Make sure you don't use the character below on your dictionary
|
||||||
|
close_buffer = "d",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue