Skip to content

Commit

Permalink
feat: obsidian
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Jan 1, 2024
1 parent e246ef0 commit 173c7a6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
1 change: 1 addition & 0 deletions lua/config/keymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ wk.register({
q = { "<cmd>Telescope quickfix<cr>", "quickfix" },
l = { "<cmd>Telescope loclist<cr>", "loclist" },
j = { "<cmd>Telescope jumplist<cr>", "marks" },
n = { "<cmd>ObsidianQuickSwitch<cr>", "notes" },
p = { "project" },
},
h = {
Expand Down
37 changes: 30 additions & 7 deletions lua/plugins/specific.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,34 @@

return {

-- {
-- "jakewvincent/mkdnflow.nvim",
-- config = function ()
-- local mkdnflow = require("mkdnflow")
-- mkdnflow.setup{}
-- end
-- }
-- {
-- "jakewvincent/mkdnflow.nvim",
-- config = function ()
-- local mkdnflow = require("mkdnflow")
-- mkdnflow.setup{}
-- end
-- },
{
"epwalsh/obsidian.nvim",
ft = "markdown",
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"
"BufReadPre " .. vim.fn.expand"~/notes/**/*.md",
"BufNewFile " .. vim.fn.expand"~/notes/**/*.md",
},
dependencies = {
-- Required.
"nvim-lua/plenary.nvim",

},
opts = {
workspaces = {
{
name = "notes",
path = "~/notes",
},
},
},
}
}

0 comments on commit 173c7a6

Please sign in to comment.