nvim-FeMaco.lua icon indicating copy to clipboard operation
nvim-FeMaco.lua copied to clipboard

Clean temp file automatically

Open AbaoFromCUG opened this issue 2 years ago • 4 comments

Regarding to https://github.com/AckslD/nvim-FeMaco.lua/issues/29

  • Call vim.loop.fs_unlink to clean temp file.
  • Add little description for create_tmp_filepath

AbaoFromCUG avatar Aug 22 '23 11:08 AbaoFromCUG

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 avatar Aug 24 '23 11:08 AbaoFromCUG

@AbaoFromCUG I just met the same issue. But why do you raise a comment here?

tan-wei avatar Aug 25 '23 01:08 tan-wei

I open #32 to explain this.

tan-wei avatar Aug 25 '23 01:08 tan-wei

@AbaoFromCUG this should now be fixed by #33 (and #34). Feel free to rebase and look into my comment above

AckslD avatar Aug 26 '23 21:08 AckslD