mirror of
https://github.com/softinio/nvim-config.git
synced 2025-10-18 19:26:41 -07:00
Merge pull request 'add obsidian plugin' (#50) from push-vszpuwmmnwyt into main
Reviewed-on: #50
This commit is contained in:
commit
5ac8f98859
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