1 diff --git a/.vimrc.local b/.vimrc.local
2 index 2e4df902a0..ae29eec37f 100644
10 if has('persistent_undo')
11 @@ -241,6 +241,7 @@ local on_attach = function(client, bufnr)
12 local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
13 local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
15 + buf_set_option('formatexpr', 'v:lua.vim.lsp.formatexpr()')
16 buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
17 vim.opt.completeopt = {'menuone', 'noselect'}
19 @@ -251,7 +252,7 @@ local on_attach = function(client, bufnr)
20 local opts = { noremap=true, silent=true }
21 -- See `:help vim.lsp.*` for documentation on any of the below functions
22 buf_set_keymap('n', 'gD', '<Cmd>lua vim.lsp.buf.declaration()<CR>', opts)
23 - buf_set_keymap('n', '<C-]>', '<Cmd>lua vim.lsp.buf.declaration()<CR>', opts)
24 + buf_set_keymap('n', '<C-]>', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts)
25 buf_set_keymap('n', 'gd', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts)
26 buf_set_keymap('n', 'K', '<Cmd>lua vim.lsp.buf.hover()<CR>', opts)
27 buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
28 @@ -276,10 +277,11 @@ lspconfig.tsserver.setup{ on_attach = on_attach, capabilities = capabilities, }
29 lspconfig.clangd.setup{
30 on_attach = on_attach,
31 capabilities = capabilities,
32 - -- cmd = { vim.loop.os_homedir() .. "clangd", "--background-index" },
33 + -- cmd = { vim.loop.os_homedir() .. "bin/clangd", "--background-index" },
34 cmd = { "clangd", "--background-index" },
35 root_dir = lspconfig.util.root_pattern("compile_commands.json", "compile_flags.txt"),
37 +lspconfig.pylsp.setup{ on_attach = on_attach, capabilities = capabilities, }
41 @@ -288,8 +290,6 @@ autocmd FileType c,cpp,rust highlight ExtraWhitespace ctermbg=red guibg=red
42 " Format on write for Rust
43 " autocmd BufWritePre *.rs lua vim.lsp.buf.formatting_sync(nil, 200)
45 -" runtime! python_setup.vim
47 set inccommand=nosplit