vim.api.nvim_buf_set_keymap(bufnr, "n", "]d", '<cmd>lua vim.diagnostic.goto_next({ border = "rounded" })<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>q", "<cmd>lua vim.diagnostic.setloclist()<CR>", opts)
vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format()' ]])
- vim.cmd([[
- augroup FormatOnSave
- autocmd!
- autocmd BufWritePre * :Format
- augroup END
- ]])
+ -- vim.cmd([[
+ -- augroup FormatOnSave
+ -- autocmd!
+ -- autocmd BufWritePre * :Format
+ -- augroup END
+ -- ]])
end
M.on_attach = function(client, bufnr)