From a404d3af2c7f6bf8b9b8319ae268092f2ac3e31d Mon Sep 17 00:00:00 2001 From: aleidk Date: Fri, 1 Aug 2025 16:09:17 -0400 Subject: [PATCH] add zoom toggle to nvim --- Configs/mise/.config/mise/config.toml | 1 + .../nvim/.config/nvim/lua/aleidk/options.lua | 36 +++++++++---------- .../.config/nvim/lua/aleidk/plugins/mini.lua | 6 ++++ 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/Configs/mise/.config/mise/config.toml b/Configs/mise/.config/mise/config.toml index 72c5554..b129270 100644 --- a/Configs/mise/.config/mise/config.toml +++ b/Configs/mise/.config/mise/config.toml @@ -43,6 +43,7 @@ sops = "latest" usage = "latest" yazi = "latest" zoxide = "latest" +watchexec = "latest" [settings] lockfile = true diff --git a/Configs/nvim/.config/nvim/lua/aleidk/options.lua b/Configs/nvim/.config/nvim/lua/aleidk/options.lua index 2bd7f34..ad74d7f 100644 --- a/Configs/nvim/.config/nvim/lua/aleidk/options.lua +++ b/Configs/nvim/.config/nvim/lua/aleidk/options.lua @@ -27,28 +27,28 @@ opt.expandtab = true -- Use spaces instead of tabs opt.formatoptions = "jcroqlnt" -- tcqj opt.grepformat = "%f:%l:%c:%m" opt.grepprg = "rg --vimgrep" -opt.ignorecase = true -- Ignore case -opt.inccommand = 'split' -- Preview substitutions live, as you type! -opt.mouse = "a" -- Enable mouse mode +opt.ignorecase = true -- Ignore case +opt.inccommand = 'split' -- Preview substitutions live, as you type! +opt.mouse = "a" -- Enable mouse mode opt.nrformats = 'blank,bin,hex' opt.number = true -- Print line number -opt.pumblend = 10 -- Popup blend -opt.pumheight = 10 -- Maximum number of entries in a popup -opt.relativenumber = true -- Relative line numbers -opt.scrolloff = 15 -- Lines of context +opt.pumblend = 10 -- Popup blend +opt.pumheight = 10 -- Maximum number of entries in a popup +-- opt.relativenumber = true -- Relative line numbers +opt.scrolloff = 15 -- Lines of context opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" } -opt.shiftround = true -- Round indent -opt.shiftwidth = 2 -- Size of an indent -opt.showmode = false -- Don't show mode since we have a statusline -opt.sidescrolloff = 8 -- Columns of context -opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time -opt.smartcase = true -- Don't ignore case with capitals -opt.smartindent = true -- Insert indents automatically +opt.shiftround = true -- Round indent +opt.shiftwidth = 2 -- Size of an indent +opt.showmode = false -- Don't show mode since we have a statusline +opt.sidescrolloff = 8 -- Columns of context +opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time +opt.smartcase = true -- Don't ignore case with capitals +opt.smartindent = true -- Insert indents automatically opt.spelllang = { "en" } -opt.splitbelow = true -- Put new windows below current -opt.splitright = true -- Put new windows right of current -opt.tabstop = 2 -- Number of spaces tabs count for -opt.termguicolors = true -- True color support +opt.splitbelow = true -- Put new windows below current +opt.splitright = true -- Put new windows right of current +opt.tabstop = 2 -- Number of spaces tabs count for +opt.termguicolors = true -- True color support opt.undofile = true opt.undolevels = 10000 opt.updatetime = 200 -- Save swap file and trigger CursorHold diff --git a/Configs/nvim/.config/nvim/lua/aleidk/plugins/mini.lua b/Configs/nvim/.config/nvim/lua/aleidk/plugins/mini.lua index 9c3b80f..ca46956 100644 --- a/Configs/nvim/.config/nvim/lua/aleidk/plugins/mini.lua +++ b/Configs/nvim/.config/nvim/lua/aleidk/plugins/mini.lua @@ -238,5 +238,11 @@ return { vim.api.nvim_create_user_command("SessionDelete", function() require('mini.sessions').select('delete') end, {}) + + + vim.keymap.set('n', 'uz', function() + require('mini.misc').zoom() + end, + { desc = 'Toggle zoom', silent = true }) end }