Skip to content

srghma/nvim-various-textobjs-movements

Repository files navigation

nvim-various-textobjs-movements πŸŸͺπŸ”·πŸŸ‘

badge

Installation

Variant 1: Have nvim-various-textobjs-movements set up all the keybindings from the table above for you.

-- lazy.nvim
{
	"srghma/nvim-various-textobjs-movements",
	event = "UIEnter",
	opts = {
		go_to_indentation_top_withBlanks = "K",
		go_to_indentation_bottom_withBlanks = "J",
		go_to_indentation_top_noBlanks = "<C-M-k>",
		go_to_indentation_bottom_noBlanks = "<C-M-j>",
	},
}

-- packer
use {
	"srghma/nvim-various-textobjs-movements",
	config = function ()
		require("various-textobjs-movements").setup({
			go_to_indentation_top_withBlanks = "K",
			go_to_indentation_bottom_withBlanks = "J",
			go_to_indentation_top_noBlanks = "<C-M-k>",
			go_to_indentation_bottom_noBlanks = "<C-M-j>",
		})
	end,
}

-- astrovim
return {
  {
    "srghma/nvim-various-textobjs-movements",
    -- dir = "/home/srghma/projects/nvim-various-textobjs-movements",
    event = "User AstroFile",
	opts = {}, -- required
  },
  {
    "AstroNvim/astrocore",
    opts = {
      mappings = {
        n = {
          ["H"] = ':lua vim.lsp.buf.hover()<CR>',
        },
      },
    },
  },
}

Configuration

Options

The .setup() call is optional if you are fine with the defaults below.

-- default config
require("various-textobjs-movements").setup {
	go_to_indentation_top_withBlanks = "K",
	go_to_indentation_bottom_withBlanks = "J",
	go_to_indentation_top_noBlanks = "<C-M-k>",
	go_to_indentation_bottom_noBlanks = "<C-M-j>",
}

Credits

Thanks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages