Added pylsp

This commit is contained in:
Alexander Rosenberg 2022-12-25 16:34:21 -08:00
parent 380bb03ffd
commit f3d4ab7797
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -15,14 +15,14 @@
(bind! :n :<C-k> vim.lsp.buf.signature_help buf)
(bind! :n :<leader>wa vim.lsp.buf.add_workspace_folder buf)
(bind! :n :<leader>wr vim.lsp.buf.remove_workspace_folder buf)
(bind! :n :<leader>wl #(print (vim.inspect
(bind! :n :<leader>wl #(print (vim.inspect
(vim.lsp.buf.list_workspace_folders))) buf)
(bind! :n :<leader>D vim.lsp.buf.type_definition buf)
(bind! :n :<leader>rn vim.lsp.buf.rename buf)
; (bind! :n :<leader>cn vim.lsp.buf.code_action buf)
; (bind! :n :gr vim.lsp.buf.references buf)
(bind! :n :<leader>o #(vim.lsp.buf.format { :async true }) buf)
;; Some telescope commands
(let [fzf (require :fzf-lua)]
(bind! :n :gr fzf.lsp_references buf)
@ -61,6 +61,7 @@
(setup-server! :gopls)
(setup-server! :rust_analyzer)
(setup-server! :texlab)
(setup-server! :pylsp)
(setup-server! :sumneko_lua
:settings {
:Lua {