Nvim: add nvim-buddy

This commit is contained in:
Robert Kmieć
2023-04-02 23:16:37 +02:00
parent 2acb8c969d
commit 593d27f333
19 changed files with 20 additions and 163 deletions

View File

@@ -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)

View File

@@ -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 = {

View 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
}