Add obsidian nvim plugin

This commit is contained in:
pro100ton 2024-11-15 09:39:21 +03:00
parent b3b814e48e
commit 11209de3b5
4 changed files with 30 additions and 0 deletions

View file

@ -1,3 +1,4 @@
-- Omitting `lua` directory, because neovim autmaticaly serching in it
require("t0xa.core.options")
require("t0xa.core.keybindings")
require("t0xa.lazy")

View 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" })

View file

@ -38,3 +38,6 @@ opt.swapfile = false
-- Add line at 88 symbols
opt.colorcolumn = "88"
-- Obsidian setting fot concealing charachters
opt.conceallevel = 0

View 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,
},
}