Update tmux keybindings and a few nvim configs

This commit is contained in:
2025-08-26 12:04:22 -05:00
parent 1c8e6c2165
commit 624a06cc36
5 changed files with 18 additions and 13 deletions

View File

@@ -16,11 +16,12 @@ vim.keymap.set("n", "=ap", "ma=ap'a")
-- shortcuts for deleting into the void register -- shortcuts for deleting into the void register
vim.keymap.set({ "n", "v" }, "<leader>d", "\"_d") vim.keymap.set({ "n", "v" }, "<leader>d", "\"_d")
vim.keymap.set("x", "<leader>p", [["_dP]]) -- replace selected text, keep main register vim.keymap.set("x", "<leader>P", [["_dP]]) -- replace selected text, keep main register
-- shortcuts for using + register (system clipboard) -- shortcuts for using + register (system clipboard)
vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]]) vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]])
vim.keymap.set("n", "<leader>Y", [["+Y]]) vim.keymap.set("n", "<leader>Y", [["+Y]])
vim.keymap.set("n", "<leader>p", [["+p]])
-- search-and-replace shortcuts -- search-and-replace shortcuts
vim.keymap.set("n", "<leader>rw", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]]) vim.keymap.set("n", "<leader>rw", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])

View File

@@ -35,6 +35,7 @@ return {
{ {
"folke/tokyonight.nvim", "folke/tokyonight.nvim",
lazy = false, lazy = false,
priority = 1000,
opts = { opts = {
style = "night", -- "night", "storm", "moon", "day" style = "night", -- "night", "storm", "moon", "day"
styles = { styles = {
@@ -43,6 +44,7 @@ return {
on_colors = function(colors) on_colors = function(colors)
colors.hint = colors.orange colors.hint = colors.orange
colors.error = "#ff0000" colors.error = "#ff0000"
colors.fg_gutter = "#9098B8"
end end
}, },
} }

View File

@@ -8,7 +8,7 @@ return {
require("nvim-treesitter.configs").setup({ require("nvim-treesitter.configs").setup({
ensure_installed = { ensure_installed = {
"vimdoc", "bash", "lua", "c", "cpp", "go", "python", "ruby", "vimdoc", "bash", "lua", "c", "cpp", "go", "python", "ruby",
"html", "css", "json", "sql", "javascript", "jsdoc", "html", "css", "javascript", "jsdoc", "sql", "json", "yaml",
"markdown", "markdown_inline", "markdown", "markdown_inline",
-- "odin", "zig", "ocaml", "java", "typescript", -- "odin", "zig", "ocaml", "java", "typescript",
}, },

View File

@@ -14,17 +14,18 @@ vim.opt.signcolumn = "yes" -- "auto", "yes", "no", "number"
vim.opt.laststatus = 2 vim.opt.laststatus = 2
vim.opt.splitright = true vim.opt.splitright = true
vim.opt.splitbelow = true vim.opt.splitbelow = true
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.cursorline = true
vim.opt.cursorlineopt = "both"
vim.opt.smartindent = true
vim.opt.wrap = true
vim.opt.errorbells = false vim.opt.errorbells = false
vim.opt.visualbell = false vim.opt.visualbell = false
vim.opt.updatetime = 1000 vim.opt.updatetime = 1000
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.smartindent = true
vim.opt.wrap = true
vim.opt.tabstop = 4 vim.opt.tabstop = 4
vim.opt.softtabstop = 4 vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4 vim.opt.shiftwidth = 4

View File

@@ -2,8 +2,8 @@
set -s escape-time 0 set -s escape-time 0
unbind C-b unbind C-b
set-option -g prefix C-a set-option -g prefix C-Space
bind-key C-a send-prefix bind-key C-Space send-prefix
set -g status-style 'bg=#111111 fg=#22cc00' set -g status-style 'bg=#111111 fg=#22cc00'
set -g base-index 0 set -g base-index 0
@@ -26,12 +26,13 @@ bind-key Q rename-session zzzz-temp-kill\; switch-client -p\; kill-session -t zz
bind-key W kill-session bind-key W kill-session
# find and switching for sessions, include using tmux-sessionizer # find and switching for sessions, include using tmux-sessionizer
unbind-key f unbind-key f; unbind-key C-f; unbind-key C-s
unbind-key C-h; unbind-key C-l; unbind-key C-o; unbind-key C-n; unbind-key C-p
bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer" bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer"
bind-key C-s run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer existing" bind-key C-s run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer existing"
bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer hub" bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer hub"
bind-key C-l switch-client -l bind-key C-l switch-client -l
bind -r C-o last-window bind-key C-o last-window
bind-key C-n next-window bind-key -r C-n next-window
bind-key C-p previous-window bind-key -r C-p previous-window