From 22981a59f639f882c02992458033ba9f4cf8cd9d Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 27 Jun 2026 19:09:03 +0200 Subject: [PATCH] improving sets --- nvim/.config/nvim/lua/romanzy/remap.lua | 2 +- nvim/.config/nvim/lua/romanzy/set.lua | 56 +++++++++++-------------- 2 files changed, 26 insertions(+), 32 deletions(-) diff --git a/nvim/.config/nvim/lua/romanzy/remap.lua b/nvim/.config/nvim/lua/romanzy/remap.lua index ed435b3..b42cc2e 100644 --- a/nvim/.config/nvim/lua/romanzy/remap.lua +++ b/nvim/.config/nvim/lua/romanzy/remap.lua @@ -41,7 +41,7 @@ map("n", "bp", "bprevious", { desc = "prev buffer" }) map("n", "bn", "bnext", { desc = "next buffer" }) map("n", "bd", "bdelete", { desc = "delete buffer" }) -map("t", "", "", { desc = "exit terminal" }) +map("t", "\\", "", { desc = "exit terminal" }) map("n", "", "h", { desc = "window left" }) map("n", "", "j", { desc = "window down" }) diff --git a/nvim/.config/nvim/lua/romanzy/set.lua b/nvim/.config/nvim/lua/romanzy/set.lua index 98b36df..b95a915 100644 --- a/nvim/.config/nvim/lua/romanzy/set.lua +++ b/nvim/.config/nvim/lua/romanzy/set.lua @@ -1,42 +1,36 @@ -vim.g.mapleader = " " -vim.g.maplocalleader = " " +local g = vim.g +local o = vim.opt -vim.opt.nu = true -vim.opt.relativenumber = true --- disable normie mouse stuff -vim.opt.mouse = "" -vim.opt.tabstop = 4 -vim.opt.softtabstop = 4 -vim.opt.shiftwidth = 4 -vim.opt.expandtab = false +g.mapleader = " " +g.maplocalleader = " " -vim.opt.smartindent = true - -vim.opt.wrap = false -- no line wrapping... - -vim.opt.incsearch = true - -vim.opt.termguicolors = true - -vim.opt.scrolloff = 8 -vim.opt.signcolumn = "yes" - -vim.opt.updatetime = 50 - -vim.opt.colorcolumn = "80" - -vim.opt.spelllang = { 'en_us' } - -vim.opt.listchars = { +o.nu = true +o.number = true +o.relativenumber = true +o.swapfile = false +o.mouse = "" +o.tabstop = 4 +o.softtabstop = 4 +o.shiftwidth = 4 +o.expandtab = false +o.smartindent = true +o.wrap = false +o.incsearch = true +o.termguicolors = true +o.scrolloff = 8 +o.signcolumn = "yes" +o.updatetime = 50 +o.colorcolumn = "80" +o.spelllang = { 'en_us' } +o.listchars = { tab = "» ", trail = "·", extends = "⟩", precedes = "⟨", nbsp = "␣" } +o.list = true +o.shell = "bash" -vim.opt.list = true -- only show the invisible characters inside the code editing buffers vim.cmd([[autocmd BufWinEnter * if &buftype != '' | setlocal nolist | endif]]) - -vim.opt.shell = "bash"