Add keymaps for terminal and small changes

This commit is contained in:
2026-02-17 21:20:06 +01:00
parent 7b4ca98038
commit 5868fada42
2 changed files with 40 additions and 31 deletions

View File

@ -1,32 +1,31 @@
local opt = vim.opt
-- Line numbers
opt.number = true
opt.relativenumber = true
vim.opt.number = true
vim.opt.relativenumber = true
-- Tabs & indentation
opt.tabstop = 4 -- number of spaces a tab counts for
opt.shiftwidth = 4 -- spaces for each indent
opt.expandtab = true -- convert tabs to spaces
opt.smartindent = true
vim.opt.tabstop = 4 -- number of spaces a tab counts for
vim.opt.shiftwidth = 4 -- spaces for each indent
vim.opt.expandtab = true -- convert tabs to spaces
vim.opt.smartindent = true
-- Searching
opt.ignorecase = true -- case-insensitive search...
opt.smartcase = true -- ...unless you use capitals
opt.hlsearch = true
opt.incsearch = true
vim.opt.ignorecase = true -- case-insensitive search...
vim.opt.smartcase = true -- ...unless you use capitals
vim.opt.hlsearch = true
vim.opt.incsearch = true
-- UI / UX
opt.termguicolors = true
opt.cursorline = true
opt.signcolumn = "yes" -- avoid text shifting
opt.wrap = false -- no line wrapping
vim.opt.termguicolors = true
vim.opt.cursorline = true
vim.opt.signcolumn = "yes" -- avoid text shifting
vim.opt.wrap = false -- no line wrapping
-- Behavior
opt.scrolloff = 8 -- keep lines above/below cursor
opt.sidescrolloff = 8
opt.updatetime = 300 -- faster diagnostics
opt.timeoutlen = 500 -- faster key sequences
vim.opt.scrolloff = 8 -- keep lines above/below cursor
vim.opt.sidescrolloff = 8
vim.opt.updatetime = 300 -- faster diagnostics
vim.opt.timeoutlen = 500 -- faster key sequences
-- Clipboard (use system clipboard)
opt.clipboard = "unnamedplus"
vim.opt.clipboard = "unnamedplus"