-
Notifications
You must be signed in to change notification settings - Fork 4
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
Can anyone help with setting up keyboard shortcuts? #13
Comments
DameerGamlet
changed the title
Может кто-нибудь помочь с установкой сочетаний клавиш?
Can anyone help with setting up keyboard shortcuts?
Oct 3, 2023
You should be able to use something like this: n = {
["<M-Up>"] = { function() require("moveline").up() end, "moveline: up" },
["<M-Down"] = { function() require("moveline").down() end, "moveline: down" },
} |
Sorry, I still haven't figured out how to do this:( I added, there are no errors, but nothing happens:( |
Hmm I'll look into that. I'm in the process of rewriting this plugin anyways though, I would recommend using one of the other line-moving plugins for now. |
Here's how I got my Alt-Up / Alt-Down to work: -- .config/nvim/lua/plugins/moveline.lua
return {
'willothy/moveline.nvim',
build = 'make',
lazy = false,
config = function()
local moveline = require('moveline')
vim.keymap.set('n', '<a-Up>', moveline.up)
vim.keymap.set('n', '<a-Down>', moveline.down)
vim.keymap.set('v', '<as-Up>', moveline.block_up)
vim.keymap.set('v', '<as-Down>', moveline.block_down)
end
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure what is possible, but I would like to set the ALT+up/down combination for move line.up/down accordingly. How could I do that? (using neovim / lazy.nvim)
mappings.lua
The root view of the files is as follows:
The text was updated successfully, but these errors were encountered: