From 83788ca6f311f1fc5ed3b8ef634b7ce21b82fc2d Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Fri, 12 Nov 2021 17:09:54 -0500 Subject: [PATCH] Add python language server Add clippy::pedantic warning lint Add jedi_language_server for python support Switch back to Telescope git_files --- init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 747c1e8..2b183c1 100644 --- a/init.lua +++ b/init.lua @@ -104,7 +104,7 @@ map('t', '', '', {noremap = true}) -- NERDTree map('n', 'nt', 'NERDTreeToggle', {noremap = true}) -- Telescope -map('n', '', 'Telescope find_files', {noremap = true}) +map('n', '', 'Telescope git_files', {noremap = true}) -- LSP TODO: make lua instead of vimscript -- @@ -192,12 +192,16 @@ nvim_lsp['rust_analyzer'].setup { allFeatures = true }, checkOnSave = { - command = "clippy" + command = "clippy", + extraArgs = "["--", "-W", "clippy::pedantic"]" } } } } +-- Python +require'lspconfig'.jedi_language_server.setup{} + -- Enable diagnostics vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, {