Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The keymap configuration seems to not work. #152

Closed
cauliyang opened this issue Apr 12, 2023 · 1 comment
Closed

The keymap configuration seems to not work. #152

cauliyang opened this issue Apr 12, 2023 · 1 comment

Comments

@cauliyang
Copy link
Contributor

I use LazyVim and here is my configuration:

the version is 3ff8403

    {
        "jackMort/ChatGPT.nvim",
        dependencies = {
            "MunifTanjim/nui.nvim",
            "nvim-lua/plenary.nvim",
            "nvim-telescope/telescope.nvim",
        },
        config = function()
            require("chatgpt").setup({

                keymaps = {
                    submit = "<C-s>",
                    close = { "jk", "kj", "<Esc>" },
                    yank_last = "<C-y>",
                    scroll_up = "<C-u>",
                    scroll_down = "<C-d>",
                    toggle_settings = "<C-o>",
                    new_session = "<C-n>",
                    cycle_windows = "<Tab>",

                },

            })
        end,
        event = "VeryLazy",
        enabled = lvim.builtin.chatgpt.active,
    },

The keymaps configuration fails to set, and fall back to the default keymaps.

@cauliyang
Copy link
Contributor Author

Finally, I find the reason cause the layout of the configuration has been changed. I also answer the question in another related issue. #105 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants