mirror of
https://github.com/neovim/neovim.git
synced 2026-11-06 13:26:57 +00:00
Remove "ro" from 'formatoptions'. The universal selector "*" cannot be disambiguated from the 'comments' middle "*" pattern, causing spurious "*" characters to be inserted after selector lines. fixes: vim/vim#15140 closes: vim/vim#21125 https://github.com/vim/vim/commit/8331682f802455c868fc52ba09f7a8472cd0feea Co-authored-by: Doug Kearns <dougkearns@gmail.com>
24 lines
695 B
VimL
24 lines
695 B
VimL
" Vim filetype plugin file
|
|
" Language: CSS
|
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
" Contributors: Riley Bruins <ribru17@gmail.com> ('commentstring')
|
|
" Last Change: 2026 Aug 22
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
let b:undo_ftplugin = "setl com< cms< inc< fo< ofu< isk<"
|
|
|
|
setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*\ %s\ */
|
|
" exclude "ro" - CSS universal selector "*" cannot be distinguished from
|
|
" 'comments' middle "*" pattern
|
|
setlocal formatoptions-=rot formatoptions+=cql
|
|
setlocal omnifunc=csscomplete#CompleteCSS
|
|
setlocal iskeyword+=-
|
|
|
|
let &l:include = '^\s*@import\s\+\%(url(\)\='
|
|
|