Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable plugins #139

Closed
espositofulvio opened this issue Sep 21, 2017 · 2 comments
Closed

Disable plugins #139

espositofulvio opened this issue Sep 21, 2017 · 2 comments

Comments

@espositofulvio
Copy link

I am using ST3 with the LSP plugin and python-language-server, it works great most out of the box but I'd like to disable pycodestyle as I don't follow pep8 in so many aspects. I sifted through the issues and found one who seemed to imply something like that is supported, I just can't find any example on how to do so.
Cheers.

@gatesn
Copy link
Contributor

gatesn commented Sep 21, 2017

So every plugin can be disabled using a config flag like this one: https://github.com/palantir/python-language-server/blob/develop/vscode-client/package.json#L63

@tomv564 might know better, but I think with ST3 you can set these properties with https://lsp.readthedocs.io/en/latest/#per-project-overrides

@espositofulvio
Copy link
Author

Great, thanks! I managed to get it to work. I also figure out I needed to install the server in my virtualenv, and replace the path to that in config, the VIRTUAL_ENV variable isn't set anywhere, not even using the virtualenv plugin for ST, so I needed something like the following:

{
	"folders":
	[
		{
			"folder_exclude_patterns":
			[
				".env",
				".venv",
				".*cache",
				".hg",
				".egg-info",
				"__pycache__"
			],
			"path": "."
		}
	],
	"virtualenv": "D:\\Work\\Projects\\Catalysis\\.env",
	"settings": 
	{
		"LSP": 
		{
			"pyls":
			{
		        "command": ["D:\\Work\\Projects\\Catalysis\\.env\\Scripts\\pyls"],
		        "scopes": ["source.python"],
		        "syntaxes": ["Packages/Python/Python.sublime-syntax"],
		        "languageId": "python",
		        "settings": {
		        	"pyls": { "plugins": { "pycodestyle": { "enabled": false } } }
		        }
		    }
		}
	}
}

Thank you very much for the help

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

No branches or pull requests

2 participants