this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[nvim] add: smart quite keymap

+11
+9
nvim/lua/core/keymaps.lua
··· 60 60 61 61 set('n', 'dd', smart_dd, { expr = true }) 62 62 63 + -- Smart closing 64 + local function smart_close() 65 + if not pcall(vim.cmd.close) then 66 + vim.cmd.bd() 67 + end 68 + end 69 + 70 + set('n', '<leader>q', smart_close) 71 + 63 72 set('n', '<C-e>', '<cmd>NvimTreeToggle<CR>') 64 73 65 74 -- Insert --
+2
nvim/lua/plugins/whichkey.lua
··· 91 91 ['4'] = { '<cmd>4ToggleTerm<CR>', '4' }, 92 92 f = { '<cmd>ToggleTerm direction=float<CR>', 'Float Terminal' }, 93 93 }, 94 + -- TODO: delete buffer if bufnr(0) is -1 or it is last window(except NvimTree, Trouble, ...) istead of closing window 95 + q = { 'Close Window' }, 94 96 t = { 95 97 name = 'Trouble', 96 98 w = { '<cmd>TroubleToggle workspace_diagnostics<CR>', 'Workspace Diagnostics' },