neoclide / coc-python

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

Cannot disable linting #305

Closed drskoolie closed 3 years ago

drskoolie commented 3 years ago

I want to completely disable linting forever and only keep the intellisense but I cannot do that. I have this in my coc-settings.json file:

{
    "coc.preferences.formatOnSaveFiletypes": [
        "css",
        "markdown"
    ],

    "python.envFile" : "/home/ubuntu5mon/Documents/venv_global/bin/python3",

    "python.jediEnabled": true,

    "coc.preferences.formatOnType": false,
    // python config
    "python.linting.enabled": false,
    "python.linting.pylintEnabled": false,

    "snippets.ultisnips.directories": [
        "UltiSnips",
        "~/.config/nvim/utils/snips"
  ],
}

If I open up the python.setLinter, I cannot disable it either. No matter how many times I type 1 and press enter:

Screenshot-20201113000404-578x211

If I open up the python.enableLinting, I cannot disable it either. No matter how many times I type 2 Screenshot-20201113000522-579x78 and press enter:

===================

If I start up a .py document fresh from neovim, then it initially won't do linting. But if I switch over to a new window, and switch back. Linting comes on and I cannot turn it off.

drskoolie commented 3 years ago

Managed to disable it.

There was a .vim file with coc-settings.json in a directory 3 levels up from where I was working. Deleted that and everything is working smoothly.