True lazy loading, lsp installs, and nvim-compe

Installation scripts for:
+ bashls
+ ccls
+ clangd
+ pylsp
+ pyright
+ sumneko
+ zls

And adjusted a few keymaps
This commit is contained in:
Just Midi 2021-08-26 07:15:27 +00:00
parent 052b4513c2
commit 4ca63a5884
11 changed files with 337 additions and 105 deletions

View file

@ -276,18 +276,20 @@ map('n', '<leader>p', ':lua pm_sync()<CR>', {noremap = true})
-- LSP
local lsp_commands = {
new = {'<', '>','a','d','D','f','h','n','r','s'},
new = {'h','d','D','r','f','n','i','s','S','<','>','a'},
old = {
'diagnostic.goto_prev', -- <
'diagnostic.goto_next', -- >
'buf.code_action', -- a
'buf.hover', -- h
'buf.definition', -- d
'buf.declaration', -- D
'buf.formatting', -- f
'buf.hover', -- h
'buf.rename', -- n
'buf.references', -- r
'buf.document_symbol' -- s
'buf.formatting', -- f
'buf.rename', -- n
'buf.implementation', -- i
'buf.document_symbol', -- s
'buf.signature_help', -- S
'diagnostic.goto_prev', -- <
'diagnostic.goto_next', -- >
'buf.code_action' -- a
}
}
for i = 1, #lsp_commands.new do