Skip to content

Commit 0f26c3a

Browse files
committed
after/syntax/rust.vim: lint fixes
1 parent c6ffafc commit 0f26c3a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: after/syntax/rust.vim

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
if !get(g:, 'rust_conceal', 0) || !has('conceal') || &enc != 'utf-8'
1+
scriptencoding utf-8
2+
3+
if !get(g:, 'rust_conceal', 0) || !has('conceal') || &encoding !=# 'utf-8'
24
finish
35
endif
46

@@ -29,8 +31,11 @@ hi link rustNiceOperator Operator
2931
if !get(g:, 'rust_conceal_mod_path', 0)
3032
hi! link Conceal Operator
3133

32-
" And keep it after a colorscheme change
33-
au ColorScheme <buffer> hi! link Conceal Operator
34+
augroup rust.vim.after
35+
autocmd!
36+
" And keep it after a colorscheme change
37+
autocmd ColorScheme <buffer> hi! link Conceal Operator
38+
augroup END
3439
endif
3540

3641
" vim: set et sw=4 sts=4 ts=8:

0 commit comments

Comments
 (0)