mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update 2025-10-15
This commit is contained in:
@@ -39,21 +39,12 @@ nmap("<C-Right>", "<cmd>vertical resize +2<cr>", "Resize window right")
|
||||
nmap("<A-k>", "<cmd>m .-2<cr>==", "Move line up")
|
||||
nmap("<A-j>", "<cmd>m .+1<cr>==", "Move line down")
|
||||
|
||||
-- nmap("<S-s>", ":%s/<C-r><C-w>/<C-r><C-w>/gI<Left><Left><Left>", "[S]ubstitute word")
|
||||
nmap("<S-s>", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], "[S]ubstitute word")
|
||||
|
||||
nmap("Q", "@qj", "Run macro")
|
||||
|
||||
nmap("<leader>oo", "<cmd>update<cr><cmd>source<cr>", "Source current file")
|
||||
|
||||
vim.keymap.set({ "n", "v", "x" }, "<leader>y", '"+y<cr>', { desc = "Yank to system clipboard" })
|
||||
vim.keymap.set("n", "<leader>Y", '"+yy<cr>', { desc = "Yank line to system clipboard" })
|
||||
|
||||
vim.keymap.set({ "n", "v", "x" }, "<leader>d", '"+d<cr>', { desc = "Cut to system clipboard" })
|
||||
|
||||
vim.keymap.set({ "n", "v", "x" }, "<leader>p", '"+p<cr>', { desc = "Paste from system clipboard" })
|
||||
vim.keymap.set("n", "<leader>P", '"+P<cr>', { desc = "Paste before cursor from system clipboard" })
|
||||
|
||||
vim.keymap.set("n", "<leader>cf", function()
|
||||
local file_path = vim.fn.expand("%:p")
|
||||
vim.cmd([[call setreg("+", "]] .. vim.fn.escape(file_path, '\\ "') .. '")')
|
||||
@@ -61,8 +52,8 @@ vim.keymap.set("n", "<leader>cf", function()
|
||||
end, { desc = "Copy file path to clipboard" })
|
||||
|
||||
xmap("Q", ":norm @q<CR>", "Run macro")
|
||||
|
||||
xmap("p", '"_dP')
|
||||
|
||||
vim.keymap.set(
|
||||
"c",
|
||||
"<C-j>",
|
||||
@@ -81,11 +72,6 @@ vmap("<", "<gv", "Left Indent")
|
||||
vmap("<A-k>", ":m '<-2<cr>gv=gv", "Move lines up")
|
||||
vmap("<A-j>", ":m '>+1<cr>gv=gv", "Move lines down")
|
||||
|
||||
-- tmap("t", "<C-h>", "<C-\\><C-N><C-w>h")
|
||||
-- tmap("t", "<C-j>", "<C-\\><C-N><C-w>j")
|
||||
-- tmap("t", "<C-k>", "<C-\\><C-N><C-w>k")
|
||||
-- tmap("t", "<C-l>", "<C-\\><C-N><C-w>l")
|
||||
|
||||
local function fzf_sesh_connect()
|
||||
-- build the fzf-tmux command exactly as in your zsh widget
|
||||
local fzf_cmd = [[
|
||||
|
||||
@@ -15,6 +15,7 @@ return {
|
||||
only_render_image_at_cursor_mode = "popup",
|
||||
},
|
||||
typst = {
|
||||
enabled = false,
|
||||
clear_in_insert_mode = true,
|
||||
only_render_image_at_cursor = true,
|
||||
only_render_image_at_cursor_mode = "popup",
|
||||
|
||||
@@ -91,7 +91,7 @@ return {
|
||||
trouble.prev({ mode = "diagnostics", skip_groups = true, jump = true })
|
||||
end, "Trouble Prev")
|
||||
vim.keymap.set(
|
||||
{ "n", "v" },
|
||||
{ "n", "v", "x" },
|
||||
"<leader>la",
|
||||
vim.lsp.buf.code_action,
|
||||
{ buffer = event.buf, desc = "LSP: Code [A]ction" }
|
||||
@@ -142,7 +142,6 @@ return {
|
||||
"gopls",
|
||||
"html",
|
||||
"hyprls",
|
||||
"jdtls",
|
||||
"jinja_lsp",
|
||||
"jsonls",
|
||||
"lua_ls",
|
||||
|
||||
@@ -49,7 +49,6 @@ return {
|
||||
},
|
||||
matcher = {
|
||||
frecency = true,
|
||||
sort_empty = true,
|
||||
cwd_bonus = true,
|
||||
},
|
||||
actions = require("trouble.sources.snacks").actions,
|
||||
|
||||
Reference in New Issue
Block a user