Mercurial > dotfiles
comparison dot_config/nvim/config.lua @ 333:a3a0de56b0eb
Switch to pyright LSP for python
author | zegervdv <zegervdv@me.com> |
---|---|
date | Thu, 14 Jan 2021 13:36:52 +0100 |
parents | 5b166328c2fd |
children | cd9a31235699 |
comparison
equal
deleted
inserted
replaced
332:5b166328c2fd | 333:a3a0de56b0eb |
---|---|
283 -- vim.api.nvim_command("edit") | 283 -- vim.api.nvim_command("edit") |
284 vim.fn.winrestview(view) | 284 vim.fn.winrestview(view) |
285 end | 285 end |
286 end | 286 end |
287 | 287 |
288 lsp.pyls.setup{ | 288 lsp.pyright.setup{ |
289 cmd = {"pyls"}, | |
290 on_attach = on_attach; | 289 on_attach = on_attach; |
291 } | 290 } |
292 | 291 |
293 if (vim.fn.executable('efm-langserver') == 1) then | 292 if (vim.fn.executable('efm-langserver') == 1) then |
294 require 'efm/python' | 293 require 'efm/python' |