mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
vim-patch:7c3f9af: runtime(misc): unset compiler in various ftplugins
just to foster best practices
closes: vim/vim#15798
7c3f9af0ed
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user