Closed nkta3m closed 1 year ago
This is the correct (and yet not that intuitive) behavior, because we haven't registered the BufNewFile
event for lualine
and its two dependencies. This will be resolved in #425.
明白了,谢谢
我又遇到另一个问题,新建md文件,进入insert后,出现如下提示:但是在test.py中不会出现
This is also related to the BufNewFile
event (++the language server would also stop working under certain circumstances). Please wait until the migration (#422) is finished.
A temporary workaround is to create such files externally using shell commands like touch
.
:h BufNewFile
*BufNewFile*
BufNewFile When starting to edit a file that doesn't
exist. Can be used to read in a skeleton
file.
The correct steps to use <leader>fn
to create a new file and use opened buffer to edit are following:
<leader>fn
: create a empty buffer.:w xxx.xx
: write to a file called xxx.xx
.:e
: reload this buffer with the saved file.Then you will see all of them works for fine including lsp
, lualine
and bufferline
.
我又遇到另一个问题,新建md文件,进入insert后,出现如下提示:但是在test.py中不会出现
I have removed tabout.nvim
in https://github.com/ayamir/nvimdots/pull/425.
Version confirmation
Neovim version
nvim 0.82
Operating system/version
Windows 10
Terminal name/version
Alacritty
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
HTTPS (use_ssh = false)
How to reproduce the issue
Expected behavior
正确显示
Actual behavior
nvim test.py 或者nvim,快捷键 space-f-n,新建一个空文件,:save test.py,statusline都不能正确显示,请教是正常的吗?
Additional information
No response