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