ShinKage / idris2-nvim

Simple configuration and extra tools for NVIM + LSP + Idris2
MIT License
46 stars 7 forks source link

fix hook for adding a file #28

Closed mattpolzin closed 1 year ago

mattpolzin commented 1 year ago

https://github.com/neovim/nvim-lspconfig/pull/2775 broke this plugin because the try_add and related functions were defined/called with the : accessor syntax which means that when overriding them as anonymous functions the self argument needs to be added. In addition to adding the self argument, I realized that some of the work done by the plugin was being done by the lspconfig try_add function anyway, so hooking in at the add function saves a bit of code.