How can I simplify the following codes in my
(For "simplify" I mean that by
vim.cmd(...) you're actually letting Lua run vimscript under the hood. But there is probably a Lua API to call instead. For example currently I learned that:
vim.cmd("set nowrap") can be re-written to
vim.opt.wrap = false.)
vim.cmd('runtime plugin/astronauta.vim') vim.cmd('noremap! <S-Insert> <C-W>') vim.cmd('cnoreabbrev S LspStart') vim.g.mapleader = ' '
I think there will be one sentence to solve all these little problems so I combine all of them instead of ask them separately. Thanks!