Nvim: add nvim-buddy
This commit is contained in:
@@ -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
|
||||
@@ -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>
|
||||
@@ -1 +0,0 @@
|
||||
let g:mkdp_filetypes = ['markdown', 'plantuml']
|
||||
@@ -1,14 +0,0 @@
|
||||
require('neorg').setup {
|
||||
load = {
|
||||
["core.defaults"] = {},
|
||||
["core.norg.dirman"] = {
|
||||
config = {
|
||||
workspaces = {
|
||||
work = "~/notes/work",
|
||||
home = "~/notes/home",
|
||||
}
|
||||
}
|
||||
},
|
||||
["core.norg.concealer"] = {},
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
},
|
||||
})
|
||||
@@ -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',
|
||||
})
|
||||
@@ -1,2 +0,0 @@
|
||||
let g:vim_search_pulse_mode = 'pattern'
|
||||
let g:vim_search_pulse_duration = 400
|
||||
@@ -1 +0,0 @@
|
||||
let g:startify_custom_header = ''
|
||||
@@ -1,7 +0,0 @@
|
||||
require('nvim-toggler').setup({
|
||||
inverses = {
|
||||
['vim'] = 'emacs'
|
||||
},
|
||||
-- removes the default <leader>i keymap
|
||||
remove_default_keybinds = true,
|
||||
})
|
||||
@@ -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"
|
||||
@@ -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})
|
||||
@@ -1 +0,0 @@
|
||||
../spell.vim
|
||||
@@ -1,3 +0,0 @@
|
||||
setlocal spell
|
||||
" Undo changes when switching to different buffer
|
||||
"let b:undo_ftplugin .= '|setlocal spell<'
|
||||
@@ -1 +0,0 @@
|
||||
../spell.vim
|
||||
@@ -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