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
b2caa79224
commit
fd4ae0720b
@ -1,8 +1,8 @@
|
||||
return {
|
||||
"LudoPinelli/comment-box.nvim",
|
||||
config = function()
|
||||
vim.keymap.set({ "n", "v" }, "<leader>cb", "<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" }, "<leader>cc", "<cmd>CBline<CR>", { desc = "[C]omment Simple [L]ine" })
|
||||
vim.keymap.set({ "n", "v" }, "gcb", "<cmd>CBccbox<CR>", { desc = "[C]omment [B]lock" })
|
||||
vim.keymap.set({ "n", "v" }, "gcl", "<cmd>CBccline<CR>", { desc = "[C]omment [L]ine" })
|
||||
vim.keymap.set({ "n", "v" }, "gc-", "<cmd>CBline<CR>", { desc = "[C]omment Simple [L]ine" })
|
||||
end,
|
||||
}
|
||||
|
3
.config/nvim/lua/goodhumored/plugins/conflict-marker.lua
Normal file
3
.config/nvim/lua/goodhumored/plugins/conflict-marker.lua
Normal file
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"rhysd/conflict-marker.vim",
|
||||
}
|
5
.config/nvim/lua/goodhumored/plugins/git-conflict.lua
Normal file
5
.config/nvim/lua/goodhumored/plugins/git-conflict.lua
Normal file
@ -0,0 +1,5 @@
|
||||
-- ╭─────────────────────────────────────────────────────────╮
|
||||
-- │ git-conflict │
|
||||
-- │ A plugin to visualise and resolve conflicts in neovim │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
return { "akinsho/git-conflict.nvim", version = "*", config = true }
|
26
.config/nvim/lua/goodhumored/plugins/spider.lua
Normal file
26
.config/nvim/lua/goodhumored/plugins/spider.lua
Normal 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" },
|
||||
},
|
||||
},
|
||||
}
|
23
.config/nvim/lua/goodhumored/plugins/vimade-window-fade.lua
Normal file
23
.config/nvim/lua/goodhumored/plugins/vimade-window-fade.lua
Normal 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,
|
||||
}
|
32
.config/nvim/lua/goodhumored/plugins/visual-multi.lua
Normal file
32
.config/nvim/lua/goodhumored/plugins/visual-multi.lua
Normal 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",
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user