Closed Minjares closed 6 months ago
This is likely related to issue #33. I am also running into this in my config, even after mapping the keys as mentioned in that issue (within the lazy config).
@Minjares thanks for the bug report. I'm trying to reproduce it. Could you please explain this line of your config:
vim.keymap.set("n", "", builtin.find_files, {})
Why the left hand side key is an empty string? Is this a typo?
@Minjares thanks for the bug report. I'm trying to reproduce it. Could you please explain this line of your config:
vim.keymap.set("n", "", builtin.find_files, {})
Why the left hand side key is an empty string? Is this a typo?
Sorry, I didn't knew Markdown erases <> I already corrected it, it is <C-p>
@Minjares you might also just remove that key from the restricted_keys
section since it seems like you're not using it for it's original mapping anyway. Hardtime doesn't really have any reason to restrict its use in your case. You can add the following to your config function:
local hardtime = require("hardtime")
local config = require("hardtime.config").config
config.restricted_keys["<C-P>"] = nil
hardtime.setup(config)
@HudsonMC16 @Minjares The issue is fixed! Now you don't need to remove the key from restricted_key
config. Your key config will overwrite it.
Please try out by updating to the lastest version and if you still encounter any bugs feel free to tell me!
Describe the bug When the plugin is installed I get this error when trying to open telescope E5108: Error executing lua: .../share/nvim/lazy/plenary.nvim/lua/plenary/popup/init.lua:172: Failed to save undo information stack traceback: [C]: in function 'nvim_buf_set_lines' .../share/nvim/lazy/plenary.nvim/lua/plenary/popup/init.lua:172: in function 'create' ...share/nvim/lazy/telescope.nvim/lua/telescope/pickers.lua:331: in function '_create_window' ...share/nvim/lazy/telescope.nvim/lua/telescope/pickers.lua:382: in function 'find' ...im/lazy/telescope.nvim/lua/telescope/builtin/files.lua:350: in function 'v' ...im/lazy/telescope.nvim/lua/telescope/builtin/files.lua:595: in function 'v' .../nvim/lazy/telescope.nvim/lua/telescope/builtin/init.lua:542: in function <.../nvim/lazy/telescope.nvim/lua/telescope/builtin/init.lua :501>
Config options { "m4xshen/hardtime.nvim", dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" }, opts = {} },
To Reproduce Steps to reproduce the behavior: Have this config for telescope:
Add this plugin: { "m4xshen/hardtime.nvim", dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" }, opts = {} },
Expected behavior When I try to open telescope find_files I get this error: E5108: Error executing lua: .../share/nvim/lazy/plenary.nvim/lua/plenary/popup/init.lua:172: Failed to save undo information stack traceback: [C]: in function 'nvim_buf_set_lines' .../share/nvim/lazy/plenary.nvim/lua/plenary/popup/init.lua:172: in function 'create' ...share/nvim/lazy/telescope.nvim/lua/telescope/pickers.lua:331: in function '_create_window' ...share/nvim/lazy/telescope.nvim/lua/telescope/pickers.lua:382: in function 'find' ...im/lazy/telescope.nvim/lua/telescope/builtin/files.lua:350: in function 'v' ...im/lazy/telescope.nvim/lua/telescope/builtin/files.lua:595: in function 'v' .../nvim/lazy/telescope.nvim/lua/telescope/builtin/init.lua:542: in function <.../nvim/lazy/telescope.nvim/lua/telescope/builtin/init.lua :501>