fannheyward / coc-pyright

Pyright extension for coc.nvim
MIT License
1.3k stars 47 forks source link

How to ignore pyright inline comment? #847

Closed mdeguzis closed 2 years ago

mdeguzis commented 2 years ago

I basically just want turn off the inline comments like type check:

resourceTypes: dict[Unknown, Unknown]  = {}

The way I copy text visually copies this since it's on the screen (using tmux and such, so I use Fn+mouse).

What's the output of :CocCommand pyright.version

[coc.nvim] coc-pyright 1.1.280 with Pyright 1.1.280

What's the output of :CocCommand workspace.showOutput Pyright

  1 Workspace: /local/home/deguzim/src/DeGuzim-Config
  2 Using python from /apollo/env/envImprovement/bin/python               
  3 
  4 [Info  - 5:01:21 AM] Pyright language server 1.1.280 starting
  5 [Info  - 5:01:21 AM] Server root directory: /local/home/deguzim/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/
  6 [Info  - 5:01:21 AM] Starting service instance "DeGuzim-Config"       
  7 [Info  - 5:01:21 AM] No configuration file found.
  8 [Info  - 5:01:21 AM] No pyproject.toml file found.
  9 [Info  - 5:01:21 AM] Setting pythonPath for service "DeGuzim-Config": "/apollo/env/envImprovement/bin/python"
 10 [Warn  - 5:01:21 AM] stubPath /local/home/deguzim/src/DeGuzim-Config/typings is not a valid directory.
 11 [Info  - 5:01:21 AM] Assuming Python version 3.8
 12 [Info  - 5:01:21 AM] Assuming Python platform Linux                   
 13 [Info  - 5:01:21 AM] Searching for source files 
 14 [Warn  - 5:01:21 AM] Skipping recursive symlink "/local/home/deguzim/src/DeGuzim-Config/configuration/dotfiles/git/git" -> "/local/home/deguzim/src/DeGuzim-Config/config
 15 [Warn  - 5:01:21 AM] Skipping recursive symlink "/local/home/deguzim/src/DeGuzim-Config/configuration/dotfiles/git-templates/git-templates" -> "/local/home/deguzim/src/D
 16 [Info  - 5:01:21 AM] Auto-excluding /local/home/deguzim/src/DeGuzim-Config/configuration/dotfiles/vim/plugged/ale/test/test-files/python/with_virtualenv/env
 17 [Warn  - 5:01:21 AM] Skipping recursive symlink "/local/home/deguzim/src/DeGuzim-Config/configuration/dotfiles/vim/vim" -> "/local/home/deguzim/src/DeGuzim-Config/config
 18 [Info  - 5:01:21 AM] Found 31 source files    
fannheyward commented 2 years ago

Set inlayHint.enable to false in your coc-settings.json, check :h inlayHint.