Compare commits

..

3 commits

Author SHA1 Message Date
0e45f3229a
nvim: autocmd: Open quickfix & localist list if populated
This is required when using vimgrep without which we will
have to invoke copen or lopen manually.
2024-07-13 20:03:35 +05:30
e54dd071f6
nvim: keymappings: Add key mapping for invoking vimgrep 2024-07-13 20:02:43 +05:30
30efe75dc7
ripgrep: Ignore meson build and GStreamer ci directory 2024-07-13 19:46:30 +05:30
3 changed files with 18 additions and 1 deletions

View file

@ -42,6 +42,18 @@ local aucmd_dict = {
pattern = "*", pattern = "*",
command = "set guicursor=a:hor1-blinkon0" command = "set guicursor=a:hor1-blinkon0"
} }
},
QuickFixCmdPost = {
{
group = custom_augroup_id,
pattern = "[^l]*",
command = "cwindow"
},
{
group = custom_augroup_id,
pattern = "l*",
command = "lwindow"
}
} }
} }

View file

@ -19,8 +19,11 @@ remap('n', '<Leader>P', '<ESC>"*p', opts)
-- Search and Replace -- Search and Replace
remap('n', 'c.' , ':%s//g<Left><Left>' , opts) remap('n', 'c.' , ':%s//g<Left><Left>' , opts)
remap('n', '<Leader>c.', ':%s/\\<<C-r><C-w>\\>//g<Left><Left>', opts) remap('n', '<Leader>c.', ':%s/\\<<C-r><C-w>\\>//g<Left><Left>', opts)
-- Exact Search -- Exact Search in buffer
remap('n', 'S', '/\\<\\><Left><Left>', opts) remap('n', 'S', '/\\<\\><Left><Left>', opts)
-- Search
remap('n', '<Leader>s' , ':silent grep!<SPACE>' , opts)
remap('n', '<LocalLeader>s', ':silent lgrep!<SPACE>', opts)
-- Quit -- Quit
remap('n', '<Leader>x', '<Esc>:x<CR>' , opts) remap('n', '<Leader>x', '<Esc>:x<CR>' , opts)
remap('n', '<Leader>q', '<Esc>:q<CR>' , opts) remap('n', '<Leader>q', '<Esc>:q<CR>' , opts)

View file

@ -17,3 +17,5 @@
--glob=!*/gst-integration-testsuites/* --glob=!*/gst-integration-testsuites/*
--glob=!tests/ --glob=!tests/
--glob=!NEWS --glob=!NEWS
--glob=!build/*
--glob=!ci/*