From 9edd8724c8a33fb85d61726b28d7f5fd2cf481a8 Mon Sep 17 00:00:00 2001 From: xtbqimuxmvtx <112921562+xtbqimuxmvtx@users.noreply.github.com> Date: Sun, 25 May 2025 15:59:16 +0930 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 47de95c..fe7f95f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ - [Pathogen](#installation-using-pathogen) - [Vim-Plug](#installation-using-vim-plug) - [Vundle](#installation-using-vundle) + - [Lazy](#installation-using-lazy) + - [Basic Markup](#basic-markup) - [Lists](#lists) - [Key Bindings](#key-bindings) @@ -142,6 +144,24 @@ vim +PluginInstall +qall ``` +#### Installation using [Lazy](https://github.com/folke/lazy.nvim) + +Add repository within `require('lazy').setup` call in your vimrc (or for plugins file ie. /lua/plugins/, do the same within a `return{}` statement) +{ +'vimwiki/vimwiki' +} + +Declare global variables **before** plugins are loaded (above `require('lazy').setup({}`), + +For example: + +``` lua +-- Set markdown as default in vimwiki folder in home +vim.g.vimwiki_path = '~/vimwiki/' +vim.g.vimwiki_syntax = 'markdown' +vim.g.vimwiki_ext = 'md' +``` + #### Manual Install Download the [zip archive](https://github.com/vimwiki/vimwiki/archive/dev.zip)