Neovim: obsidian plugin

This commit is contained in:
Filippo Berto 2024-06-27 13:44:52 +02:00
parent eea8e7beee
commit 75bc8f752f
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -8,6 +8,8 @@ let vp = pkgs.vimPlugins; in {
vimdiffAlias = true;
plugins = [
vp.plenary-nvim
# # Git related plugins
# vp.fugitive
# vp.rhubarb
@ -309,6 +311,26 @@ let vp = pkgs.vimPlugins; in {
vim.keymap.set("n", "<leader>xl", function() require("trouble").toggle("loclist") end)
'';
}
{
plugin = vp.obsidian-nvim;
type = "lua";
config = ''
require('obsidian').setup({
workspaces = {
{ name = "appunti", path = "~/Documenti/Git/Obsidian/appunti" }
},
templates = { folder = "Templates", date_format = "%Y-%m-%d-%a", time_format = "%H:%M" },
attachments = { img_folder = "Assets/" },
daily_notes = {
folder = "Note of the day",
default_tags = { },
alias_format = "%Y-%m-%d",
template = "Note of the day"
}
})
'';
}
];
# settings = { ignorecase = true; };
# coc.enable = true;
@ -352,6 +374,9 @@ let vp = pkgs.vimPlugins; in {
-- Numbers
o.number = true
-- Obisidan requirement
o.conceallevel = 1
-- disable nvim intro
-- opt.shortmess:append "sI"