diff --git a/autoload/SpaceVim/layers/core/statuscolumn.vim b/autoload/SpaceVim/layers/core/statuscolumn.vim new file mode 100644 index 000000000..44028f096 --- /dev/null +++ b/autoload/SpaceVim/layers/core/statuscolumn.vim @@ -0,0 +1,29 @@ +"============================================================================= +" statuscolumn.vim --- statuscolumn support for neovim +" Copyright (c) 2016-2019 Wang Shidong & Contributors +" Author: Wang Shidong < wsdjeg@outlook.com > +" URL: https://spacevim.org +" License: GPLv3 +"============================================================================= + +"" +" @section core#statuscolumn, layers-core-statuscolumn +" @parentsection layers +" This layer provides a simple statuscolumn for SpaceVim and is disabled by +" default. +" +" To enable this layer, add following section to your configuration file. +" > +" [[layers]] +" name = 'core#statuscolumn' +" enable = true +" < + +function! SpaceVim#layers#core#statuscolumn#config() abort + let &stc='%{substitute(v:lnum,"\\d\\zs\\ze\\' + \ . '%(\\d\\d\\d\\)\\+$",",","g")}' +endfunction +function! SpaceVim#layers#core#statuscolumn#loadable() abort + return exists('+statuscolumn') +endfunction + diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 76eaa703b..b796f4728 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -103,144 +103,145 @@ CONTENTS *SpaceVim-contents* 5. checkers...................................|SpaceVim-layers-checkers| 6. colorscheme.............................|SpaceVim-layers-colorscheme| 7. core...........................................|SpaceVim-layers-core| - 8. core#statusline.....................|SpaceVim-layers-core-statusline| - 9. core#tabline...........................|SpaceVim-layers-core-tabline| - 10. cscope......................................|SpaceVim-layers-cscope| - 11. ctrlp........................................|SpaceVim-layers-ctrlp| - 12. debug........................................|SpaceVim-layers-debug| - 13. edit..........................................|SpaceVim-layers-edit| - 14. exprfold..................................|SpaceVim-layers-exprfold| - 15. foldsearch..............................|SpaceVim-layers-foldsearch| - 16. format......................................|SpaceVim-layers-format| - 17. framework#django..................|SpaceVim-layers-framework-django| - 18. fzf............................................|SpaceVim-layers-fzf| - 19. git............................................|SpaceVim-layers-git| - 20. github......................................|SpaceVim-layers-github| - 21. gtags........................................|SpaceVim-layers-gtags| - 22. incsearch................................|SpaceVim-layers-incsearch| - 23. indentmove..............................|SpaceVim-layers-indentmove| - 24. lang#WebAssembly..................|SpaceVim-layers-lang-WebAssembly| - 25. lang#actionscript................|SpaceVim-layers-lang-actionscript| - 26. lang#agda................................|SpaceVim-layers-lang-agda| - 27. lang#asciidoc........................|SpaceVim-layers-lang-asciidoc| - 28. lang#aspectj..........................|SpaceVim-layers-lang-aspectj| - 29. lang#assembly........................|SpaceVim-layers-lang-assembly| - 30. lang#autohotkey....................|SpaceVim-layers-lang-autohotkey| - 31. lang#autoit............................|SpaceVim-layers-lang-autoit| - 32. lang#batch..............................|SpaceVim-layers-lang-batch| - 33. lang#c......................................|SpaceVim-layers-lang-c| - 34. lang#chapel............................|SpaceVim-layers-lang-chapel| - 35. lang#clojure..........................|SpaceVim-layers-lang-clojure| - 36. lang#cmake..............................|SpaceVim-layers-lang-cmake| - 37. lang#coffeescript................|SpaceVim-layers-lang-coffeescript| - 38. lang#crystal..........................|SpaceVim-layers-lang-crystal| - 39. lang#csharp............................|SpaceVim-layers-lang-csharp| - 40. lang#d......................................|SpaceVim-layers-lang-d| - 41. lang#dart................................|SpaceVim-layers-lang-dart| - 42. lang#dockerfile....................|SpaceVim-layers-lang-dockerfile| - 43. lang#e......................................|SpaceVim-layers-lang-e| - 44. lang#eiffel............................|SpaceVim-layers-lang-eiffel| - 45. lang#elixir............................|SpaceVim-layers-lang-elixir| - 46. lang#elm..................................|SpaceVim-layers-lang-elm| - 47. lang#erlang............................|SpaceVim-layers-lang-erlang| - 48. lang#extra..............................|SpaceVim-layers-lang-extra| - 49. lang#fennel............................|SpaceVim-layers-lang-fennel| - 50. lang#forth..............................|SpaceVim-layers-lang-forth| - 51. lang#fortran..........................|SpaceVim-layers-lang-fortran| - 52. lang#foxpro............................|SpaceVim-layers-lang-foxpro| - 53. lang#fsharp............................|SpaceVim-layers-lang-fsharp| - 54. lang#go....................................|SpaceVim-layers-lang-go| - 55. lang#goby................................|SpaceVim-layers-lang-goby| - 56. lang#gosu................................|SpaceVim-layers-lang-gosu| - 57. lang#graphql..........................|SpaceVim-layers-lang-graphql| - 58. lang#groovy............................|SpaceVim-layers-lang-groovy| - 59. lang#hack................................|SpaceVim-layers-lang-hack| - 60. lang#haskell..........................|SpaceVim-layers-lang-haskell| - 61. lang#haxe................................|SpaceVim-layers-lang-haxe| - 62. lang#html................................|SpaceVim-layers-lang-html| - 63. lang#hy....................................|SpaceVim-layers-lang-hy| - 64. lang#idris..............................|SpaceVim-layers-lang-idris| - 65. lang#io....................................|SpaceVim-layers-lang-io| - 66. lang#j......................................|SpaceVim-layers-lang-j| - 67. lang#janet..............................|SpaceVim-layers-lang-janet| - 68. lang#java................................|SpaceVim-layers-lang-java| - 69. lang#javascript....................|SpaceVim-layers-lang-javascript| - 70. lang#jr....................................|SpaceVim-layers-lang-jr| - 71. lang#json................................|SpaceVim-layers-lang-json| - 72. lang#jsonnet..........................|SpaceVim-layers-lang-jsonnet| - 73. lang#julia..............................|SpaceVim-layers-lang-julia| - 74. lang#kotlin............................|SpaceVim-layers-lang-kotlin| - 75. lang#lasso..............................|SpaceVim-layers-lang-lasso| - 76. lang#latex..............................|SpaceVim-layers-lang-latex| - 77. lang#liquid............................|SpaceVim-layers-lang-liquid| - 78. lang#lisp................................|SpaceVim-layers-lang-lisp| - 79. lang#livescript....................|SpaceVim-layers-lang-livescript| - 80. lang#lua..................................|SpaceVim-layers-lang-lua| - 81. lang#markdown........................|SpaceVim-layers-lang-markdown| - 82. lang#moonscript....................|SpaceVim-layers-lang-moonscript| - 83. lang#nim..................................|SpaceVim-layers-lang-nim| - 84. lang#nix..................................|SpaceVim-layers-lang-nix| - 85. lang#ocaml..............................|SpaceVim-layers-lang-ocaml| - 86. lang#octave............................|SpaceVim-layers-lang-octave| - 87. lang#pact................................|SpaceVim-layers-lang-pact| - 88. lang#pascal............................|SpaceVim-layers-lang-pascal| - 89. lang#perl................................|SpaceVim-layers-lang-perl| - 90. lang#php..................................|SpaceVim-layers-lang-php| - 91. lang#plantuml........................|SpaceVim-layers-lang-plantuml| - 92. lang#pony................................|SpaceVim-layers-lang-pony| - 93. lang#postscript....................|SpaceVim-layers-lang-postscript| - 94. lang#processing....................|SpaceVim-layers-lang-processing| - 95. lang#prolog............................|SpaceVim-layers-lang-prolog| - 96. lang#puppet............................|SpaceVim-layers-lang-puppet| - 97. lang#purescript....................|SpaceVim-layers-lang-purescript| - 98. lang#python............................|SpaceVim-layers-lang-python| - 99. lang#r......................................|SpaceVim-layers-lang-r| - 100. lang#racket...........................|SpaceVim-layers-lang-racket| - 101. lang#racket..............................|SpaceVim-layers-lang-red| - 102. lang#reason...........................|SpaceVim-layers-lang-reason| - 103. lang#ring...............................|SpaceVim-layers-lang-ring| - 104. lang#ruby...............................|SpaceVim-layers-lang-ruby| - 105. lang#rust...............................|SpaceVim-layers-lang-rust| - 106. lang#scala.............................|SpaceVim-layers-lang-scala| - 107. lang#scheme...........................|SpaceVim-layers-lang-scheme| - 108. lang#sh...................................|SpaceVim-layers-lang-sh| - 109. lang#smalltalk.....................|SpaceVim-layers-lang-smalltalk| - 110. lang#sml.................................|SpaceVim-layers-lang-sml| - 111. lang#swift.............................|SpaceVim-layers-lang-swift| - 112. lang#swig...............................|SpaceVim-layers-lang-swig| - 113. lang#tcl.................................|SpaceVim-layers-lang-tcl| - 114. lang#teal...............................|SpaceVim-layers-lang-teal| - 115. lang#toml...............................|SpaceVim-layers-lang-toml| - 116. lang#typescript...................|SpaceVim-layers-lang-typescript| - 117. lang#v.....................................|SpaceVim-layers-lang-v| - 118. lang#vala...............................|SpaceVim-layers-lang-vala| - 119. lang#vbnet.............................|SpaceVim-layers-lang-vbnet| - 120. lang#verilog.........................|SpaceVim-layers-lang-verilog| - 121. lang#vim.................................|SpaceVim-layers-lang-vim| - 122. lang#vue.................................|SpaceVim-layers-lang-vue| - 123. lang#wdl.................................|SpaceVim-layers-lang-wdl| - 124. lang#wolfram.........................|SpaceVim-layers-lang-wolfram| - 125. lang#xml.................................|SpaceVim-layers-lang-xml| - 126. lang#xquery...........................|SpaceVim-layers-lang-xquery| - 127. lang#yang...............................|SpaceVim-layers-lang-yang| - 128. lang#zig.................................|SpaceVim-layers-lang-zig| - 129. language server protocol......................|SpaceVim-layers-lsp| - 130. leaderf...................................|SpaceVim-layers-leaderf| - 131. mail.........................................|SpaceVim-layers-mail| - 132. operator.................................|SpaceVim-layers-operator| - 133. shell.......................................|SpaceVim-layers-shell| - 134. ssh...........................................|SpaceVim-layers-ssh| - 135. telescope...............................|SpaceVim-layers-telescope| - 136. test.........................................|SpaceVim-layers-test| - 137. tmux.........................................|SpaceVim-layers-tmux| - 138. tools#dash.............................|SpaceVim-layers-tools-dash| - 139. tools#mpv...............................|SpaceVim-layers-tools-mpv| - 140. tools#screensaver...............|SpaceVim-layers-tools-screensaver| - 141. tools#zeal.............................|SpaceVim-layers-tools-zeal| - 142. treesitter.............................|SpaceVim-layers-treesitter| - 143. ui.............................................|SpaceVim-layers-ui| - 144. unite.......................................|SpaceVim-layers-unite| - 145. xmake.......................................|SpaceVim-layers-xmake| + 8. core#statuscolumn.................|SpaceVim-layers-core-statuscolumn| + 9. core#statusline.....................|SpaceVim-layers-core-statusline| + 10. core#tabline..........................|SpaceVim-layers-core-tabline| + 11. cscope......................................|SpaceVim-layers-cscope| + 12. ctrlp........................................|SpaceVim-layers-ctrlp| + 13. debug........................................|SpaceVim-layers-debug| + 14. edit..........................................|SpaceVim-layers-edit| + 15. exprfold..................................|SpaceVim-layers-exprfold| + 16. foldsearch..............................|SpaceVim-layers-foldsearch| + 17. format......................................|SpaceVim-layers-format| + 18. framework#django..................|SpaceVim-layers-framework-django| + 19. fzf............................................|SpaceVim-layers-fzf| + 20. git............................................|SpaceVim-layers-git| + 21. github......................................|SpaceVim-layers-github| + 22. gtags........................................|SpaceVim-layers-gtags| + 23. incsearch................................|SpaceVim-layers-incsearch| + 24. indentmove..............................|SpaceVim-layers-indentmove| + 25. lang#WebAssembly..................|SpaceVim-layers-lang-WebAssembly| + 26. lang#actionscript................|SpaceVim-layers-lang-actionscript| + 27. lang#agda................................|SpaceVim-layers-lang-agda| + 28. lang#asciidoc........................|SpaceVim-layers-lang-asciidoc| + 29. lang#aspectj..........................|SpaceVim-layers-lang-aspectj| + 30. lang#assembly........................|SpaceVim-layers-lang-assembly| + 31. lang#autohotkey....................|SpaceVim-layers-lang-autohotkey| + 32. lang#autoit............................|SpaceVim-layers-lang-autoit| + 33. lang#batch..............................|SpaceVim-layers-lang-batch| + 34. lang#c......................................|SpaceVim-layers-lang-c| + 35. lang#chapel............................|SpaceVim-layers-lang-chapel| + 36. lang#clojure..........................|SpaceVim-layers-lang-clojure| + 37. lang#cmake..............................|SpaceVim-layers-lang-cmake| + 38. lang#coffeescript................|SpaceVim-layers-lang-coffeescript| + 39. lang#crystal..........................|SpaceVim-layers-lang-crystal| + 40. lang#csharp............................|SpaceVim-layers-lang-csharp| + 41. lang#d......................................|SpaceVim-layers-lang-d| + 42. lang#dart................................|SpaceVim-layers-lang-dart| + 43. lang#dockerfile....................|SpaceVim-layers-lang-dockerfile| + 44. lang#e......................................|SpaceVim-layers-lang-e| + 45. lang#eiffel............................|SpaceVim-layers-lang-eiffel| + 46. lang#elixir............................|SpaceVim-layers-lang-elixir| + 47. lang#elm..................................|SpaceVim-layers-lang-elm| + 48. lang#erlang............................|SpaceVim-layers-lang-erlang| + 49. lang#extra..............................|SpaceVim-layers-lang-extra| + 50. lang#fennel............................|SpaceVim-layers-lang-fennel| + 51. lang#forth..............................|SpaceVim-layers-lang-forth| + 52. lang#fortran..........................|SpaceVim-layers-lang-fortran| + 53. lang#foxpro............................|SpaceVim-layers-lang-foxpro| + 54. lang#fsharp............................|SpaceVim-layers-lang-fsharp| + 55. lang#go....................................|SpaceVim-layers-lang-go| + 56. lang#goby................................|SpaceVim-layers-lang-goby| + 57. lang#gosu................................|SpaceVim-layers-lang-gosu| + 58. lang#graphql..........................|SpaceVim-layers-lang-graphql| + 59. lang#groovy............................|SpaceVim-layers-lang-groovy| + 60. lang#hack................................|SpaceVim-layers-lang-hack| + 61. lang#haskell..........................|SpaceVim-layers-lang-haskell| + 62. lang#haxe................................|SpaceVim-layers-lang-haxe| + 63. lang#html................................|SpaceVim-layers-lang-html| + 64. lang#hy....................................|SpaceVim-layers-lang-hy| + 65. lang#idris..............................|SpaceVim-layers-lang-idris| + 66. lang#io....................................|SpaceVim-layers-lang-io| + 67. lang#j......................................|SpaceVim-layers-lang-j| + 68. lang#janet..............................|SpaceVim-layers-lang-janet| + 69. lang#java................................|SpaceVim-layers-lang-java| + 70. lang#javascript....................|SpaceVim-layers-lang-javascript| + 71. lang#jr....................................|SpaceVim-layers-lang-jr| + 72. lang#json................................|SpaceVim-layers-lang-json| + 73. lang#jsonnet..........................|SpaceVim-layers-lang-jsonnet| + 74. lang#julia..............................|SpaceVim-layers-lang-julia| + 75. lang#kotlin............................|SpaceVim-layers-lang-kotlin| + 76. lang#lasso..............................|SpaceVim-layers-lang-lasso| + 77. lang#latex..............................|SpaceVim-layers-lang-latex| + 78. lang#liquid............................|SpaceVim-layers-lang-liquid| + 79. lang#lisp................................|SpaceVim-layers-lang-lisp| + 80. lang#livescript....................|SpaceVim-layers-lang-livescript| + 81. lang#lua..................................|SpaceVim-layers-lang-lua| + 82. lang#markdown........................|SpaceVim-layers-lang-markdown| + 83. lang#moonscript....................|SpaceVim-layers-lang-moonscript| + 84. lang#nim..................................|SpaceVim-layers-lang-nim| + 85. lang#nix..................................|SpaceVim-layers-lang-nix| + 86. lang#ocaml..............................|SpaceVim-layers-lang-ocaml| + 87. lang#octave............................|SpaceVim-layers-lang-octave| + 88. lang#pact................................|SpaceVim-layers-lang-pact| + 89. lang#pascal............................|SpaceVim-layers-lang-pascal| + 90. lang#perl................................|SpaceVim-layers-lang-perl| + 91. lang#php..................................|SpaceVim-layers-lang-php| + 92. lang#plantuml........................|SpaceVim-layers-lang-plantuml| + 93. lang#pony................................|SpaceVim-layers-lang-pony| + 94. lang#postscript....................|SpaceVim-layers-lang-postscript| + 95. lang#processing....................|SpaceVim-layers-lang-processing| + 96. lang#prolog............................|SpaceVim-layers-lang-prolog| + 97. lang#puppet............................|SpaceVim-layers-lang-puppet| + 98. lang#purescript....................|SpaceVim-layers-lang-purescript| + 99. lang#python............................|SpaceVim-layers-lang-python| + 100. lang#r.....................................|SpaceVim-layers-lang-r| + 101. lang#racket...........................|SpaceVim-layers-lang-racket| + 102. lang#racket..............................|SpaceVim-layers-lang-red| + 103. lang#reason...........................|SpaceVim-layers-lang-reason| + 104. lang#ring...............................|SpaceVim-layers-lang-ring| + 105. lang#ruby...............................|SpaceVim-layers-lang-ruby| + 106. lang#rust...............................|SpaceVim-layers-lang-rust| + 107. lang#scala.............................|SpaceVim-layers-lang-scala| + 108. lang#scheme...........................|SpaceVim-layers-lang-scheme| + 109. lang#sh...................................|SpaceVim-layers-lang-sh| + 110. lang#smalltalk.....................|SpaceVim-layers-lang-smalltalk| + 111. lang#sml.................................|SpaceVim-layers-lang-sml| + 112. lang#swift.............................|SpaceVim-layers-lang-swift| + 113. lang#swig...............................|SpaceVim-layers-lang-swig| + 114. lang#tcl.................................|SpaceVim-layers-lang-tcl| + 115. lang#teal...............................|SpaceVim-layers-lang-teal| + 116. lang#toml...............................|SpaceVim-layers-lang-toml| + 117. lang#typescript...................|SpaceVim-layers-lang-typescript| + 118. lang#v.....................................|SpaceVim-layers-lang-v| + 119. lang#vala...............................|SpaceVim-layers-lang-vala| + 120. lang#vbnet.............................|SpaceVim-layers-lang-vbnet| + 121. lang#verilog.........................|SpaceVim-layers-lang-verilog| + 122. lang#vim.................................|SpaceVim-layers-lang-vim| + 123. lang#vue.................................|SpaceVim-layers-lang-vue| + 124. lang#wdl.................................|SpaceVim-layers-lang-wdl| + 125. lang#wolfram.........................|SpaceVim-layers-lang-wolfram| + 126. lang#xml.................................|SpaceVim-layers-lang-xml| + 127. lang#xquery...........................|SpaceVim-layers-lang-xquery| + 128. lang#yang...............................|SpaceVim-layers-lang-yang| + 129. lang#zig.................................|SpaceVim-layers-lang-zig| + 130. language server protocol......................|SpaceVim-layers-lsp| + 131. leaderf...................................|SpaceVim-layers-leaderf| + 132. mail.........................................|SpaceVim-layers-mail| + 133. operator.................................|SpaceVim-layers-operator| + 134. shell.......................................|SpaceVim-layers-shell| + 135. ssh...........................................|SpaceVim-layers-ssh| + 136. telescope...............................|SpaceVim-layers-telescope| + 137. test.........................................|SpaceVim-layers-test| + 138. tmux.........................................|SpaceVim-layers-tmux| + 139. tools#dash.............................|SpaceVim-layers-tools-dash| + 140. tools#mpv...............................|SpaceVim-layers-tools-mpv| + 141. tools#screensaver...............|SpaceVim-layers-tools-screensaver| + 142. tools#zeal.............................|SpaceVim-layers-tools-zeal| + 143. treesitter.............................|SpaceVim-layers-treesitter| + 144. ui.............................................|SpaceVim-layers-ui| + 145. unite.......................................|SpaceVim-layers-unite| + 146. xmake.......................................|SpaceVim-layers-xmake| 7. Usage....................................................|SpaceVim-usage| 1. alternate file........................|SpaceVim-usage-alternate-file| 2. buffers-and-files..................|SpaceVim-usage-buffers-and-files| @@ -1908,6 +1909,19 @@ has been deprecated. Use layer option instead. *g:spacevim_enable_vimfiler_gitstatus* *g:spacevim_enable_filetree_gitstatus* *g:spacevim_enable_vimfiler_filetypeicon* +============================================================================== +CORE#STATUSCOLUMN *SpaceVim-layers-core-statuscolumn* + +This layer provides a simple statuscolumn for SpaceVim and is disabled by +default. + +To enable this layer, add following section to your configuration file. +> + [[layers]] + name = 'core#statuscolumn' + enable = true +< + ============================================================================== CORE#STATUSLINE *SpaceVim-layers-core-statusline*