feat(nvim): obsidian extra disables ui and has new keymaps

The new keymaps lets me search for unfinished and finished tasks
This commit is contained in:
Sergio Laín 2025-06-23 02:16:57 +02:00
parent d9280a8e1b
commit c0c5d5611d
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438

View file

@ -47,6 +47,8 @@ return {
blink = true, blink = true,
}, },
create_new = false,
picker = { picker = {
name = "snacks.pick", name = "snacks.pick",
note_mappings = { note_mappings = {
@ -122,7 +124,7 @@ return {
img_folder = "00 - Data/Documentos", img_folder = "00 - Data/Documentos",
}, },
ui = { enable = true }, ui = { enable = false },
statusline = { statusline = {
enabled = true, enabled = true,
@ -130,6 +132,43 @@ return {
}, },
}, },
}, },
{
"folke/snacks.nvim",
keys = {
{
prefix .. "k",
function()
Snacks.picker.grep({
search = "^\\s*- \\[ \\]",
regex = true,
dirs = { vim.fn.getcwd() },
finder = "grep",
format = "file",
show_empty = true,
supports_live = false,
live = false,
})
end,
desc = "Tasks (Unfinished)",
},
{
prefix .. "K",
function()
Snacks.picker.grep({
search = "^\\s*- \\[x\\]:",
regex = true,
dirs = { vim.fn.getcwd() },
finder = "grep",
format = "file",
show_empty = true,
supports_live = false,
live = false,
})
end,
desc = "Tasks (Finished)",
},
},
},
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
opts = { opts = {