pkgs: vim: add vim-detectindent
This commit is contained in:
parent
723ddbb8c9
commit
8c350b3d47
1 changed files with 38 additions and 0 deletions
|
@ -78,3 +78,41 @@ configurable.
|
|||
@end itemize")
|
||||
(home-page "https://www.vim.org/scripts/script.php?script_id=987")
|
||||
(license #f)))
|
||||
|
||||
(define-public vim-detectindent
|
||||
;; No releases have been tagged.
|
||||
(let ((commit "2511f0f02fb046a09fdbdfc8f21c7a6f2d234936")
|
||||
(revision "1"))
|
||||
(package
|
||||
(name "vim-detectindent")
|
||||
(version (git-version "0.0.0" revision commit))
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/roryokane/detectindent")
|
||||
(commit commit)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"16k3h64z4ysphchnhgj3jyms51ps0lla885yqznfbknz49pg44cb"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
`(#:install-plan '(("doc" "share/vim/vimfiles/")
|
||||
("plugin" "share/vim/vimfiles/"))))
|
||||
(home-page "https://github.com/roryokane/detectindent")
|
||||
(synopsis "Vim script for automatically detecting indent settings")
|
||||
(description
|
||||
"This script provides a command which will attempt to guess the correct
|
||||
indent settings for an open file, for use when there is no modeline
|
||||
available. Specifically, the command sets the following buffer-local
|
||||
options for you:
|
||||
@itemize
|
||||
@item 'expandtab' (tabs vs. spaces)
|
||||
@item 'shiftwidth' (width of indentation)
|
||||
@item 'tabstop' (width of a tab character)
|
||||
@item 'softtabstop' (number of spaces that Tab inserts)
|
||||
@end itemize
|
||||
|
||||
Note that this is a pure Vim implementation, and doesn’t require any external
|
||||
applications or interpreters.")
|
||||
(license #f))))
|
||||
|
|
Loading…
Reference in a new issue