Browse Source

q to quit quickfix when focused

Christian Chiarulli 3 năm trước cách đây
mục cha
commit
df7c3cb8f0
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      lua/core/autocmds.lua

+ 5 - 0
lua/core/autocmds.lua

@@ -8,6 +8,11 @@ lvim.autocommands = {
       "*",
       "lua require('utils.ft').do_filetype(vim.fn.expand(\"<amatch>\"))",
     },
+    {
+      "FileType",
+      "qf",
+      "nnoremap <silent> <buffer> q :q<CR>",
+    },
     {
       "TextYankPost",
       "*",