Skip to content

A Vim/Neovim plugin to detect indentation options automatically powered by denops.vim

License

Notifications You must be signed in to change notification settings

kg8m/vim-detect-indent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno 1.45.0+ Vim 9.0.1499+ Neovim 0.8.0+ MIT License test

vim-detect-indent

A Vim/Neovim plugin to detect indentation options automatically powered by denops.vim.

Usage

Once you install this plugin, indentation options will be detected automatically.

If you want to customize its behavior, see the documentation.

Similar Plugins / Algorithm

There are great existing similar plugins. For example:

vim-detect-indent uses a simpler algorithm: it determines indentation based on the majority of indented lines. If lines are indented with hard tabs, noexpandtab will be set. If spaces are used, expandtab and shiftwidth={n} will be applied. vim-detect-indent’s behavior is predictable due to its straightforward algorithm. While it may not cover all indentation scenarios, it is designed to work well in many common cases.

Installation

For dein.vim users:

call dein#add("kg8m/vim-detect-indent")

For vim-plug users:

Plug 'kg8m/vim-detect-indent'

Requirements

  • Deno
  • denops.vim
  • Vim or Neovim

Supported version of Deno, Vim, and Neovim depends on denops.vim. Please see denops.vim’s README.

About

A Vim/Neovim plugin to detect indentation options automatically powered by denops.vim

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project