{ ... }: { programs.nixvim.keymaps = [ { action = "Telescope find_files"; key = "ff"; options = { desc = "Find files"; }; } { action = "Telescope projects"; key = "fp"; options = { desc = "Find projects"; }; } { action = "Telescope buffers"; key = "fb"; options = { desc = "Find buffers"; }; } { action = "Neotree toggle"; key = "ft"; options = { desc = "Toggle neo-tree"; }; } { action = '' lua vim.lsp.buf.code_action({ apply = true }) ''; key = "lc"; options = { desc = "Apply code actions"; }; } { action = '' lua vim.lsp.buf.format() ''; key = "lf"; options = { desc = "Format buffer"; }; } { action = '' Telescope lsp_definitions ''; key = "gd"; options = { desc = "Go to definitions"; }; } { action = '' Telescope lsp_references ''; key = "gr"; options = { desc = "Go to references"; }; } ]; }