Nvim: add nvim-buddy
This commit is contained in:
@@ -102,8 +102,10 @@ map('n', '<C-w>=', "<cmd WindowsEqualize<cr>")
|
||||
|
||||
-- specs
|
||||
-- You can even bind it to search jumping and more, example:
|
||||
vim.api.nvim_set_keymap('n', 'n', 'n:lua require("specs").show_specs()<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', 'N', 'N:lua require("specs").show_specs()<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', 'n', 'n:lua require("specs").show_specs()<CR>', default_options)
|
||||
vim.api.nvim_set_keymap('n', 'N', 'N:lua require("specs").show_specs()<CR>', default_options)
|
||||
|
||||
-- Or maybe you do a lot of screen-casts and want to call attention to a specific line of code:
|
||||
vim.api.nvim_set_keymap('n', '<leader>v', ':lua require("specs").show_specs({width = 97, winhl = "Search", delay_ms = 610, inc_ms = 21})<CR>', { noremap = true, silent = true })
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<leader>cb', ':lua require("nvim-navbuddy").open()<cr>', default_options)
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
return {
|
||||
'neovim/nvim-lspconfig',
|
||||
requires = {
|
||||
"SmiteshP/nvim-navbuddy",
|
||||
},
|
||||
config = function()
|
||||
local nvim_lsp = require('lspconfig')
|
||||
local clangd_extensions = require('clangd_extensions')
|
||||
@@ -42,6 +45,7 @@ return {
|
||||
floating_window_off_x = 500,
|
||||
floating_window_off_y = -5,
|
||||
})
|
||||
require'nvim-navbuddy'.attach(client, bufnr)
|
||||
end
|
||||
|
||||
local signs = {
|
||||
|
||||
12
.config/nvim/lua/plugins/navbuddy.lua
Normal file
12
.config/nvim/lua/plugins/navbuddy.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"SmiteshP/nvim-navbuddy",
|
||||
dependencies = {
|
||||
"neovim/nvim-lspconfig",
|
||||
"SmiteshP/nvim-navic",
|
||||
"MunifTanjim/nui.nvim"
|
||||
},
|
||||
config = function()
|
||||
require'nvim-navic'.setup()
|
||||
require'nvim-navbuddy'.setup()
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user