HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/ubuntu/neovim/runtime/ftplugin/zig.vim
" Vim filetype plugin file
" Language:     Zig
" Maintainer:   Mathias Lindgren <math.lindgren@gmail.com>
" Last Change:  2024 May 21
" Based on:     https://github.com/ziglang/zig.vim

if exists("b:did_ftplugin")
  finish
endif

let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

compiler zig_build

" Match Zig builtin fns
setlocal iskeyword+=@-@
setlocal formatoptions-=t formatoptions+=croql
setlocal suffixesadd=.zig,.zir,.zon
let &l:define='\v(<fn>|<const>|<var>|^\s*\#\s*define)'
let b:undo_ftplugin = 'setl isk< fo< sua< mp< def<'

if get(g:, 'zig_recommended_style', 1)
    setlocal expandtab
    setlocal tabstop=8
    setlocal softtabstop=4
    setlocal shiftwidth=4
    let b:undo_ftplugin .= ' | setl et< ts< sts< sw<'
endif

if has('comments')
    setlocal comments=:///,://!,://
    setlocal commentstring=//\ %s
    let b:undo_ftplugin .= ' | setl com< cms<'
endif

if has('find_in_path')
    let &l:includeexpr='substitute(v:fname, "^([^.])$", "\1.zig", "")'
    let &l:include='\v(\@import>|\@cInclude>|^\s*\#\s*include)'
    let b:undo_ftplugin .= ' | setl inex< inc<'
endif

if exists('g:zig_std_dir')
    let &l:path .= ',' . g:zig_std_dir
    let b:undo_ftplugin .= ' | setl pa<'
endif

let &cpo = s:cpo_save
unlet s:cpo_save
" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab