" LSP config (the mappings used in the default file don't quite work right) nnoremap gd lua vim.lsp.buf.definition() nnoremap gD lua vim.lsp.buf.declaration() nnoremap gr lua vim.lsp.buf.references() nnoremap gi lua vim.lsp.buf.implementation() nnoremap K lua vim.lsp.buf.hover() nnoremap lua vim.lsp.buf.signature_help() nnoremap [d lua vim.lsp.diagnostic.goto_prev() nnoremap ]d lua vim.lsp.diagnostic.goto_next() " autoformat autocmd BufWritePre *.js lua vim.lsp.buf.formatting_sync(nil, 100) autocmd BufWritePre *.jsx lua vim.lsp.buf.formatting_sync(nil, 100) autocmd BufWritePre *.py lua vim.lsp.buf.formatting_sync(nil, 100)