aboutsummaryrefslogtreecommitdiff
path: root/lua/config/dashboard-nvim.lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-08-07 00:24:37 +0800
committerjdhao <jdhao@hotmail.com>2022-08-07 00:24:37 +0800
commit54908dfe9f566feb06d4566b74ce8a5978be0566 (patch)
tree034c05f885f437b3f062212741b7dff1e2683d94 /lua/config/dashboard-nvim.lua
parent2e5f5c59915e032b93edfe12959abea151ef37c6 (diff)
fix: dashboard map is not local
Diffstat (limited to 'lua/config/dashboard-nvim.lua')
-rw-r--r--lua/config/dashboard-nvim.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/config/dashboard-nvim.lua b/lua/config/dashboard-nvim.lua
index 45056c0..5dff685 100644
--- a/lua/config/dashboard-nvim.lua
+++ b/lua/config/dashboard-nvim.lua
@@ -59,7 +59,7 @@ dashboard.custom_center = {
vim.cmd([[
augroup dashboard_enter
au!
- autocmd FileType dashboard nnoremap q :qa<CR>
- autocmd FileType dashboard nnoremap e :enew<CR>
+ autocmd FileType dashboard nnoremap <buffer> q :qa<CR>
+ autocmd FileType dashboard nnoremap <buffer> e :enew<CR>
augroup END
]])