runtime(misc): unset compiler in various ftplugins

just to foster best practices

closes: #15798

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Konfekt
2024-10-05 17:26:46 +02:00
committed by Christian Brabandt
parent 89872f58a9
commit 7c3f9af0ed
8 changed files with 43 additions and 19 deletions

View File

@ -1,7 +1,7 @@
" Vim filetype plugin.
" Language: Hare
" Maintainer: Amelia Clarke <selene@perilune.dev>
" Last Updated: 2024-05-10
" Last Updated: 2024 Oct 04
" Upstream: https://git.sr.ht/~sircmpwn/hare.vim
if exists('b:did_ftplugin')
@ -12,9 +12,6 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
" Set the default compiler.
compiler hare
" Formatting settings.
setlocal comments=://
setlocal commentstring=//\ %s
@ -53,6 +50,11 @@ augroup hare.vim
endif
augroup END
if !exists('current_compiler')
let b:undo_ftplugin .= "| compiler make"
compiler hare
endif
let &cpo = s:cpo_save
unlet s:cpo_save