nvim plugins

- comment blocks keymaps updated to gc+...
- nvim spider plugin
- git config plugin
- conflict marker plugin
- tint plugin
- visual multi plugin
This commit is contained in:
parent 3e1bf9d4de
commit d2091eea7c
6 changed files with 92 additions and 3 deletions

View File

@ -1,8 +1,8 @@
return { return {
"LudoPinelli/comment-box.nvim", "LudoPinelli/comment-box.nvim",
config = function() config = function()
vim.keymap.set({ "n", "v" }, "<leader>cb", "<cmd>CBccbox<CR>", { desc = "[C]omment [B]lock" }) vim.keymap.set({ "n", "v" }, "gcb", "<cmd>CBccbox<CR>", { desc = "[C]omment [B]lock" })
vim.keymap.set({ "n", "v" }, "<leader>cl", "<cmd>CBccline<CR>", { desc = "[C]omment [L]ine" }) vim.keymap.set({ "n", "v" }, "gcl", "<cmd>CBccline<CR>", { desc = "[C]omment [L]ine" })
vim.keymap.set({ "n", "v" }, "<leader>cc", "<cmd>CBline<CR>", { desc = "[C]omment Simple [L]ine" }) vim.keymap.set({ "n", "v" }, "gc-", "<cmd>CBline<CR>", { desc = "[C]omment Simple [L]ine" })
end, end,
} }

View File

@ -0,0 +1,3 @@
return {
"rhysd/conflict-marker.vim",
}

View File

@ -0,0 +1,5 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ git-conflict │
-- │ A plugin to visualise and resolve conflicts in neovim │
-- ╰─────────────────────────────────────────────────────────╯
return { "akinsho/git-conflict.nvim", version = "*", config = true }

View File

@ -0,0 +1,26 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ chrisgrieser/nvim-spider │
-- │ ------------ │
-- │ Replaces word jump mappings to improve horizontal │
-- │ navigation │
-- ╰─────────────────────────────────────────────────────────╯
return {
"chrisgrieser/nvim-spider",
keys = {
{
"e",
"<cmd>lua require('spider').motion('e')<CR>",
mode = { "n", "o", "x" },
},
{
"w",
"<cmd>lua require('spider').motion('w')<CR>",
mode = { "n", "o", "x" },
},
{
"b",
"<cmd>lua require('spider').motion('b')<CR>",
mode = { "n", "o", "x" },
},
},
}

View File

@ -0,0 +1,23 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Vimade │
-- │ Fades unfocused windows │
-- ╰─────────────────────────────────────────────────────────╯
return {
"levouh/tint.nvim",
config = function()
require("tint").setup({
tint = -40, -- Darken colors, use a positive value to brighten
saturation = 1, -- Saturation to preserve
transforms = require("tint").transforms.SATURATE_TINT, -- Showing default behavior, but value here can be predefined set of transforms
highlight_ignore_patterns = { "WinSeparator", "Status.*" }, -- Highlight group patterns to ignore, see `string.find`
window_ignore_function = function(winid)
local bufid = vim.api.nvim_win_get_buf(winid)
local buftype = vim.api.nvim_buf_get_option(bufid, "buftype")
local floating = vim.api.nvim_win_get_config(winid).relative ~= ""
-- Do not tint `terminal` or floating windows, tint everything else
return buftype == "terminal" or floating
end,
})
end,
}

View File

@ -0,0 +1,32 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Vvim visual multi │
-- │ multi cursor vscode like │
-- │ https://github.com/mg979/vim-visual-multi │
-- ╰─────────────────────────────────────────────────────────╯
-- Basic usage:
--
-- select words with Ctrl-N (like Ctrl-d in Sublime Text/VS Code)
-- create cursors vertically with Ctrl-Down/Ctrl-Up
-- select one character at a time with Shift-Arrows
-- press n/N to get next/previous occurrence
-- press [/] to select next/previous cursor
-- press q to skip current and get next occurrence
-- press Q to remove current cursor/selection
-- start insert mode with i,a,I,A
--
-- Two main modes:
--
-- in cursor mode commands work as they would in normal mode
-- in extend mode commands work as they would in visual mode
-- press Tab to switch between «cursor» and «extend» mode
--
-- Most vim commands work as expected (motions, r to replace characters, ~ to change case, etc). Additionally you can:
--
-- run macros/ex/normal commands at cursors
-- align cursors
-- transpose selections
-- add patterns with regex, or from visual mode
--
return {
"mg979/vim-visual-multi",
}