Skip to content

insert newline/space without entering insert mode

License

Notifications You must be signed in to change notification settings

aidancz/lfsp.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

lfsp.nvim - insert newline/space without entering insert mode

demo

  • dot-repeatable
  • support supplying a count
  • support choosing whether the cursor follows

setup

vim.keymap.set(
	"n",
	"<down>",
	function()
		return
		require("lf").expr({
			direction = "next",
			follow = true,
		})
	end,
	{expr = true}
)
vim.keymap.set(
	"n",
	"<up>",
	function()
		return
		require("lf").expr({
			direction = "prev",
			follow = true,
		})
	end,
	{expr = true}
)
vim.keymap.set(
	"n",
	"<left>",
	function()
		return
		require("sp").expr({
			direction = "prev",
			follow = true,
		})
	end,
	{expr = true}
)
vim.keymap.set(
	"n",
	"<right>",
	function()
		return
		require("sp").expr({
			direction = "next",
			follow = true,
		})
	end,
	{expr = true}
)

About

insert newline/space without entering insert mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages