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

@@ -1,5 +0,0 @@
vim.g.airline_theme = 'minimalist'
vim.g.airline_powerline_fonts = 1
vim.g.airline_stl_path_style = 'short'
vim.g.airline_highlighting_cache = 1
vim.g.airline#extensions#searchcount#enabled = 0

View File

@@ -1,11 +0,0 @@
"noremap <silent> n <Cmd>execute('normal! ' . v:count1 . 'n')<CR>
" \<Cmd>lua require('hlslens').start()<CR>
"noremap <silent> N <Cmd>execute('normal! ' . v:count1 . 'N')<CR>
" \<Cmd>lua require('hlslens').start()<CR>
"noremap * *<Cmd>lua require('hlslens').start()<CR>
"noremap # #<Cmd>lua require('hlslens').start()<CR>
"noremap g* g*<Cmd>lua require('hlslens').start()<CR>
"noremap g# g#<Cmd>lua require('hlslens').start()<CR>
"
"" use : instead of <Cmd>
"nnoremap <silent> <leader>l :noh<CR>

View File

@@ -1 +0,0 @@
let g:mkdp_filetypes = ['markdown', 'plantuml']

View File

@@ -1,14 +0,0 @@
require('neorg').setup {
load = {
["core.defaults"] = {},
["core.norg.dirman"] = {
config = {
workspaces = {
work = "~/notes/work",
home = "~/notes/home",
}
}
},
["core.norg.concealer"] = {},
}
}

View File

@@ -1,57 +0,0 @@
-- Plug 'rgroli/other.nvim'
require("other-nvim").setup({
mappings = {
-- custom mapping
{
pattern = "/src/(.*).cpp$",
target = "/include/%1.hpp",
transformer = "lowercase",
context = "header"
},
{
pattern = "/src/(.*).cpp$",
target = "/include/%1.h",
transformer = "lowercase",
context = "header"
},
{
pattern = "/src/(.*).hpp$",
target = "/include/%1.cpp",
transformer = "lowercase",
context = "source"
},
{
pattern = "/include/(.*).hpp$",
target = "/src/%1.cpp",
transformer = "lowercase",
context = "source"
},
{
pattern = "/include/(.*).h$",
target = "/src/%1.cpp",
transformer = "lowercase",
context = "source"
}
},
transformers = {
-- defining a custom transformer
lowercase = function (inputString)
return inputString:lower()
end
},
style = {
-- How the plugin paints its window borders
-- Allowed values are none, single, double, rounded, solid and shadow
border = "solid",
-- Column seperator for the window
seperator = "|",
-- width of the window in percent. e.g. 0.5 is 50%, is 100%
width = 0.7,
-- min height in rows.
-- when more columns are needed this value is extended automatically
minHeight = 2
},
})

View File

@@ -1,43 +0,0 @@
--Plug 'nvim-lua/plenary.nvim'
--Plug 'narutoxy/silicon.lua'
-- Not working well
-- silicon = require('silicon')
-- silicon.setup(
-- {
-- theme = "auto",
-- output = "SILICON_${year}-${month}-${date}_${time}.png", -- auto generate file name based on time (absolute or relative to cwd)
-- bgColor = vim.g.terminal_color_5,
-- bgImage = "", -- path to image, must be png
-- roundCorner = true,
-- windowControls = true,
-- lineNumber = true,
-- font = "monospace",
-- lineOffset = 1, -- from where to start line number
-- linePad = 2, -- padding between lines
-- padHoriz = 80, -- Horizontal padding
-- padVert = 100, -- vertical padding
-- shadowBlurRadius = 10,
-- shadowColor = "#555555",
-- shadowOffsetX = 8,
-- shadowOffsetY = 8,
-- gobble = false, -- enable lsautogobble like feature
-- debug = true, -- enable debug output
-- }
-- )
--
-- -- Generate image of lines in a visual selection
-- vim.keymap.set('v', '<Leader>s', function() silicon.visualise_api({to_clip = false, show_buf = false}) end )
-- -- Generate image of a whole buffer, with lines in a visual selection highlighted
-- vim.keymap.set('v', '<Leader>bs', function() silicon.visualise_api({to_clip = false, show_buf = true}) end )
-- -- Generate visible portion of a buffer
-- --vim.keymap.set('n', '<Leader>s', function() silicon.visualise_api({to_clip = true, visible = true}) end )
-- -- Generate current buffer line in normal mode
-- --vim.keymap.set('n', '<Leader>s', function() silicon.visualise_api({to_clip = true}) end )
-- Time for silicon.nvim
require('silicon').setup({
font = 'FantasqueSansMono Nerd Font=16',
theme = 'Monokai Extended',
})

View File

@@ -1,2 +0,0 @@
let g:vim_search_pulse_mode = 'pattern'
let g:vim_search_pulse_duration = 400

View File

@@ -1 +0,0 @@
let g:startify_custom_header = ''

View File

@@ -1,7 +0,0 @@
require('nvim-toggler').setup({
inverses = {
['vim'] = 'emacs'
},
-- removes the default <leader>i keymap
remove_default_keybinds = true,
})

View File

@@ -1,7 +0,0 @@
"nmap <silent> <leader>tn :TestNearest<CR>
"nmap <silent> <leader>tf :TestFile<CR>
"nmap <silent> <leader>ts :TestSuite<CR>
"nmap <silent> <leader>tl :TestLast<CR>
"nmap <silent> <leader>tv :TestVisit<CR>
"
"let test#strategy = "floaterm"

View File

@@ -1,8 +0,0 @@
require('nvim-window').setup({
chars = {
'j', 'k', 'l', 'f', 'd', 's', 'g', 'h', 'i', 'e', 'a', 'b', 'm', 'n', 'o',
'p', 'q', 'r', 'c', 't', 'u', 'v', 'w', 'x', 'y', 'z'
},
})
vim.api.nvim_set_keymap('n', '<leader>j', '<cmd>lua require("nvim-window").pick()<cr>', {silent=true, noremap = true})

View File

@@ -1 +0,0 @@
../spell.vim

View File

@@ -1,3 +0,0 @@
setlocal spell
" Undo changes when switching to different buffer
"let b:undo_ftplugin .= '|setlocal spell<'

View File

@@ -1 +0,0 @@
../spell.vim

View File

@@ -102,8 +102,10 @@ map('n', '<C-w>=', "<cmd WindowsEqualize<cr>")
-- specs -- specs
-- You can even bind it to search jumping and more, example: -- 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>', default_options)
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)
-- Or maybe you do a lot of screen-casts and want to call attention to a specific line of code: -- 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>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 { return {
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
requires = {
"SmiteshP/nvim-navbuddy",
},
config = function() config = function()
local nvim_lsp = require('lspconfig') local nvim_lsp = require('lspconfig')
local clangd_extensions = require('clangd_extensions') local clangd_extensions = require('clangd_extensions')
@@ -42,6 +45,7 @@ return {
floating_window_off_x = 500, floating_window_off_x = 500,
floating_window_off_y = -5, floating_window_off_y = -5,
}) })
require'nvim-navbuddy'.attach(client, bufnr)
end end
local signs = { 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
}