diff options
| author | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2023-11-06 22:45:43 -0500 |
|---|---|---|
| committer | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2023-11-06 22:45:43 -0500 |
| commit | 00fa9fb23ee3de7b60f0b5a88f905f3bf14a1485 (patch) | |
| tree | d0c4c846e98ed175dbcbe554bccdf612e40d3faf /nvim | |
| parent | 782ef687186beb02c7a5a1f8060b674d08480dc6 (diff) | |
change grep to ripgrep, quickfix bind
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/after/plugin/keymap.lua | 4 | ||||
| -rw-r--r-- | nvim/init.lua | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/nvim/after/plugin/keymap.lua b/nvim/after/plugin/keymap.lua index cf29d6a..78ebff6 100644 --- a/nvim/after/plugin/keymap.lua +++ b/nvim/after/plugin/keymap.lua @@ -3,3 +3,7 @@ local Remap = require("keymap") Remap.nmap("gf", function() vim.cmd([[:e <cfile>]]) end) + +Remap.nnoremap("<Leader>qf", function() + vim.cmd(':cope') +end) diff --git a/nvim/init.lua b/nvim/init.lua index 3d35d32..8dc3c5e 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -63,3 +63,7 @@ vim.opt.termguicolors = true -- tex syntax highlighting vim.g.tex_flavor = "latex" + +-- ripgrep +vim.opt.grepprg = "rg --vimgrep" +vim.opt.grepformat = "%f:%l:%c:%m" |
