浏览代码

nixpkgs/neovim: add delete buffer binding for telescope

Thomas Dy 2 年之前
父节点
当前提交
e32ecc00ed
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      .config/nixpkgs/neovim/plugins.lua

+ 5 - 0
.config/nixpkgs/neovim/plugins.lua

@@ -17,6 +17,11 @@ require('telescope').setup({
     buffers = {
     buffers = {
       sort_lastused = true,
       sort_lastused = true,
       sort_mru = true,
       sort_mru = true,
+      mappings = {
+        i = {
+          ['<C-d>'] = 'delete_buffer'
+        },
+      },
     },
     },
     find_files = {
     find_files = {
       find_command = { "fd", "--type", "f", "--strip-cwd-prefix" }
       find_command = { "fd", "--type", "f", "--strip-cwd-prefix" }