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:
parent
d9280a8e1b
commit
c0c5d5611d
1 changed files with 40 additions and 1 deletions
|
@ -47,6 +47,8 @@ return {
|
|||
blink = true,
|
||||
},
|
||||
|
||||
create_new = false,
|
||||
|
||||
picker = {
|
||||
name = "snacks.pick",
|
||||
note_mappings = {
|
||||
|
@ -122,7 +124,7 @@ return {
|
|||
img_folder = "00 - Data/Documentos",
|
||||
},
|
||||
|
||||
ui = { enable = true },
|
||||
ui = { enable = false },
|
||||
|
||||
statusline = {
|
||||
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",
|
||||
opts = {
|
||||
|
|
Loading…
Add table
Reference in a new issue