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

weird issue with keymaps #69

Closed
cepix1234 opened this issue Feb 25, 2025 · 0 comments
Closed

weird issue with keymaps #69

cepix1234 opened this issue Feb 25, 2025 · 0 comments

Comments

@cepix1234
Copy link

Hello I have a weird issue this is my configuration
`{ -- This plugin
"Zeioth/compiler.nvim",
cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo" },
dependencies = { "stevearc/overseer.nvim", "nvim-telescope/telescope.nvim" },
config = function()
require("compiler").setup()
vim.g.NODEJS_PACKAGE_MANAGER = 'yarn'
-- Open compiler

        vim.keymap.set('n', '<leader>r', function() require("compiler.telescope").show() end)

        -- Redo last selected option
        vim.api.nvim_set_keymap('n', '<leader>R',
            "<cmd>CompilerStop<cr>" -- (Optional, to dispose all tasks before redo)
            .. "<cmd>CompilerRedo<cr>",
            { noremap = true, silent = true })

        -- Toggle compiler results
        vim.keymap.set('n', '<leader>cr', function() require("overseer").toggle() end)
    end
},
{ -- The task runner we use
    "stevearc/overseer.nvim",
    commit = "6271cab7ccc4ca840faa93f54440ffae3a3918bd",
    cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo" },
    opts = {
        task_list = {
            direction = "bottom",
            min_height = 25,
            max_height = 25,
            default_detail = 1
        },
    },
}`

The issue is kind of strange after I open nvim and use to open compiler nothing happens, but when I manually run CompilerOpen command then that keymap works.

The same is true for the rest of the key maps, they start working after the command is used manually.

I don't know how even to investigate this if you have any ideas or solutions.

@Zeioth Zeioth closed this as completed Mar 1, 2025
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