First exercise creating neovim plugin with Lua
I'm very exited with neovim, it's possible the version 0.5 to be released this month.
and also I want to cooperate with a new feature on the vista plugin
today I was working recreating this exercise
https://dev.to/2nit/how-to-write-neovim-plugins-in-lua-5cca
My repo: https://github.com/roberbnd/nvim-git-files-commit
Resume
- using require'VALUE'.gitFilesCommit(): VALUE has to be the same name as it has the file .lua
- File plugin/nvim-git-files-commit.vim:10
Learned functions under vim.api
https://neovim.io/doc/user/api.html
- nvim_call_function
- nvim_command
- nvim_create_buf
- nvim_buf_add_highlight
- nvim_buf_set_keymap
- nvim_buf_set_lines
- nvim_buf_set_option
- nvim_get_current_line
- nvim_get_option
- nvim_open_win
- nvim_win_close
- nvim_win_get_cursor
- nvim_win_get_width
- nvim_win_set_cursor
- nvim_win_set_option
Author And Source
この問題について(First exercise creating neovim plugin with Lua), 我々は、より多くの情報をここで見つけました https://qiita.com/roberbnd/items/d35edb80cfa6fa4c0600著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .