refactor(nvim): split up init.lua

This commit is contained in:
Michael Mandl 2024-07-29 13:13:03 +02:00
parent 5a01031a10
commit 4d111dd744
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
3 changed files with 73 additions and 46 deletions

View file

@ -1,12 +1,19 @@
vim.g.vimwiki_list = {
{
path = vimwiki_path,
syntax = "markdown",
ext = ".md",
path_html = "~/vimwiki_html",
custom_wiki2html = "vimwiki_markdown",
}
}
local mymodule = {}
-- disable global markdown hijacking
vim.g.vimwiki_global_ext = 0
function mymodule.setup(path)
vim.g.vimwiki_list = {
{
path = path,
syntax = "markdown",
ext = ".md",
path_html = "~/vimwiki_html",
custom_wiki2html = "vimwiki_markdown",
diary_frequency = "monthly",
}
}
-- disable global markdown hijacking
vim.g.vimwiki_global_ext = 0
end
return mymodule