updated zshrc
This commit is contained in:
1 parent
9becc60ef8
commit
0eaac74dfa
19 files changed
+1311
-65
No files matched your search
@@ -0,0 +1,55 @@
|
||||
-- obsidian.lua: Integrates Obsidian note-taking workflow into Neovim.
|
||||
|
||||
return {
|
||||
{
|
||||
"epwalsh/obsidian.nvim",
|
||||
version = "*",
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "liph",
|
||||
path = "/home/liph/Documents/Obsidian/liph",
|
||||
},
|
||||
},
|
||||
|
||||
completion = {
|
||||
nvim_cmp = true,
|
||||
min_chars = 2,
|
||||
},
|
||||
|
||||
mappings = {
|
||||
["<leader>ch"] = {
|
||||
action = function()
|
||||
return require("obsidian").util.toggle_checkbox()
|
||||
end,
|
||||
opts = { buffer = true, desc = "Toggle checkbox" },
|
||||
},
|
||||
["<cr>"] = {
|
||||
action = function()
|
||||
return require("obsidian").util.smart_action()
|
||||
end,
|
||||
opts = { buffer = true, expr = true },
|
||||
},
|
||||
["gf"] = {
|
||||
action = function()
|
||||
return require("obsidian").util.gf_passthrough()
|
||||
end,
|
||||
opts = { noremap = false, expr = true, buffer = true },
|
||||
},
|
||||
},
|
||||
|
||||
note_id_func = function(title)
|
||||
return title
|
||||
end,
|
||||
|
||||
ui = {
|
||||
enable = false, -- DISABLE Obsidian UI, use markview instead
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user