nvim-FeMaco.lua
nvim-FeMaco.lua copied to clipboard
Clean temp file automatically
Regarding to https://github.com/AckslD/nvim-FeMaco.lua/issues/29
- Call
vim.loop.fs_unlinkto clean temp file. - Add little description for
create_tmp_filepath
I am sorry that Femaco cann't run in my neovim correctly, and ouput some error info
Error executing Lua callback: /usr/share/nvim/runtime/lua/vim/treesitter.lua:189: attempt to index local 'node_or_range' (a nil value)
stack traceback:
/usr/share/nvim/runtime/lua/vim/treesitter.lua:189: in function 'get_match_range'
...ocal/share/nvim/lazy/nvim-FeMaco.lua/lua/femaco/edit.lua:84: in function 'get_match_at_cursor'
...ocal/share/nvim/lazy/nvim-FeMaco.lua/lua/femaco/edit.lua:156: in function 'edit_code_block'
...ocal/share/nvim/lazy/nvim-FeMaco.lua/lua/femaco/init.lua:12: in function <...ocal/share/nvim/lazy/nvim-FeMaco.lua/lua/femaco/init.lua:12>
I have try:
- Reinstall Markdown treesitter
- Install neovim-git
@AbaoFromCUG I just met the same issue. But why do you raise a comment here?
I open #32 to explain this.
@AbaoFromCUG this should now be fixed by #33 (and #34). Feel free to rebase and look into my comment above