Nvim: update all plugins to used ones, disable unused

This commit is contained in:
Robert Kmieć
2023-10-19 23:47:02 +02:00
parent ec0ae0ee13
commit c436875e4b
32 changed files with 179 additions and 92 deletions

View File

@@ -40,9 +40,9 @@ map('n', '<leader>i', '<cmd>lua require("FTerm").toggle()<CR>', default_options)
map('t', '<leader>i', '<cmd>lua require("FTerm").toggle()<CR>', default_options)
-- icon picker
map('n', '<C-k>i', '<cmd>IconPickerNormal<cr>', default_options)
map('n', '<C-k>y', '<cmd>IconPickerYank<cr>', default_options)
map('i', '<C-k>i', '<cmd>IconPickerInsert<cr>', default_options)
-- map('n', '<C-k>i', '<cmd>IconPickerNormal<cr>', default_options)
-- map('n', '<C-k>y', '<cmd>IconPickerYank<cr>', default_options)
-- map('i', '<C-k>i', '<cmd>IconPickerInsert<cr>', default_options)
-- iswap
map('n', '<leader>sw', '<cmd>ISwapWith<cr>', default_options)
@@ -90,8 +90,6 @@ map('n', '<leader>gC', '<cmd>lua require("telescope.builtin").git_bcommits()<cr>
map('n', '<leader>gb', '<cmd>lua require("telescope.builtin").git_branches()<cr>', default_options)
-- map('n', '<leader>s', '<cmd>lua require('telescope').extensions.ultisnips.ultisnips()<cr>, default_options)
map('n', '<leader>u', '<cmd>lua require("telescope").extensions.undo.undo()<cr>', default_options)
map('n', '<leader>cf', '<cmd>lua require("telescope").extensions.agrolens.agrolens({query="functions, labels"})<cr>', default_options)
map('n', '<leader>cc', '<cmd>lua require("telescope").extensions.agrolens.agrolens({query="callings"})<cr>', default_options)
-- toggler not active
--vim.keymap.set({'n', 'v'}, 'gt', require('nvim-toggler').toggle)

View File

@@ -9,9 +9,10 @@ if not vim.loop.fs_stat(lazypath) then
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
--vim.opt.rtp:append(lazypath)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
return require'lazy'.setup('plugins')
vim.opt.rtp:append(lazypath)
require'lazy'.setup('plugins')

View File

@@ -0,0 +1,4 @@
return {
'kergoth/vim-bitbake', -- Bitbake templates and syntax
ft = { 'bitbake' }
}

View File

@@ -1,4 +1,5 @@
return {
-- 'gcc' to toggle comments
'numToStr/Comment.nvim',
config = true
}

View File

@@ -0,0 +1,4 @@
return {
'rcarriga/nvim-dap-ui',
config = true
}

View File

@@ -0,0 +1,4 @@
return {
'theHamsta/nvim-dap-virtual-text',
config = true,
}

View File

@@ -0,0 +1,33 @@
return {
'mfussenegger/nvim-dap',
config = function()
local dap = require("dap")
dap.adapters.gdb = {
type = "executable",
command = "gdb",
args = { "-i", "dap" }
}
dap.configurations.c = {
{
name = "Launch",
type = "gdb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = "${workspaceFolder}",
},
}
dap.configurations.cpp = {
{
name = "Launch",
type = "gdb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = "${workspaceFolder}",
},
}
end
}

View File

@@ -1,4 +1,6 @@
return {
-- g?v print variable
-- g?p print line
'andrewferrier/debugprint.nvim',
config = true,
}

View File

@@ -1,5 +1,6 @@
return {
'stevearc/dressing.nvim',
enabled = false,
opts = {
input = {
-- Set to false to disable the vim.ui.input implementation

View File

@@ -1,6 +0,0 @@
return {
'kiran94/edit-markdown-table.nvim',
config = true,
dependencies = { "nvim-treesitter/nvim-treesitter" },
cmd = "EditMarkdownTable",
}

View File

@@ -24,6 +24,6 @@
return {
"chrisgrieser/nvim-origami",
event = "BufReadPost", -- later or on keypress would prevent saving folds
opts = true, -- needed even when using default config
enabled = false
config = true, -- needed even when using default config
enabled = true
}

View File

@@ -2,5 +2,6 @@ return {
'ziontee113/icon-picker.nvim',
config = function()
require("icon-picker").setup({disable_legacy_commands = true })
end
end,
enabled = false
}

View File

@@ -18,12 +18,12 @@ return {
},
exclude_filetypes = {'log'},
callbacks = {
-- to trigger the close_events of vim.diagnostic.open_float.
function ()
-- Close floating diag. and make it triggerable again.
vim.api.nvim_exec_autocmds("User", { pattern = "MurmurDiagnostics"})
vim.w.diag_shown = false
end,
-- -- to trigger the close_events of vim.diagnostic.open_float.
-- function ()
-- -- Close floating diag. and make it triggerable again.
-- vim.api.nvim_exec_autocmds("User", { pattern = "MurmurDiagnostics"})
-- vim.w.diag_shown = false
-- end,
}
}
vim.api.nvim_create_autocmd('CursorHold', {

View File

@@ -1,52 +1,25 @@
return {{
-- Code development helpers {{{
--"vim-test/vim-test",
--"RRethy/vim-illuminate",
{ "ftilde/vim-ugdb", cmd = "UGDBBreakpoint" },
-- }}}
-- }}}
-- Files switch, jump and grep-like tools {{{
--"inside/vim-search-pulse",
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-lua/popup.nvim",
"wellle/targets.vim",
-- }}}
-- Git integration {{{
"tpope/vim-fugitive",
-- }}}
-- Support for random filetypes {{{
"chrisbra/csv.vim",
--"iamcco/markdown-preview.nvim",, { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
--"vim-pandoc/vim-pandoc",
--"weirongxu/plantuml-previewer.vim", |
"aklt/plantuml-syntax",
{
"kergoth/vim-bitbake", -- Bitbake templates and syntax
ft = { "bitbake" }
},
-- }}}
-- Other plugins (external tools, etc) {{{
--"JMcKiern/vim-shoot",
--"junegunn/goyo.vim",
"protex/better-digraphs.nvim",
-- }}}
-- Testing phase {{{
--"RRethy/vim-hexokinase",, { 'do': 'make hexokinase' }
--"euclio/vim-markdown-composer",, {'do': ':!cargo build --release --locked'}
--"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
--require('lsp_lines').setup()
--"mfussenegger/nvim-dap",
--"rgroli/other.nvim", " Currently doesn't support C/C++
--"smolovk/projector.nvim",
"Pocco81/true-zen.nvim",
"nullchilly/fsread.nvim",
{
@@ -57,6 +30,4 @@ return {{
"shortcuts/no-neck-pain.nvim",
enabled = false,
},
--'jinzhongjia/PS_manager.nvim',
-- }}}
}}

View File

@@ -1,5 +1,6 @@
return {
'frabjous/knap',
enabled = false,
config = function()
local gknapsettings = {
htmloutputext = "html",

View File

@@ -0,0 +1,4 @@
return {
'dasupradyumna/launch.nvim',
config = true
}

View File

@@ -1,10 +1,22 @@
return {
'ggandor/leap.nvim',
config = function()
local leap = require('leap')
leap.add_default_mappings()
vim.cmd([[
autocmd ColorScheme * lua require('leap').init_highlight(true)
]])
end
'smoka7/hop.nvim',
version = "*",
config = function()
-- place this in one of your configuration file(s)
local hop = require('hop')
hop.setup()
local directions = require('hop.hint').HintDirection
vim.keymap.set('', 'f', function()
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false })
end, {remap=true})
vim.keymap.set('', 'F', function()
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false })
end, {remap=true})
vim.keymap.set('', 't', function()
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false, hint_offset = -1 })
end, {remap=true})
vim.keymap.set('', 'T', function()
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false, hint_offset = 1 })
end, {remap=true})
end,
}

