diff options
author | Anchal Singh <[email protected]> | 2023-01-26 20:50:07 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-26 16:20:07 +0100 |
commit | 0c94c6a5bd3847c7504090481b0a61fbab6b6309 (patch) | |
tree | 36e21425c40a316235980fa759b6806faf99cf6c | |
parent | fab66b01f6e1819398a036eede3586dde9f63ac5 (diff) |
feat(alpha): add quit button to dashboard (#3767)
* feat(alpha): adding option to turn off ESC keybind to exit
chore: formatting
* Update lua/lvim/core/alpha.lua
Co-authored-by: pr-313 <[email protected]>
* Update lua/lvim/core/autocmds.lua
Co-authored-by: pr-313 <[email protected]>
* Apply suggestions from code review
* remove <esc> keybind
Co-authored-by: Anchal Singh <[email protected]>
Co-authored-by: pr-313 <[email protected]>
Co-authored-by: LostNeophyte <[email protected]>
-rw-r--r-- | lua/lvim/core/alpha/dashboard.lua | 1 | ||||
-rw-r--r-- | lua/lvim/core/autocmds.lua | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lua/lvim/core/alpha/dashboard.lua b/lua/lvim/core/alpha/dashboard.lua index 65195c7c..6a368924 100644 --- a/lua/lvim/core/alpha/dashboard.lua +++ b/lua/lvim/core/alpha/dashboard.lua @@ -135,6 +135,7 @@ function M.get_sections() lvim.icons.ui.Gear .. " Configuration", "<CMD>edit " .. require("lvim.config"):get_user_config_path() .. " <CR>", }, + { "q", lvim.icons.ui.Close .. " Quit", "<CMD>quit<CR>" }, }, } return { diff --git a/lua/lvim/core/autocmds.lua b/lua/lvim/core/autocmds.lua index 499f830e..f8da317e 100644 --- a/lua/lvim/core/autocmds.lua +++ b/lua/lvim/core/autocmds.lua @@ -81,8 +81,6 @@ function M.load_defaults() pattern = "alpha", callback = function() vim.cmd [[ - nnoremap <silent> <buffer> q :qa<CR> - nnoremap <silent> <buffer> <esc> :qa<CR> set nobuflisted ]] end, |