Closed Toraja closed 2 months ago
Also rewrite the below ftplugins in lua
markdown.vim
php.vim
rust.vim
markdown.vim
will be left as is since the legacy syntax is not enabled in treesitter and there is no lua counterpart, at least not yet.
https://github.com/neovim/neovim/issues/9876
Otherwise all done. Closing.
nvim-lua-guide has been deprecated.
Refer to
:help luaref.txt
and:help lua.txt
.vim.opt.encoding = 'utf-8'
,vim.opt_local.xxx = true
etchttps://github.com/nanotee/nvim-lua-guide#using-meta-accessorsvim.o
vim.opt:get()
vim.opt:append()
vim.opt:remove()
vim.opt:prepend()
vim.keymap.set()
https://github.com/nanotee/nvim-lua-guide#vimkeymapnvim_create_user_command()
nvim_buf_create_user_command()
https://github.com/nanotee/nvim-lua-guide#defining-user-commandsvim.fn
getcwd()
->vim.loop.cwd()
getcwd
takes an argumentfilereadable
->vim.loop.fs_stat()
type
field to see if it is file or directory.