Compare commits

..

2 Commits

Author SHA1 Message Date
0dd270e9e6 fish: Add a dedicated alias file. 2026-07-04 14:40:02 -04:00
b714384b0e nvim: Initial config 2026-07-04 14:28:21 -04:00
8 changed files with 61 additions and 3 deletions

View File

@@ -1 +1,2 @@
neovim
tmux

View File

@@ -0,0 +1,4 @@
alias cp='cp -v'
alias vi=nvim
alias vim=nvim
alias tmx='tmux new-session -A -s'

View File

@@ -1,5 +1,8 @@
source /usr/share/cachyos-fish-config/cachyos-config.fish
set -gx EDITOR nvim
set -gx VISUAL nvim
# overwrite greeting
# potentially disabling fastfetch
#function fish_greeting

View File

@@ -1,3 +0,0 @@
function tmx --description 'Attach to a tmux session, creating it if needed'
tmux new-session -A -s $argv[1]
end

2
.config/nvim/init.lua Normal file
View File

@@ -0,0 +1,2 @@
require("config.options")
require("config.keymaps")

View File

@@ -0,0 +1,10 @@
local map = vim.keymap.set
map("n", "<C-h>", "<C-w>h", { desc = "Move focus left" })
map("n", "<C-j>", "<C-w>j", { desc = "Move focus down" })
map("n", "<C-k>", "<C-w>k", { desc = "Move focus up" })
map("n", "<C-l>", "<C-w>l", { desc = "Move focus right" })
map("n", "<Esc>", "<cmd>nohlsearch<CR>", { desc = "Clear search highlight" })
map("n", "<leader>e", "<cmd>Lexplore<CR>", { desc = "Toggle file explorer" })

View File

@@ -0,0 +1,38 @@
vim.g.mapleader = " "
local opt = vim.opt
-- Clipboard: use neovim's built-in OSC 52 provider, no external binary needed.
vim.g.clipboard = "osc52"
opt.clipboard = "unnamedplus"
opt.number = true
opt.relativenumber = true
opt.shiftwidth = 2
opt.tabstop = 2
opt.expandtab = true
opt.mouse = "a"
-- Neovim's built-in default colors paint their own dark/light background even
-- without a colorscheme; clear it so the terminal's own background shows through.
for _, group in ipairs({ "Normal", "NormalNC", "NormalFloat", "SignColumn" }) do
vim.api.nvim_set_hl(0, group, { bg = "none" })
end
opt.undofile = true
opt.ignorecase = true
opt.smartcase = true
opt.splitright = true
opt.splitbelow = true
opt.wrap = false
opt.scrolloff = 8
opt.cursorline = true
vim.g.netrw_banner = 0
vim.g.netrw_liststyle = 3

View File

@@ -32,3 +32,6 @@ Comma-separated keys are pressed in sequence, not together.
| `Ctrl` + `Space`, `s` | tmux | Interactive session list |
| `Ctrl` + `Space`, `(` / `)` | tmux | Switch to previous / next session |
| `Ctrl` + `Space`, `r` | tmux | Reload `tmux.conf` |
| `Ctrl` + `h` / `j` / `k` / `l` | neovim | Move focus between splits left / down / up / right |
| `Esc` | neovim | Clear search highlight |
| `Space`, `e` | neovim | Toggle file explorer (netrw) |