Skip to content

Conversation

@AbaoFromCUG
Copy link

Regarding to #29

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

callback = function()
local lines = vim.api.nvim_buf_get_lines(float_bufnr, 0, -1, true)

vim.loop.fs_unlink(tempfile)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, should this only be for WinClosed and not for BufWritePost?

@AbaoFromCUG
Copy link
Author

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

@tan-wei
Copy link

tan-wei commented Aug 25, 2023

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

@tan-wei
Copy link

tan-wei commented Aug 25, 2023

I open #32 to explain this.

@AckslD
Copy link
Owner

AckslD commented Aug 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants