imxiejie / ThinkVim

Vim configuration in the 21st century
MIT License
868 stars 106 forks source link

build a new statusline? #35

Closed glepnir closed 5 years ago

glepnir commented 5 years ago

The current statusline is easy to get tired of aesthetics. All the statusline plugins don't have any intentions. I want to change it. I am hesitating. If you have any good idea ,pls tell me. it would be great if someone could implement it in pr.

emeentag commented 5 years ago

https://gitlab.com/dwt1/dotfiles this theme is best that i have ever seen. I do not know what the color codes are but we can definetly have look at it and the components as well.

glepnir commented 5 years ago

onedark.vim. the statusline is airline. you can change the thinkvim colorscheme and lightline colorscheme to onedark.

emeentag commented 5 years ago

I tried but could not make it run, airline, syntax, lightline etc...

glepnir commented 5 years ago

download the onedark.vim then move to the colors folder. change the theme/themes.vim colorscheme onedark. the default colorscheme folder of lightline has onedark theme. just edit the lightline.vim change the gruvbox9 to onedark

emeentag commented 5 years ago

https://github.com/emeentag/ThinkVim/commit/6e680416690de871ed672d014b3b543ce3eeab75

Please have look to this commit and the result here:

glepnir commented 5 years ago

@emeentag change the colorscheme , you can edit here https://github.com/taigacute/ThinkVim/blob/master/core/themes/theme.vim#L22,

if you want use airline you sould disable lightline. airline is slowy than lightline. airline is very heavy

change the lightline colorscheme https://github.com/taigacute/ThinkVim/blob/master/core/plugins/lightline.vim#L2

see your pic. you install two statusline plugins so its broken. remove the airline .i think its will be fine

emeentag commented 5 years ago

@taigacute now i got it. It seems perfect now. regarding to colorscheme property i actually changing it in my local_settings.vim Now i got everything works.

Question: Do i need to install sheerun/vim-polyglot for syntax highlighting or do we have already a similar one.

Only thing i think we should update status bar for NERDTree it looks a bit unusefull. Screen Shot 2019-06-27 at 13 53 01

glepnir commented 5 years ago

the vim-polyglot provide manay syntax group for language. its too heavy . if the thinkvim doesnt have the syntax of your language .you can only add the plugin which provide the syntax group of your language. yes .you can add the config in local setting. because the local setting is sourced after thinkvimsettings. so localsetting will cover thinkvim settings。

https://github.com/taigacute/ThinkVim/blob/master/core/plugins/lightline.vim#L51 . there should be add

\      &filetype ==? 'nerdtree'           ? ' ' :
glepnir commented 5 years ago

by the way which language you write?

emeentag commented 5 years ago

It is Java + js. And coc is working fine i installed it but i am not sure i have the best highlighting for java.

emeentag commented 5 years ago

the vim-polyglot provide manay syntax group for language. its too heavy . if the thinkvim doesnt have the syntax of your language .you can only add the plugin which provide the syntax group of your language. yes .you can add the config in local setting. because the local setting is sourced after thinkvimsettings. so localsetting will cover thinkvim settings。

https://github.com/taigacute/ThinkVim/blob/master/core/plugins/lightline.vim#L51 . there should be add

\      &filetype ==? 'nerdtree'           ? ' ' :

Worked perfectly.

glepnir commented 5 years ago

default neovim support java file. i dont write java. so didnt know the best syntax group for java.

emeentag commented 5 years ago

no worries i am ok with it it is much more than i need. I love ThinkVim and thanks for your collaboration. After i got use to it a bit more i am planning to record a tutorial per your tutorial task.

glepnir commented 5 years ago

thanks a lot. the suggest that the tutorila should have the usage of all plugins which thinkvim installed. my english is not very well .if you can do it .very thanks.

glepnir commented 5 years ago

build new statusline on dev branch. and i made a plugin call spaceline.vim 1