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

Tab behaviour with pyright is backwards #281

Open
2 tasks done
artischocki opened this issue Sep 26, 2023 · 0 comments
Open
2 tasks done

Tab behaviour with pyright is backwards #281

artischocki opened this issue Sep 26, 2023 · 0 comments

Comments

@artischocki
Copy link

Problem description

Yesterday I PackerSynced and since then my Tab key behaves "backwards".
Tab -> unindent
Tab + Shift -> indent
This behaviour can only be observed in xxx.py files when using pyright.

Why do you think this is an issue with mason-lspconfig.nvim?

I debugged my nvim config. Behaviour only occurs when mason-lspconfig is in use. Other Plugins dont seem to affect this.

Neovim version (>= 0.7)

NVIM v0.9.2

Operating system/version

Linux arch 6.5.4-arch2-1

I've manually reviewed the Nvim LPS client log (:LspLog) to find potential errors

  • Yes

I've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig

  • Yes

Affected language servers

Pyright

Steps to reproduce

  1. Install plugin
  2. Install pyright in Mason
  3. open any python File
  4. Try to indent using Tab

Actual behavior

Tab -> unindent
Tab + Shift -> indent

Expected behavior

Tab + Shift -> unindent
Tab -> indent

LspInfo

Language client log: /home/artur/.local/state/nvim/lsp.log
 Detected filetype:   python
 
 1 client(s) attached to this buffer: 
 
 Client: pyright (id: 1, bufnr: [1])
 	filetypes:       python
 	autostart:       true
 	root directory:  /home/artur/.config
 	cmd:             /home/artur/.local/share/nvim/mason/bin/pyright-langserver --stdio
 
 Configured servers list: pyright, marksman, jsonls, taplo, html

LspLog

No response

Healthcheck

==============================================================================
mason: require("mason.health").check()

mason.nvim ~
- OK mason.nvim version v1.8.0
- OK PATH: prepend
- OK Providers: 
  mason.providers.registry-api
  mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2023-09-26-valid-bugle` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- OK wget: `GNU Wget 1.21.4 built on linux-gnu.`
- OK curl: `curl 8.1.1 (x86_64-conda-linux-gnu) libcurl/8.1.1 OpenSSL/1.1.1u zlib/1.2.13 libssh2/1.10.0 nghttp2/1.52.0`
- OK gzip: `gzip 1.13`
- OK tar: `tar (GNU tar) 1.35`
- OK bash: `GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING cargo: not available
  - ADVICE:
    - spawn: cargo failed with exit code - and signal -. cargo is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- WARNING Ruby: not available
  - ADVICE:
    - spawn: ruby failed with exit code - and signal -. ruby is not executable
- WARNING javac: not available
  - ADVICE:
    - spawn: javac failed with exit code - and signal -. javac is not executable
- WARNING java: not available
  - ADVICE:
    - spawn: java failed with exit code - and signal -. java is not executable
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- WARNING RubyGem: not available
  - ADVICE:
    - spawn: gem failed with exit code - and signal -. gem is not executable
- OK Go: `go version go1.21.1 linux/amd64`
- OK python: `Python 3.11.4`
- OK node: `v20.7.0`
- OK pip: `pip 23.2.1 from /home/artur/.local/anaconda3/lib/python3.11/site-packages/pip (python 3.11)`
- OK python venv: `Ok`
- OK npm: `10.1.0`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 3. Remaining: 57. Limit: 60. Reset: Tue 26 Sep 2023 11:24:39 PM CEST.
  Install and authenticate via gh-cli to increase rate limit.

Screenshots or recordings

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant