neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

Renaming a function looks in node_modules directory #267

Open arlopurcell opened 4 years ago

arlopurcell commented 4 years ago

I'm trying to rename a function, but I'm getting this error: Refactor failed. Syntax error in file <node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py> line <464>: invalid syntax

This is a django project with includes frontend stuff and so there's a node_modules directory in the root of the repository. Really I'd like to restrict the refactor to just the proj directory of the project so that it's not looking in node_modules. Is there a way to set the root of the python project somewhere? or maybe a way to exclude certain directories from the refactor?

Thanks!