This is the first commit that actually adds files to the repo. Yes it's a bad commit but now the major features are here
22 lines
582 B
Lua
22 lines
582 B
Lua
-- This file MUST load before vimwiki and as such is placed in the plugin directory
|
|
|
|
-- Get the XDG_DOCUMENTS_DIR if it exists
|
|
-- Otherwise use `$HOME/Documents` as default
|
|
local docdir = vim.env.HOME .. '/Documents'
|
|
if vim.env.XDG_DOCUMENTS_DIR then
|
|
docdir = vim.env.XDG_DOCUMENTS_DIR
|
|
end
|
|
|
|
|
|
local wikiroot = docdir .. '/vimwiki'
|
|
local mainWiki = {
|
|
path = wikiroot .. '/src',
|
|
path_html = wikiroot .. '/html',
|
|
template_path = wikiroot .. '/templates',
|
|
template_default = 'default'
|
|
}
|
|
|
|
vim.g.vimwiki_list = {mainWiki}
|
|
vim.g.vimwiki_global_ext = 0
|
|
vim.g.vimwiki_dir_link = 'index'
|