Neovim statusline 以最少的设置和没有插件显示文件名?

Neovim statusline show filename with minimal setup and without plugin?

我想用 lua 配置 neovim (0.7.0),没有插件。

我已经通过 vim.wo.number = true 配置了行号。我想如果我使用 vim.o.statusline = "%F" 让状态行显示文件名/路径,它也会同样有效。

然而,我的 neovim 的状态栏仍然是空的。如何更改 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'
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