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 -- NERDTree
map('n', '<leader>nt', '<cmd>NERDTreeToggle<CR>', {noremap = true}) map('n', '<leader>nt', '<cmd>NERDTreeToggle<CR>', {noremap = true})
-- Telescope -- 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 -- LSP TODO: make lua instead of vimscript
-- --
@ -192,12 +192,16 @@ nvim_lsp['rust_analyzer'].setup {
allFeatures = true allFeatures = true
}, },
checkOnSave = { checkOnSave = {
command = "clippy" command = "clippy",
extraArgs = "["--", "-W", "clippy::pedantic"]"
} }
} }
} }
} }
-- Python
require'lspconfig'.jedi_language_server.setup{}
-- Enable diagnostics -- Enable diagnostics
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with( vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, { vim.lsp.diagnostic.on_publish_diagnostics, {

Loading…
Cancel
Save