Add python language server

Add clippy::pedantic warning lint
Add jedi_language_server for python support
Switch back to Telescope git_files
writing
Nick Zana 3 years ago
parent 96161899f1
commit 83788ca6f3
No known key found for this signature in database
GPG Key ID: A6E59E60FE474883

@ -104,7 +104,7 @@ map('t', '<C-e>', '<C-\\><C-n>', {noremap = true})
-- NERDTree
map('n', '<leader>nt', '<cmd>NERDTreeToggle<CR>', {noremap = true})
-- Telescope
map('n', '<C-p>', '<cmd>Telescope find_files<cr>', {noremap = true})
map('n', '<C-p>', '<cmd>Telescope git_files<cr>', {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, {

Loading…
Cancel
Save