♻️ refactor(nvim): obsidian config
This commit is contained in:
parent
39fd1bd580
commit
fc4800b837
1 changed files with 9 additions and 9 deletions
|
@ -1,9 +1,9 @@
|
|||
local prefix = "<leader>O"
|
||||
local prefix = "<leader>o"
|
||||
|
||||
return {
|
||||
{
|
||||
"epwalsh/obsidian.nvim",
|
||||
event = { "BufReadPre /docs/Documentos/Obsidian/**.md" },
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
{ prefix .. "o", "<cmd>ObsidianOpen<CR>", desc = "Open on App" },
|
||||
{ prefix .. "g", "<cmd>ObsidianSearch<CR>", desc = "Grep" },
|
||||
|
@ -22,17 +22,11 @@ return {
|
|||
{ prefix .. "i", "<cmd>ObsidianPasteImg<CR>", desc = "Paste Image" },
|
||||
{ prefix .. "d", "<cmd>ObsidianDailies<CR>", desc = "Daily Notes" },
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"hrsh7th/nvim-cmp",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "~/Documentos/Obsidian/obsidianVault/root",
|
||||
path = "~/Documents/Obsidian/obsidianVault/",
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -58,6 +52,12 @@ return {
|
|||
end,
|
||||
opts = { buffer = true },
|
||||
},
|
||||
["<cr>"] = {
|
||||
action = function()
|
||||
return require("obsidian").util.smart_action()
|
||||
end,
|
||||
opts = { buffer = true, expr = true },
|
||||
},
|
||||
},
|
||||
|
||||
templates = {
|
||||
|
|
Loading…
Add table
Reference in a new issue