Add minor changes for obsidian nvim plugin and key mappings

This commit is contained in:
2025-11-30 00:24:17 -06:00
parent 79f53976da
commit 69806a9411
2 changed files with 9 additions and 1 deletions

View File

@@ -184,3 +184,7 @@ vim.keymap.set("n", "<leader>fmt", function()
require("conform").format({ bufnr = 0 }) require("conform").format({ bufnr = 0 })
end) end)
-- obisdian / notes
vim.keymap.set("n", "<leader>oo", function() vim.cmd("Obsidian open") end)
vim.keymap.set("n", "<leader>ot", "o- [ ] ")

View File

@@ -4,13 +4,17 @@ return {
version = "*", -- '*' for latest release, not latest commit version = "*", -- '*' for latest release, not latest commit
ft = "markdown", ft = "markdown",
opts = { opts = {
legacy_commands = false,
new_notes_location = os.getenv("DIR_NOTES") .. "/inbox",
ui = {
enable = false,
},
workspaces = { workspaces = {
{ {
name = "notes", name = "notes",
path = os.getenv("DIR_NOTES"), path = os.getenv("DIR_NOTES"),
}, },
}, },
legacy_commands = false,
}, },
}, },
} }