mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-09 17:04:36 +02:00
feat(keymaps): added more keymaps
This commit is contained in:
parent
485d4f0232
commit
47fa58c2ed
4 changed files with 51 additions and 10 deletions
|
@ -73,4 +73,16 @@ function M.float_term(cmd, opts)
|
|||
require("lazy.util").open_cmd(cmd, opts)
|
||||
end
|
||||
|
||||
---@param silent boolean?
|
||||
function M.toggle(option, silent)
|
||||
vim.opt_local[option] = not vim.opt_local[option]:get()
|
||||
if not silent then
|
||||
vim.notify(
|
||||
(vim.opt_local[option]:get() and "Enabled" or "Disabled") .. option,
|
||||
vim.log.levels.INFO,
|
||||
{ title = "Option" }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue