Compare commits

...

3 commits

Author SHA1 Message Date
Sanchayan Maity a159fc3868
ripgrep: Ignore markdown files
When searching in projects like SIPjs, we get a lot of results which are
in markdown files as the documentation in SIPjs is in markdown. We mostly
care about code when searching. So ignore markdown files while searching
just like we ignore a few others.
2023-06-29 19:43:37 +05:30
Sanchayan Maity 8218e69e1f
wireplumber: Disable HDMI monitor as an audio sink 2023-06-29 19:43:37 +05:30
Sanchayan Maity 9c9dc6a6b8
nvim: after/plugin/mini: Use jump2d for f, F, t, T motions
mini.jump module does not give multiple hints when moving on the
same line like hop use to. Use the jump2d module to achieve this
functionality. This makes it easy to jump forward or backward on
the same line with just one hop instead of having to press f/F
multiple times which is just annoying and stupid.
2023-06-29 19:32:05 +05:30
3 changed files with 28 additions and 2 deletions

View file

@ -10,8 +10,6 @@ require('mini.align').setup({
})
-- Comment lines
require('mini.comment').setup()
-- For f, F, t, t motions/Horizontal movement
require('mini.jump').setup({silent = true})
-- Vertical jumps/movement
require('mini.jump2d').setup({
allowed_lines = {
@ -67,3 +65,18 @@ remap({ 'n', 'o', 'x' }, 'gl', function()
return mini_jump2d.start(line_start)
end, opts)
-- Replacement for f, F, t, T motions/Horizontal movement
remap({ 'n', 'o', 'x' }, 'f', function()
local mini_jump2d = require('mini.jump2d')
local single_char = mini_jump2d.builtin_opts.single_character
single_char.allowed_lines = {
blank = false,
cursor_before = false,
cursor_at = true ,
cursor_after = false,
fold = false,
}
return mini_jump2d.start(single_char)
end, opts)

View file

@ -11,3 +11,4 @@
--glob=!mediasoup/*
--glob=!mediasoup-*/
--glob=!north-star/
--glob=!*.md

View file

@ -7,4 +7,16 @@ disable_C920_mic_rule = {
},
apply_properties = { ["node.disabled"] = true, },
}
disable_hdmi_audio_rule = {
matches = {
{
{ "node.nick" , "equals", "LG HDR 4K" },
{ "media.class", "equals", "Audio/Sink" },
},
},
apply_properties = { ["node.disabled"] = true, },
}
table.insert(alsa_monitor.rules, disable_C920_mic_rule)
table.insert(alsa_monitor.rules, disable_hdmi_audio_rule)