further configure obsidian
This commit is contained in:
parent
229b1c88e9
commit
8c942afe7f
2 changed files with 18 additions and 2 deletions
7
nvim/after/ftplugin/markdown.lua
Normal file
7
nvim/after/ftplugin/markdown.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
local map = vim.keymap.set
|
||||||
|
|
||||||
|
map("v", "<leader>ln", "<CMD>ObsidianLinkNew<CR>")
|
||||||
|
map("n", "<C-n>", "<CMD>ObsidianNew<CR>")
|
||||||
|
map("n", "<leader>/", "<CMD>ObsidianSearch<CR>")
|
||||||
|
map("n", "<leader>ll", "<CMD>ObsidianLinks<CR>")
|
||||||
|
map("n", "<C-]>", "<CMD>ObsidianFollowLink<CR>")
|
||||||
|
|
@ -24,7 +24,16 @@ return {
|
||||||
path = "~/Documents/Obsidian Vault",
|
path = "~/Documents/Obsidian Vault",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
follow_url_func = function(url)
|
||||||
-- see below for full list of options 👇
|
vim.fn.jobstart({ "open", url })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
mappings = {
|
||||||
|
["<CR>"] = {
|
||||||
|
action = function()
|
||||||
|
return require("obsidian").util.smart_action()
|
||||||
|
end,
|
||||||
|
opts = { noremap = false, expr = true, buffer = true },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue