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 })
|
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- [ ] ")
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user