aboutsummaryrefslogtreecommitdiffstats
path: root/shino
diff options
context:
space:
mode:
authorRenken <renken@shione.net>2022-08-09 22:20:06 +0200
committerRenken <renken@shione.net>2022-08-09 22:34:47 +0200
commit8c350b3d475491dc672a1d55f7ed9b4c21113860 (patch)
treea1e936418df954699bbb7a544feedac1a15d0142 /shino
parent723ddbb8c9c3de41bdd80704bab8fb823b7b3264 (diff)
downloadshione-8c350b3d475491dc672a1d55f7ed9b4c21113860.tar.gz
shione-8c350b3d475491dc672a1d55f7ed9b4c21113860.zip
pkgs: vim: add vim-detectindent
Diffstat (limited to 'shino')
-rw-r--r--shino/packages/vim.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/shino/packages/vim.scm b/shino/packages/vim.scm
index 328b544..a1f9c7e 100644
--- a/shino/packages/vim.scm
+++ b/shino/packages/vim.scm
@@ -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))))