Neovim: obsidian plugin
This commit is contained in:
parent
eea8e7beee
commit
75bc8f752f
1 changed files with 25 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ let vp = pkgs.vimPlugins; in {
|
||||||
vimdiffAlias = true;
|
vimdiffAlias = true;
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
|
vp.plenary-nvim
|
||||||
|
|
||||||
# # Git related plugins
|
# # Git related plugins
|
||||||
# vp.fugitive
|
# vp.fugitive
|
||||||
# vp.rhubarb
|
# vp.rhubarb
|
||||||
|
|
@ -309,6 +311,26 @@ let vp = pkgs.vimPlugins; in {
|
||||||
vim.keymap.set("n", "<leader>xl", function() require("trouble").toggle("loclist") end)
|
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; };
|
# settings = { ignorecase = true; };
|
||||||
# coc.enable = true;
|
# coc.enable = true;
|
||||||
|
|
@ -352,6 +374,9 @@ let vp = pkgs.vimPlugins; in {
|
||||||
-- Numbers
|
-- Numbers
|
||||||
o.number = true
|
o.number = true
|
||||||
|
|
||||||
|
-- Obisidan requirement
|
||||||
|
o.conceallevel = 1
|
||||||
|
|
||||||
-- disable nvim intro
|
-- disable nvim intro
|
||||||
-- opt.shortmess:append "sI"
|
-- opt.shortmess:append "sI"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue