From 098457b5d45dca1e8f4c4729111868507218d989 Mon Sep 17 00:00:00 2001 From: Job Jobse Date: Fri, 4 Sep 2026 20:56:21 +0200 Subject: [PATCH] fix: collection of small fixes --- lua/terminal.lua | 1 + plugin/10_options.lua | 2 +- plugin/20_keymaps.lua | 1 + plugin/40_plugins.lua | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/terminal.lua b/lua/terminal.lua index 8728741..e00ee4c 100644 --- a/lua/terminal.lua +++ b/lua/terminal.lua @@ -3,6 +3,7 @@ local M = {} -- Open a command in a simple centered floating window function M.open_terminal_app(cmd) local buf = vim.api.nvim_create_buf(false, true) + vim.bo[buf].bufhidden = "wipe" local lines = vim.o.lines - vim.o.cmdheight - (vim.o.laststatus > 0 and 1 or 0) local w = math.floor(vim.o.columns * 0.95) diff --git a/plugin/10_options.lua b/plugin/10_options.lua index b9dcf39..c1c8dd4 100644 --- a/plugin/10_options.lua +++ b/plugin/10_options.lua @@ -17,7 +17,7 @@ vim.o.signcolumn = 'yes' -- Always show signcolumn (less flicker) vim.o.splitbelow = true -- Horizontal splits will be below vim.o.splitkeep = 'screen' -- Reduce scroll during window split vim.o.splitright = true -- Vertical splits will be to the right -vim.o.wrap = false -- Don't visually wrap lines (toggle with \w) +vim.o.wrap = false -- Don't visually wrap lines vim.o.winborder = 'rounded' -- Use border in floating windows vim.o.pumborder = 'rounded' -- Use border in popup menu vim.o.cmdheight = 0 -- Hide the command line when not in use diff --git a/plugin/20_keymaps.lua b/plugin/20_keymaps.lua index d90fdeb..8e7cc81 100644 --- a/plugin/20_keymaps.lua +++ b/plugin/20_keymaps.lua @@ -49,6 +49,7 @@ leader("ef", function() local file = vim.api.nvim_buf_get_name(0) MiniFiles.open(vim.uv.fs_stat(file) and file or nil) end, "File directory") +leader("ey", function() vim.fn.setreg("+", vim.api.nvim_buf_get_name(0)) end, "Yank absolute path") -- Find leader("fb", function() MiniPick.builtin.buffers() end, "Buffers") diff --git a/plugin/40_plugins.lua b/plugin/40_plugins.lua index 803398f..fa5708e 100644 --- a/plugin/40_plugins.lua +++ b/plugin/40_plugins.lua @@ -15,7 +15,7 @@ Config.now_if_args(function() local filetypes = { 'html', 'css', 'lua', 'go', 'php', 'blade', 'sql', 'javascript', 'typescript', 'typescriptreact', 'svelte', 'dockerfile', 'yaml', 'markdown', 'dart', - 'json', 'xml', 'toml', 'sh', 'bash', 'zsh', 'gitcommit', 'diff', 'regex', 'http' + 'json', 'xml', 'toml', 'sh', 'bash', 'zsh', 'just', 'gitcommit', 'diff', 'regex', 'http' } Config.autocmd('FileType', filetypes, function(ev)