vim.g.mapleader = " " vim.g.maplocalleader = " " vim.o.expandtab = true vim.o.shiftwidth = 2 vim.o.tabstop = 2 vim.o.softtabstop = 2 vim.o.number = true -- vim.o.relativenumber = true vim.o.mouse = "a" vim.o.showmode = false vim.opt.shortmess:append("Wc") vim.schedule(function() vim.o.clipboard = "unnamedplus" end) vim.o.breakindent = true vim.o.undofile = true vim.o.ignorecase = true vim.o.smartcase = true vim.o.signcolumn = "yes" vim.o.updatetime = 250 vim.o.timeoutlen = 300 vim.o.splitright = true vim.o.splitbelow = true vim.o.list = true vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" } vim.o.inccommand = "split" vim.o.cursorline = true vim.o.scrolloff = 10 vim.o.confirm = true vim.keymap.set("n", "", "nohlsearch") vim.keymap.set("n", "q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" }) vim.keymap.set("t", "", "", { desc = "Exit terminal mode" }) vim.keymap.set("n", "", "", { desc = "Move focus to the left window" }) vim.keymap.set("n", "", "", { desc = "Move focus to the right window" }) vim.keymap.set("n", "", "", { desc = "Move focus to the lower window" }) vim.keymap.set("n", "", "", { desc = "Move focus to the upper window" }) vim.keymap.set("n", "j", "gj", { silent = true }) vim.keymap.set("n", "k", "gk", { silent = true }) -- vim.keymap.set("n", "", "H", { desc = "Move window to the left" }) -- vim.keymap.set("n", "", "L", { desc = "Move window to the right" }) -- vim.keymap.set("n", "", "J", { desc = "Move window to the lower" }) -- vim.keymap.set("n", "", "K", { desc = "Move window to the upper" }) vim.api.nvim_create_autocmd("TextYankPost", { desc = "Highlight when yanking (copying) text", group = vim.api.nvim_create_augroup("lux-highlight-yank", { clear = true }), callback = function() vim.hl.on_yank() end, })