Add minor changes for obsidian nvim plugin and key mappings
This commit is contained in:
@@ -184,3 +184,7 @@ vim.keymap.set("n", "<leader>fmt", function()
|
||||
require("conform").format({ bufnr = 0 })
|
||||
end)
|
||||
|
||||
-- obisdian / notes
|
||||
vim.keymap.set("n", "<leader>oo", function() vim.cmd("Obsidian open") end)
|
||||
vim.keymap.set("n", "<leader>ot", "o- [ ] ")
|
||||
|
||||
|
||||
@@ -4,13 +4,17 @@ return {
|
||||
version = "*", -- '*' for latest release, not latest commit
|
||||
ft = "markdown",
|
||||
opts = {
|
||||
legacy_commands = false,
|
||||
new_notes_location = os.getenv("DIR_NOTES") .. "/inbox",
|
||||
ui = {
|
||||
enable = false,
|
||||
},
|
||||
workspaces = {
|
||||
{
|
||||
name = "notes",
|
||||
path = os.getenv("DIR_NOTES"),
|
||||
},
|
||||
},
|
||||
legacy_commands = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user