Add obsidian nvim plugin
This commit is contained in:
parent
b3b814e48e
commit
11209de3b5
4 changed files with 30 additions and 0 deletions
1
init.lua
1
init.lua
|
@ -1,3 +1,4 @@
|
|||
-- Omitting `lua` directory, because neovim autmaticaly serching in it
|
||||
require("t0xa.core.options")
|
||||
require("t0xa.core.keybindings")
|
||||
require("t0xa.lazy")
|
||||
|
|
3
lua/t0xa/core/keybindings.lua
Normal file
3
lua/t0xa/core/keybindings.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
-- Obsidian-related keybinds
|
||||
vim.keymap.set("n", "<leader>oit", "<cmd>ObsidianTemplate<CR>", { silent = true, noremap = true, desc="Obsidian: insert template" })
|
||||
vim.keymap.set("n", "<leader>oo", "<cmd>ObsidianQuickSwitch<CR>", { silent = true, noremap = true, desc="Obsidian: open file" })
|
|
@ -38,3 +38,6 @@ opt.swapfile = false
|
|||
|
||||
-- Add line at 88 symbols
|
||||
opt.colorcolumn = "88"
|
||||
|
||||
-- Obsidian setting fot concealing charachters
|
||||
opt.conceallevel = 0
|
||||
|
|
23
lua/t0xa/plugins/obsidian.lua
Normal file
23
lua/t0xa/plugins/obsidian.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
version = "*", -- recommended, use latest release instead of latest commit
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
dependencies = {
|
||||
-- Required.
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "~/Documents/t0xa_vault/",
|
||||
},
|
||||
},
|
||||
templates = {
|
||||
folder = "Templates"
|
||||
},
|
||||
-- disable adding properties on top of file on save
|
||||
disable_frontmatter = true,
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue