{ programs.nixvim.keymaps = [ { mode = [ "n" "v" ]; key = "fc"; action = "lua vim.lsp.buf.format()"; options = { silent = true; desc = "Format Code"; }; } { mode = "n"; key = "ch"; action = "noh"; options = { silent = true; desc = "Clear Highlighting"; }; } { mode = "n"; key = ""; action = "Telescope live_grep"; options = { desc = "Telescope LiveGrep"; }; } { mode = "n"; key = "fg"; action = "Telescope find_files"; options = { desc = "Telescope File Search"; }; } { mode = "n"; key = ""; action = "Neotree toggle"; options = { silent = true; desc = "Toggle Neotree"; }; } { mode = "n"; key = ""; action = "tabnew"; options = { desc = "New Tab"; }; } { mode = "n"; key = "]"; action = "BufferNext"; options = { desc = "Next Tab"; }; } { mode = "n"; key = "d"; action = "BufferClose"; options = { desc = "Close Tab"; }; } { mode = "n"; key = "["; action = "BufferPrevious"; options = { desc = "Previous Tab"; }; } { mode = "n"; key = ""; action = ":wincmd k"; options = { silent = true; desc = "Go Up"; }; } { mode = "n"; key = ""; action = ":wincmd j"; options = { silent = true; desc = "Go Down"; }; } { mode = "n"; key = ""; action = ":wincmd h"; options = { silent = true; desc = "Go Left"; }; } { mode = "n"; key = ""; action = ":wincmd l"; options = { silent = true; desc = "Go Right"; }; } ]; }