-- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here local map = LazyVim.safe_keymap_set map("n", "gl", vim.diagnostic.open_float, { desc = "Line Diagnostics" }) map("n", "cq", function() vim.lsp.buf.code_action({ context = { only = { "source.fixAll" }, diagnostics = {}, }, apply = true, }) vim.lsp.buf.format({ async = true }) end, { desc = "Reformat python with ruff" })