mirror of
https://github.com/softinio/nvim-config.git
synced 2025-08-31 15:06:41 -07:00
add obsidian plugin
This commit is contained in:
parent
e609be9239
commit
e5d9a171a7
1 changed files with 26 additions and 0 deletions
26
lua/plugins/obsidian.lua
Normal file
26
lua/plugins/obsidian.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
lazy = true,
|
||||
event = {
|
||||
"BufReadPre " .. "'/Users/salar/Library/Mobile Documents/iCloud~md~obsidian/Documents/Softinio'",
|
||||
"BufNewFile " .. "'/Users/salar/Library/Mobile Documents/iCloud~md~obsidian/Documents/Softinio'",
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>fo", "<cmd>ObsidianQuickSwitch<cr>", desc = "Obsidian Quick Switch (Telescope)" },
|
||||
{ "<leader>fn", "<cmd>ObsidianNew<cr>", desc = "Create a new obsidian note" },
|
||||
{ "<leader>fs", "<cmd>ObsidianSearch<cr>", desc = "Obsidian Search" },
|
||||
{ "<leader>fd", "<cmd>ObsidianToday<cr>", desc = "Obsidian new daily note" },
|
||||
},
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "'/Users/salar/Library/Mobile Documents/iCloud~md~obsidian/Documents/Softinio'",
|
||||
},
|
||||
},
|
||||
use_advanced_uri = false,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue