diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-28 18:28:56 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-28 18:28:56 +0200 |
commit | f431aee86e51cb416ee83f895526d0ea46e46e5e (patch) | |
tree | 7ece8278b8ce20638584233c4c578b13913a8f65 /ftplugin | |
parent | 6a086b0c797f703b713bc887b1a4cee5a70d01ec (diff) | |
download | vim-polyglot-f431aee86e51cb416ee83f895526d0ea46e46e5e.tar.gz vim-polyglot-f431aee86e51cb416ee83f895526d0ea46e46e5e.zip |
Change less provider, closes #567
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/less.vim | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/ftplugin/less.vim b/ftplugin/less.vim index ecb060b9..2a8ff172 100644 --- a/ftplugin/less.vim +++ b/ftplugin/less.vim @@ -1,10 +1,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1 " Vim filetype plugin -" Language: LessCSS -" Author: Tim Pope <vimNOSPAM@tpope.org> -" Maintainer: Leonard Ehrenfried <leonard.ehrenfried@web.de> -" Last Change: 2011 Sep 30 +" Language: less +" Maintainer: Alessandro Vioni <jenoma@gmail.com> +" URL: https://github.com/genoma/vim-less +" Last Change: 2014 November 24 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -14,17 +14,11 @@ let b:did_ftplugin = 1 let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<" -setlocal iskeyword+=- -setlocal commentstring=//%s -setlocal define=^\\s*\\%(@mixin\\\|=\\) -setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','') -setlocal omnifunc=csscomplete#CompleteCSS -setlocal suffixesadd=.less -setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,:// -setlocal fo=croql +setlocal formatoptions-=t formatoptions+=croql -let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\=' +setlocal comments=:// commentstring=//\ %s -" vim:set sw=2: +setlocal omnifunc=csscomplete#CompleteCSS +setlocal suffixesadd=.less endif |