The previous mechanism to resolve local executables depended on the null-ls root path, which may not be reliable in every situation since it's based on .git or vim.fn.getcwd(). This PR uses nvim-lspconfig's util.root_pattern to find node_modules upwards from the current file's path, which should be more reliable.
May close #66.
The previous mechanism to resolve local executables depended on the null-ls root path, which may not be reliable in every situation since it's based on
.git
orvim.fn.getcwd()
. This PR uses nvim-lspconfig'sutil.root_pattern
to findnode_modules
upwards from the current file's path, which should be more reliable.