path: "gopls",
syncInit: true,
},
- {
- filetype: ["python"],
- path: "pyls",
- syncInit: true,
- workspaceConfig: {pyls: {
- configurationSources: ["flake8"],
- plugins: {
- mccabe: {enabled: false},
- },
- }},
- },
]
if executable(d["path"])
add(lspServers, d)
autocmd VimEnter * call LspAddServer(lspServers)
autocmd VimEnter * call LspOptionsSet(lspOpts)
+autocmd CursorMoved * silent! LspDiagCurrent
nmap gd :LspGotoDefinition<CR>
nmap <C-W>gd :vert LspGotoDefinition<CR>
nmap <F6> :lopen<CR>