Experimenting with searching thru nvim (wit) and also running commands

using noice
This commit is contained in:
2025-04-26 18:20:23 +03:00
parent ccdf0d4594
commit 49be66e67a
5 changed files with 19 additions and 2 deletions

View File

@@ -76,5 +76,6 @@
"vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" },
"vim-tmux-navigator": { "branch": "master", "commit": "791dacfcfc8ccb7f6eb1c853050883b03e5a22fe" },
"vim-wakatime": { "branch": "master", "commit": "e46d7c4f98ee0f40782008dd60cb2a79c377fb1d" },
"vscode-codicons": { "branch": "main", "commit": "17ce4c853be20e26901867ab3442c1e353096f6d" }
"vscode-codicons": { "branch": "main", "commit": "17ce4c853be20e26901867ab3442c1e353096f6d" },
"wit.nvim": { "branch": "master", "commit": "1d9e1246554711b748fb1c8708f4b4a1631ffbad" }
}

View File

@@ -52,6 +52,8 @@ end
-- https://www.youtube.com/watch?v=qZO9A5F6BZs&list=PLm323Lc7iSW_wuxqmKx_xxNtJC_hJbQ7R&index=4
set('x', '<leader>p', '<cmd>lua RemoveClipboardCR()<cr>"_dP')
set('n', '!', ':!')
set({ 'n', 'x' }, 'p', '<cmd>lua RemoveClipboardCR()<cr>p', { noremap = true })
set({ 'n', 'x' }, 'P', '<cmd>lua RemoveClipboardCR()<cr>P', { noremap = true })

View File

@@ -85,6 +85,15 @@ return {
},
opts = { skip = true },
},
{
view = 'popup',
filter = {
event = 'msg_show',
kind = '',
find = 'written',
},
-- opts = { skip = true },
},
},
presets = {
bottom_search = true, -- use a classic bottom cmdline for search

View File

@@ -21,7 +21,7 @@ return {
style = 'compact',
filter = function(notif)
local exact_filter = { 'No information available', 'No code actions available' }
local contains_filter = { 'fewer lines', 'lines indented', 'lines yanked' }
local contains_filter = { 'fewer lines', 'lines indented', 'lines yanked', 'more lines' }
for _, msg in ipairs(exact_filter) do
if notif.msg == msg then
return false

View File

@@ -0,0 +1,5 @@
return {
'aliqyan-21/wit.nvim',
opts = {},
cmd = { 'WitSearch' },
}