Fixing the keymap for changing model

This commit is contained in:
2025-05-02 21:22:22 +01:00
parent 6dfef7bd87
commit acccc74130

View File

@@ -140,7 +140,7 @@ vim.api.nvim_create_autocmd('FileType', {
-- Loop through models and create keymaps for each -- Loop through models and create keymaps for each
for i, model in ipairs(models) do for i, model in ipairs(models) do
vim.keymap.set('n', '<C-' .. i .. '>', 'mzggj0WC' .. model .. '<Esc>`z', { desc = 'Switch to ' .. model }) vim.keymap.set('n', '<C-' .. i .. '>', 'mzggj0WC' .. model .. '<Esc>`z', { desc = 'Switch to ' .. model })
vim.keymap.set('i', '<C-' .. i .. '>', '<Esc>mzggj0WC' .. model .. '<Esc>`zi', { desc = 'Switch to ' .. model }) vim.keymap.set('i', '<C-' .. i .. '>', '<Esc>mzggj0WC' .. model .. '<Esc>`za', { desc = 'Switch to ' .. model })
end end
end, end,
}) })