Skip to content

winston0410/smart-cursor.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

smart-cursor.nvim

Save yourself some formatting and indenting when creating a new line.

Use treesitter for auto-indenting your cursor correctly on a new line.

Installation

Paq.nvim

paq{'winston0410/smart-cursor.nvim'}

Configuration

By default no keymapping is set. You have to map require('smart-cursor').indent_cursor() to use this plugin.

Example keybinding

Lua

vim.api.nvim_set_keymap('n', 'o',
		'o<cmd>lua require("smart-cursor").indent_cursor()<cr>',
		{silent = true, noremap = true})

Vim

nnoremap o o<esc><cmd>lua require('smart-cursor').indent_cursor()<cr>

About

Auto-indenting your cursor with treesitter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages