mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 20:10:03 +02:00
nvim: adding obsidian plugin
This commit is contained in:
parent
d4c7d6da07
commit
7756703feb
2 changed files with 28 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
{ import = "user.plugins" },
|
{ import = "user.plugins" },
|
||||||
|
|
||||||
|
-- Misc
|
||||||
|
{ import = "user.plugins.misc.obsidian" },
|
||||||
|
|
||||||
-- Language specific
|
-- Language specific
|
||||||
{ import = "user.plugins.lang.lua" },
|
{ import = "user.plugins.lang.lua" },
|
||||||
{ import = "user.plugins.lang.bash" },
|
{ import = "user.plugins.lang.bash" },
|
||||||
|
|
|
||||||
25
nvim/lua/user/plugins/misc/obsidian.lua
Normal file
25
nvim/lua/user/plugins/misc/obsidian.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
return {
|
||||||
|
"epwalsh/obsidian.nvim",
|
||||||
|
version = "*", -- recommended, use latest release instead of latest commit
|
||||||
|
lazy = true,
|
||||||
|
ft = "markdown",
|
||||||
|
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
|
||||||
|
-- event = {
|
||||||
|
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
|
||||||
|
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
|
||||||
|
-- -- refer to `:h file-pattern` for more examples
|
||||||
|
-- "BufReadPre path/to/my-vault/*.md",
|
||||||
|
-- "BufNewFile path/to/my-vault/*.md",
|
||||||
|
-- },
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
workspaces = {
|
||||||
|
{
|
||||||
|
name = "main",
|
||||||
|
path = "~/obsidian",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue