rohit-px2 / nvui

A modern frontend for Neovim.
MIT License
1.73k stars 50 forks source link

how to save configuration items? #137

Closed sangshuduo closed 2 years ago

sangshuduo commented 2 years ago

sorry for my stupid question. I am not aware if there is a way to save config items like "set nu" or toggle fullscreen by default like neovim or vim. How can I compose it somewhere?

rohit-px2 commented 2 years ago

Just put them as lines in your init.vim E.g. to open in fullscreen you could just have NvuiFullscreen v:true in your init.vim, or do vim.cmd [[NvuiFullscreen v:true]] for init.lua

sangshuduo commented 2 years ago

Cool! Works great. Thanks.

Then I found I have a neovim for windows installed too. It can't recognize NvuiFullscreen config in init.lua. Wonder if I can make both of them works.