nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.02k stars 462 forks source link

expose configuration through vimscript #113

Closed hoob3rt closed 3 years ago

hoob3rt commented 3 years ago

User should be able to configure lualine with vimscript through global vim variables eg

let g:lualine_theme = 'nord'

similarly this should be supported in lua

vim.g.lualine_theme = 'nord'
shadmansaleh commented 3 years ago

Should be farely easy ro implement what options do you wana cover?

hoob3rt commented 3 years ago

Should be farely easy ro implement what options do you wana cover?

I agree, should be really simple. I want the whole configuration to be available through vimscript. I'm not sure if we have to do g:lualine_theme maybe it's possible to do g:lualine.theme. I will have to look into vimscript more.

There might be some issues with arrays. For now it's just an idea on what should be done next imo

shadmansaleh commented 3 years ago

I want the whole configuration to be available through vimscript.

In whole configuration do you include sections like lualine.sections.lualine_a ?

hoob3rt commented 3 years ago

I want the whole configuration to be available through vimscript.

In whole configuration do you include sections like lualine.sections.lualine_a ?

I don't know what you mean

shadmansaleh commented 3 years ago

like we set which components to show in statusline by setting sections and inactive_sections right? I was asking if you want them to be configured through viml too ..

hoob3rt commented 3 years ago

Oh yeah. As I've said. Everything which is currently possible in lua should also be possible in native vimscript. Eventually we the current configuration scheme should no longer be required and everything should be possible through vim.g.lualine....