Update README.md lazy install

Fixed to declare variables inline as per lazy convention
This commit is contained in:
xtbqimuxmvtx
2025-05-26 07:34:50 +09:30
committed by Brennen Bearnes
parent 9edd8724c8
commit 70e3aa519b
+8 -13
View File
@@ -147,21 +147,16 @@ 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'
{
'vimwiki/vimwiki',
init = function()
vim.g.vimwiki_path = '~/vimwiki/'
vim.g.vimwiki_syntax = 'markdown'
vim.g.vimwiki_ext = 'md'
end,
}
```
#### Manual Install
Download the [zip archive](https://github.com/vimwiki/vimwiki/archive/dev.zip)