diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-11-26 09:05:34 -0500 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-11-26 09:05:34 -0500 |
| commit | 5e6bb8c3fa19ae2c8bd42fcf3c052569381cc395 (patch) | |
| tree | ffc4f11385622743a26076142c4f904cf5a8aa26 | |
| parent | Remove custom python/java venv/home settings (diff) | |
| download | dotfiles-5e6bb8c3fa19ae2c8bd42fcf3c052569381cc395.zip | |
Remove delete buffer command
| -rw-r--r-- | nvim/.config/nvim/lua/eugenetriguba/keymaps.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/nvim/.config/nvim/lua/eugenetriguba/keymaps.lua b/nvim/.config/nvim/lua/eugenetriguba/keymaps.lua index e952e0f..26f16f7 100644 --- a/nvim/.config/nvim/lua/eugenetriguba/keymaps.lua +++ b/nvim/.config/nvim/lua/eugenetriguba/keymaps.lua @@ -22,13 +22,3 @@ map('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' }) map('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' }) map('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' }) -local function confirm_and_delete_buffer() - local confirm = vim.fn.confirm('Delete buffer and file?', '&Y\n&N', 2) - - if confirm == 1 then - os.remove(vim.fn.expand '%') - vim.api.nvim_buf_delete(0, { force = true }) - end -end - -map('n', '<leader>df', confirm_and_delete_buffer) |