From 2f993eb2706fdea88898a39e9e24730cdd2103c6 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 2 Jul 2024 14:01:21 +0800 Subject: [PATCH] nvim: make neovide settings match alacritty closer --- src/.config/nvim/lua/frontend.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/.config/nvim/lua/frontend.lua b/src/.config/nvim/lua/frontend.lua index d6b6c11..40198c6 100644 --- a/src/.config/nvim/lua/frontend.lua +++ b/src/.config/nvim/lua/frontend.lua @@ -37,10 +37,12 @@ if vim.g.neovide then ) -- no terminal, no Ctrl-Shift-V paste - keymap("", '"+pa', { mode = { "n", "i" } }) + keymap("", '"+pa', { mode = { "n", "i", "v" } }) + -- this bind seems to not show the pasted text until the screen is updated, but it works i guess + keymap("", '+', { mode = { "c" } }) -- "new-term" in working directory keymap("", function() - vim.system({ 'sh', '-c', 'alacritty msg create-window || alacritty' }, { detach = true }) - end, { mode = { "n", "i", "v", "t" } }) + vim.system({ 'sh', '-c', 'alacritty msg create-window --working-directory "$(pwd)" || alacritty' }, { detach = true }) + end, { mode = { "n", "i", "v", "t", "c" } }) end