From c109c16c9bd864628a86020ed071d143fc7b01cb Mon Sep 17 00:00:00 2001 From: asep komarudin Date: Thu, 15 Feb 2024 07:26:34 +0700 Subject: [PATCH] fix: to uppercase local variable _CLOSE_BUFFER --- lua/user/keymaps.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index b35a337..3897db3 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -10,7 +10,7 @@ function _LIVE_SERVER() live_server:toggle() end -function _close_buffer() +function _CLOSE_BUFFER() local buf = vim.api.nvim_get_current_buf() -- delete current buffer require("bufdelete").bufdelete(buf, true) @@ -125,7 +125,7 @@ keymap("x", "", ":'<,'>t'>", opts) -- keymap("n", "", "RunFile", opts) -- close current buffer -keymap("n", "", "lua _close_buffer()", opts) +keymap("n", "", "lua _CLOSE_BUFFER()", opts) -- Visual Block -- -- Move text up and down