R-nvim / R.nvim

Neovim plugin to edit R files
GNU General Public License v3.0
128 stars 15 forks source link

Better hadling poissible nil values when using treesitter to send R code to the console (#99) #104

Closed PMassicotte closed 3 months ago

PMassicotte commented 3 months ago

🐛 (send.lua): Fix bug where vim.treesitter.get_parser was not receiving an array as argument

♻️ (send.lua): Refactor get_code_to_send function to add nil checks for node variable to prevent potential null reference errors

See #99 for reference.

jalvesaq commented 3 months ago

Thanks! The warnings are fixed, and it works.