commit f7e9eec75247c4827ea095f06e42983d4fc4e60d
parent c8b5ae68e16ddcb88bcb54b2110c6cbf28be0c23
Author: mehdi-norouzi <mehdeenoroozi@gmail.com>
Date: Mon, 8 Jul 2024 12:59:11 +0330
nvim: add vimwiki
Diffstat:
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/nvim/.config/nvim/lua/mehdi/init.lua b/nvim/.config/nvim/lua/mehdi/init.lua
@@ -1,3 +1,4 @@
require("mehdi.mappings")
require("mehdi.packer")
require("mehdi.settings")
+require("mehdi.wiki")
diff --git a/nvim/.config/nvim/lua/mehdi/packer.lua b/nvim/.config/nvim/lua/mehdi/packer.lua
@@ -31,6 +31,8 @@ return require('packer').startup(function(use)
use { 'tpope/vim-fugitive' }
+ use { 'vimwiki/vimwiki' }
+
end)
diff --git a/nvim/.config/nvim/lua/mehdi/wiki.lua b/nvim/.config/nvim/lua/mehdi/wiki.lua
@@ -0,0 +1,13 @@
+-- vimwiki markdown syntax
+vim.g.vimwiki_list = {
+ {path = '~/notes/vimwiki', syntax = 'markdown', ext = '.md'},
+ {path = '~/notes/vimwiki/tech', syntax = 'markdown', ext = '.md'},
+ {path = '~/notes/vimwiki/tech/linux', syntax = 'markdown', ext = '.md'},
+ {path = '~/notes/vimwiki/tech/rust', syntax = 'markdown', ext = '.md'},
+ {path = '~/notes/vimwiki/tech/python', syntax = 'markdown', ext = '.md'},
+ {path = '~/notes/vimwiki/tech/embedded', syntax = 'markdown', ext = '.md'},
+ {path = '~/notes/vimwiki/ideas', syntax = 'markdown', ext = '.md'},
+ {path = '~/notes/vimwiki/science', syntax = 'markdown', ext = '.md'},
+ {path = '~/notes/vimwiki/ati', syntax = 'markdown', ext = '.md'},
+}
+