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, {