View File

@@ -6,10 +6,10 @@ return {
hipatterns.setup({
highlighters = {
-- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
fixme = { pattern = '%f[%w]()EFMC 0()%f[%W]', group = 'MiniHipatternsFixme' },
hack = { pattern = '%f[%w]()Vehicle 0()%f[%W]', group = 'MiniHipatternsHack' },
todo = { pattern = '%f[%w]()CoCo 0()%f[%W]', group = 'MiniHipatternsTodo' },
note = { pattern = '%f[%w]()EneM 0()%f[%W]', group = 'MiniHipatternsNote' },
-- fixme = { pattern = '%f[%w]()EFMC 0()%f[%W]', group = 'MiniHipatternsFixme' },
-- hack = { pattern = '%f[%w]()Vehicle 0()%f[%W]', group = 'MiniHipatternsHack' },
-- todo = { pattern = '%f[%w]()CoCo 0()%f[%W]', group = 'MiniHipatternsTodo' },
-- note = { pattern = '%f[%w]()EneM 0()%f[%W]', group = 'MiniHipatternsNote' },
-- Highlight hex color strings (`#rrggbb`) using that color
hex_color = hipatterns.gen_highlighter.hex_color(),

View File

@@ -1,6 +1,5 @@
return {
-- <leader>mm
'gorbit99/codewindow.nvim',
config = function()
require('codewindow').setup()
end
config = true,
}

View File

@@ -1,5 +1,6 @@
return {
'danymat/neogen',
enabled = false,
opts = {
--snippet_engine = 'ultisnips',
input_after_comment = true,

View File

@@ -0,0 +1,4 @@
return {
'gsuuon/note.nvim',
config = true
}

View File

@@ -1,16 +1,23 @@
return {
'jose-elias-alvarez/null-ls.nvim',
'nvimtools/none-ls.nvim',
config = function()
null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.stylua,
null_ls.builtins.completion.spell,
--null_ls.builtins.completion.spell,
null_ls.builtins.code_actions.gitsigns,
null_ls.builtins.diagnostics.gitlint,
null_ls.builtins.diagnostics.cmake_lint,
null_ls.builtins.diagnostics.codespell,
--null_ls.builtins.diagnostics.misspell,
null_ls.builtins.diagnostics.hadolint,
null_ls.builtins.hover.dictionary},
null_ls.builtins.diagnostics.buf,
null_ls.builtins.diagnostics.typos,
null_ls.builtins.code_actions.proselint,
null_ls.builtins.diagnostics.proselint,
null_ls.builtins.hover.dictionary,
null_ls.builtins.formatting.black},
})
end
}

View File

@@ -36,7 +36,6 @@ return {
{ name = 'path' },
{ name = 'snippy' },
{ name = 'calc' },
-- { name = 'cmp_matlab' },
{ name = 'cmp_git' },
}, {
{ name = 'buffer', keyword_length = 5, max_item_count = 10, priority = -5 },

View File

@@ -55,7 +55,6 @@ return {
cursorline = true,
debounce_delay = 15,
width = 35,
hide_root_folder = false,
side = "left",
preserve_window_proportions = false,
number = false,

View File

@@ -0,0 +1,31 @@
return {
"IlyasYOY/obs.nvim",
dependencies = {
"IlyasYOY/coredor.nvim",
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
},
--dev = true,
config = function()
local obs = require("obs")
obs.setup({
vault_home = "~/notes",
journal = {
template_name = "daily",
},
})
vim.keymap.set("n", "<leader>nn", "<cmd>ObsNvimFollowLink<cr>")
vim.keymap.set("n", "<leader>nr", "<cmd>ObsNvimRandomNote<cr>")
vim.keymap.set("n", "<leader>nN", "<cmd>ObsNvimNewNote<cr>")
vim.keymap.set("n", "<leader>nd", "<cmd>ObsNvimDailyNote<cr>")
vim.keymap.set("n", "<leader>nrn", "<cmd>ObsNvimRename<cr>")
vim.keymap.set("n", "<leader>nT", "<cmd>ObsNvimTemplate<cr>")
vim.keymap.set("n", "<leader>nM", "<cmd>ObsNvimMove<cr>")
vim.keymap.set("n", "<leader>nb", "<cmd>ObsNvimBacklinks<cr>")
vim.keymap.set("n", "<leader>nfj", "<cmd>ObsNvimFindInJournal<cr>")
vim.keymap.set("n", "<leader>nff", "<cmd>ObsNvimFindNote<cr>")
vim.keymap.set("n", "<leader>nfg", "<cmd>ObsNvimFindInNotes<cr>")
end,
}

View File

@@ -0,0 +1,4 @@
--"weirongxu/plantuml-previewer.vim"
return {
'aklt/plantuml-syntax'
}

View File

@@ -3,5 +3,6 @@ return {
dependencies= {
'nvim-lua/plenary.nvim'
},
config = true
config = true,
enabled = false
}

View File

@@ -0,0 +1,5 @@
return {
'nvimdev/hlsearch.nvim',
event = 'BufRead',
config = true
}

View File

@@ -2,8 +2,8 @@ return {
'nvim-telescope/telescope.nvim',
dependencies = {
'debugloop/telescope-undo.nvim',
'desdic/agrolens.nvim',
'molecule-man/telescope-menufacture'
'molecule-man/telescope-menufacture',
'xiyaowong/telescope-emoji.nvim',
},
--cmd = ":Telescope",
config = function()
@@ -14,11 +14,23 @@ return {
mappings = {
main_menu = { [{'i', 'n'}] = '<C-o>' }
}
},
emoji = {
action = function(emoji)
-- argument emoji is a table.
-- {name="", value="", cagegory="", description=""}
vim.fn.setreg("*", emoji.value)
print([[Press p or "*p to paste this emoji]] .. emoji.value)
-- insert emoji when picked
vim.api.nvim_put({ emoji.value }, 'c', false, true)
end,
}
}
}
require('telescope').load_extension('undo')
require('telescope').load_extension('agrolens')
require('telescope').load_extension('menufacture')
require("telescope").load_extension("emoji")
end
}

View File

@@ -0,0 +1,5 @@
return {
-- meta - v
'gsuuon/tshjkl.nvim',
setup = true
}

View File

@@ -0,0 +1,4 @@
return {
'ftilde/vim-ugdb',
cmd = 'UGDBBreakpoint'
}

View File

@@ -1,15 +0,0 @@
return {
"gelguy/wilder.nvim",
config = function()
local wilder = require('wilder')
wilder.setup({modes = {':', '/', '?'}})
wilder.set_option('renderer', wilder.popupmenu_renderer(
wilder.popupmenu_border_theme({
highlighter = wilder.basic_highlighter(),
min_width = '100%', -- minimum height of the popupmenu, can also be a number
min_height = '50%', -- to set a fixed height, set max_height to the same value
reverse = 0, -- if 1, shows the candidates from bottom to top
})
))
end
}