我想用lua配置新病毒(0.7.0),没有插件。
我已经通过vim.wo.number = true配置了行号。我想,如果我使用vim.o.statusline = "%F"让statusline显示文件名/路径,也同样有效。
然而,我的新病毒的状态线仍然是空的。我如何改变我的init.lua,让状态线显示文件文件呢?
目前,init.lua是:
vim.wo.number = true
vim.o.smarttab = true
vim.bo.expandtab = true
vim.bo.shiftwidth = 4
vim.bo.tabstop = 4
vim.o.statusline = "%F"
vim.wo.statusline = '%F'发布于 2021-12-08 06:21:33
vim.o.laststatus = 2根据:help
The value of this option influences when the last window will have a
status line:
0: never
1: only if there are at least two windows
2: always
The screen looks nicer with a status line if you have several
windows, but it takes another screen line. status-line https://stackoverflow.com/questions/70234195
复制相似问题