Nvim 0.7.2 Released
Recently the nvim 0.7.2 version is released following the 0.7.0 release two months ago. Here are some of the updates in 0.7.0.
Python 2 support is removed
Python 2 support is dropped since nvim 0.7.0.
:py3 works the same now.
- there is a new
vim.keymap.set()interface, where you can set mapping for multiple modes at the same time.
descfield for mappings, which is used to describe what the mapping does. Check this commit.
Easier inspection of lua table
- we can use
:lua =expr: quickly print the value of an expression, e.g.,
:lua =vimwill print the
- The function
vim.pretty_print()can print lua tables nicely. Use
vim.pretty_print()to show the content of a lua object
Autocmd in lua
You can now use native lua function to create autocmd in Lua, no more
:h nvim_create_automcmd for the details.
Create command in lua
You can now create command in lua via function
The old way of detecting filetypes from vim is slow. So the new
filetype.lua is introduced to reduce the time.
TL;DR, add the following config to
" use filetype.lua instead of filetype.vim let g:do_filetype_lua = 1 let g:did_load_filetypes = 0
vim.g.do_filetype_lua = 1 vimg.did_load_filetypes = 0
if you use
Want to use a single statusline for all the windows? Now it is possible, with the following setting:
License CC BY-NC-ND 4.0