diff options
author | Dominik Marcinowski <[email protected]> | 2021-04-02 18:38:33 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-02 12:38:33 -0400 |
commit | 4896bbc050ab45d8d53ca5d055d92ee6b1d56b8c (patch) | |
tree | 6c62a59fbdba89090b2ffcc13ebf77267235476f | |
parent | 2ab4627adef3175dc3870d242598abce3b45a4f2 (diff) |
Add bindings to quickly quit certain "windows" (#212)
-rw-r--r-- | lua/nv-autocommands/init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/nv-autocommands/init.lua b/lua/nv-autocommands/init.lua index 16962f45..4663140c 100644 --- a/lua/nv-autocommands/init.lua +++ b/lua/nv-autocommands/init.lua @@ -44,5 +44,10 @@ utils.define_augroups({ {'BufWinEnter', '.sol', 'setlocal filetype=solidity'}, {'BufRead', '*.sol', 'setlocal filetype=solidity'}, {'BufNewFile', '*.sol', 'setlocal filetype=solidity'} }, + _buffer_bindings = { + {'FileType', 'dashboard', 'nnoremap <silent> <buffer> q :q<CR>'}, + {'FileType', 'lspinfo', 'nnoremap <silent> <buffer> q :q<CR>'}, + {'FileType', 'floaterm', 'nnoremap <silent> <buffer> q :q<CR>'} + }, _auto_formatters = auto_formatters }) |