• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Neovim plugin for moving lines up and down

Moveline.nvim

Moveline is a simple plugin for moving lines up and down. It's written in Rust using my library nvim-utils.

MovelineDemo.mp4

Installation

Moveline can be installed using any Neovim package manager that supports build commands.

Lazy.nvim

{
    'willothy/moveline.nvim',
    build = 'make',
}

Packer.nvim

use('willothy/moveline', { run = 'make' })

Usage

Moveline does not set any keybinds. It simply exports four functions: up and down for moving single lines, and block_up and block_down for moving visual selections.

You can use these functions to set your own keybinds. Here's my setup:

local moveline = require('moveline')
vim.keymap.set('n', '<M-k>', moveline.up)
vim.keymap.set('n', '<M-j>', moveline.down)
vim.keymap.set('v', '<M-k>', moveline.block_up)
vim.keymap.set('v', '<M-j>', moveline.block_down)

Moveline functions accept counts. For example, with the keybinds above, typing 5<M-k> will move the current line up 5 lines.

More Repositories

1

nvim-cokeline

👃 A Neovim bufferline for people with addictive personalities
Lua
540
star
2

flatten.nvim

Open files and command output from wezterm, kitty, and neovim terminals in your current neovim instance
Lua
476
star
3

wezterm.nvim

Utilities for interacting with Wezterm from within Neovim
Lua
178
star
4

veil.nvim

A blazingly fast, animated, and infinitely customizeable startup / dashboard plugin (currently unmaintained, but with plans for a ground-up rewrite)
Lua
140
star
5

nvim-utils

Utilities and bindings for writing Neovim plugins in Rust
Rust
78
star
6

nvim-config

My personal Neovim config
Lua
59
star
7

strat-hero.nvim

Helldivers 2's "Strategem Hero" minigame for Neovim. Become a better Helldiver from the comfort of your favorite editor!
Lua
24
star
8

savior.nvim

Customizable, event-based auto saving for Neovim
Lua
22
star
9

luahint

LSP inline hints for Lua, intended for use with Neovim.
Rust
16
star
10

glass.nvim

A stateful windowing and animation plugin / library for Neovim (WIP)
Lua
8
star
11

dotfiles

Shell
7
star
12

sesh

Simple terminal session management (tmux but super mid), written in Rust btw
Rust
7
star
13

blam.nvim

A simple plugin for viewing git blame info, inspired by GitLens
Rust
6
star
14

Letter

Letter is a compiler project built in TypeScript using LLVM node bindings.
TypeScript
5
star
15

sharp

LLVM-Based procedural-ish programming language written in Rust, with Rust-like syntax and modules
Rust
4
star
16

sanguine

A library for creating dynamic TUI experiences in Rust
Rust
3
star
17

twitch.nvim

Highly experimental Twitch chat integration for Neovim
Rust
2
star
18

minimus

Personal color scheme
Lua
2
star
19

wrangler.nvim

Harpoon-like mark manager for Neovim, backed by SQLite (WIP)
Lua
2
star
20

micro-async.nvim

Ultra-simple async library for Neovim, with cancellation support
Lua
2
star
21

hollywood.nvim

📸 Action! A flexible, elegant and featureful code action menu (WIP)
Lua
2
star
22

worth

Compiler for the Porth programming language, targeting x86_64 assembly.
Rust
1
star
23

notify-ls.nvim

Experimental progress and notification reporting for Neovim using an in-process language server. Not at all ready for use.
Lua
1
star
24

lazyline.nvim

Lazy-loading statusline for Neovim
Lua
1
star
25

lua-lexer-deez

Simple transpiler in Lua (Luajit). Transpiles toy language into Lua. Incomplete, may revisit at some point.
Lua
1
star
26

neosuggest

WIP cross-shell autosuggestion engine
Rust
1
star
27

PeachOS

C
1
star
28

crates_cli

A command line interface for finding and managing Rust crates.
Rust
1
star
29

judge.lua

Lua
1
star
30

awesome-config

Lua
1
star
31

leptos.nvim

Experimental Lua/Nvim bindings for the leptos-reactive rust crate
Rust
1
star
32

winborder.nvim

Floating border surrounding the active split
Lua
1
star
33

crane-lang

WIP compiler targeting x86_64
Rust
1
star
34

.nix

Nix
1
star
35

goose

Good ol' OS experiment. Probably bad. I have no idea what I'm doing, but the goal is to have some idea when I'm done.
Rust
1
star
36

libsql-lua

Mlua-based Luajit bindings to tursodatabase/libsql. Synchronous only, for now. Entirely untested and not ready for use.
Rust
1
star