-
Notifications
You must be signed in to change notification settings - Fork 2
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
[ask] how to setup plugin using lazy #20
Comments
Hi @muhfaris, I don't use lazy.nvim, but maybe I can still help you. Could you please describe your specific problem in more detail? |
thanks @potamides for reply |
return {
{
"potamides/pantran.nvim",
config = function ()
local pantran = require('pantran')
pantran.setup({})
local opts = {noremap = true, silent = true, expr = true}
vim.keymap.set("n", "<Leader>tr", pantran.motion_translate, opts)
vim.keymap.set("n", "<leader>trr", function() return pantran.motion_translate() .. "_" end, opts)
vim.keymap.set("x", "<leader>tr", pantran.motion_translate, opts)
end,
},
} |
{
"potamides/pantran.nvim",
keys = {
{
"<leader>tr",
function()
require("pantran").motion_translate()
end,
mode = {"n", "v"},
desc = "Translate",
},
},
opts = {},
config = function (_, opts)
require('pantran').setup(opts)
end,
}, |
it's still not work for me |
Is this the first plugin you are installing? Because It works in my setup (Fairly modified) (e.g) do you have a snippet like so? require("lazy").setup {
-- PLUGINS HERE
} |
Usually lazyvim configs works for astrovim I just need to add I could see the command |
Ok just to point out, I used this config and it worked, I didn't added line by line to check what was missing, But it worked for |
It also works but you need to select the text ;) |
hi @potamides can you explain to me how to setup this plugin using lazy.nvim
my config below, is not work properly.
thanks
The text was updated successfully, but these errors were encountered: