mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
fix: to uppercase local variable _CLOSE_BUFFER
This commit is contained in:
parent
17c1335cd6
commit
c109c16c9b
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ function _LIVE_SERVER()
|
||||||
live_server:toggle()
|
live_server:toggle()
|
||||||
end
|
end
|
||||||
|
|
||||||
function _close_buffer()
|
function _CLOSE_BUFFER()
|
||||||
local buf = vim.api.nvim_get_current_buf()
|
local buf = vim.api.nvim_get_current_buf()
|
||||||
-- delete current buffer
|
-- delete current buffer
|
||||||
require("bufdelete").bufdelete(buf, true)
|
require("bufdelete").bufdelete(buf, true)
|
||||||
|
@ -125,7 +125,7 @@ keymap("x", "<S-Down>", ":'<,'>t'><cr>", opts)
|
||||||
-- keymap("n", "<C-r>", "<cmd>RunFile<CR>", opts)
|
-- keymap("n", "<C-r>", "<cmd>RunFile<CR>", opts)
|
||||||
|
|
||||||
-- close current buffer
|
-- close current buffer
|
||||||
keymap("n", "<S-t>", "<cmd>lua _close_buffer()<cr>", opts)
|
keymap("n", "<S-t>", "<cmd>lua _CLOSE_BUFFER()<cr>", opts)
|
||||||
|
|
||||||
-- Visual Block --
|
-- Visual Block --
|
||||||
-- Move text up and down
|
-- Move text up and down
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue