Closed lakshits11 closed 1 year ago
This is not enough to help. You need to include more details like config, checkhealth
, etc
Plugin works for me
I am also using leap.nvim btw, so maybe that is a problem?
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function()
-- Add your plugins here
use 'wbthomason/packer.nvim'
use {
"ggandor/leap.nvim",
keys = {"s", "S"},
config = function()
local leap = require "leap"
leap.set_default_keymaps()
end
}
use {"chrisgrieser/nvim-spider"}
use {
'jinh0/eyeliner.nvim',
config = function()
require'eyeliner'.setup {
highlight_on_key = true, -- show highlights only after keypress
dim = false -- dim all other characters if set to true (recommended!)
}
end
}
end)
Hi @lakshits11 , leap.nvim might be the problem since leap.nvim also sets bindings for f
and F
by using set_default_keymaps
.
It seems like you are trying to use leap.nvim only for s
and S
. In that case, this might help:
{
'ggandor/leap.nvim',
keys = {'s', 'S'},
config = function ()
require'leap'.setup {}
vim.keymap.set({'n'}, 's', '<Plug>(leap-forward-to)', { noremap = true, silent = true })
vim.keymap.set({'n'}, 'S', '<Plug>(leap-backward-to)', { noremap = true, silent = true })
end
}
This explicitly sets mappings for s and S and nothing else.
Let me know if this fixes it. (Also, I have had many plugins "not work" for me with packer.nvim because I forgot to do PackerCompile or PackerInstall. Maybe that'll help too).
I am using packer and installed using this:
but it is not working. When I press f, nothing happens.