lite-xl / lite-xl-lsp

LSP Plugin for Lite XL editor
MIT License
160 stars 21 forks source link

Exists a way to get ir working with pyright? #29

Closed erickod closed 8 months ago

erickod commented 2 years ago

Hi guys! I'm trying do get it working with pyright to get typing hints. The settings I made are below:

lspconfig.pyright = add_lsp {
  name = "pyright",
  language = "python",
  file_patterns = { "%.py$" },
  command = { 'pyright-langserver', '--stdio' },
  verbose = true,
}

Despite the lsp started, I can't get any data from it in the lite-xl. I need some help.

Guldoman commented 8 months ago

You can now try to install lsp_python with lpm, which should simplify the setup process to just installing that plugin.

Feel free to reopen if you find difficulties when using lsp_python.