Browse Source

nixpkgs/neovim: use mini.bufremove

Thomas Dy 3 years ago
parent
commit
cbaf872567
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .config/nixpkgs/neovim/init.lua

+ 4 - 0
.config/nixpkgs/neovim/init.lua

@@ -23,6 +23,8 @@ require('mini.statusline').setup({
   },
 })
 
+require('mini.bufremove').setup()
+
 require('nvim-treesitter.configs').setup {
   highlight = {
     enable = true,
@@ -46,6 +48,8 @@ vim.api.nvim_set_keymap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', op
 vim.api.nvim_set_keymap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
 vim.api.nvim_set_keymap('n', '<space>q', '<cmd>lua vim.diagnostic.setqflist({ severity = { min = vim.diagnostic.severity.WARN } })<CR>', opts)
 
+vim.api.nvim_set_keymap('n', '<Leader>q', '<cmd>lua MiniBufremove.delete()<CR>', opts)
+
 -- Allow pressing enter to autocomplete
 vim.api.nvim_set_keymap('i', '<CR>', 'pumvisible() ? "\\<C-y>" : "\\<CR>"', { noremap = true, expr = true })