robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Barrett Ruthfix(ftplugin): source inherited Lua ftplugins0bb2f5cc08

master
951 B32 linesraw
1" Vim filetype plugin file
2" Language:	Pyrex
3" Maintainer:	Marco Barisione <marco.bari@people.it>
4" URL:		http://marcobari.altervista.org/pyrex_vim.html
5" Last Change:	2012 May 18
6"		2024 Jan 14 by Vim Project (browsefilter)
7
8" Only do this when not done yet for this buffer
9if exists("b:did_ftplugin")
10  finish
11endif
12let s:keepcpo= &cpo
13set cpo&vim
14
15" Behaves just like Python
16runtime! ftplugin/python[.]{vim,lua} ftplugin/python_*.{vim,lua} ftplugin/python/*.{vim,lua}
17
18if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
19    let  b:browsefilter = "Pyrex files (*.pyx, *.pxd)\t*.pyx;*.pxd\n" .
20			\ "Python Files (*.py)\t*.py\n" .
21			\ "C Source Files (*.c)\t*.c\n" .
22			\ "C Header Files (*.h)\t*.h\n" .
23			\ "C++ Source Files (*.cpp, *.c++)\t*.cpp;*.c++\n"
24    if has("win32")
25	let b:browsefilter .= "All Files (*.*)\t*\n"
26    else
27	let b:browsefilter .= "All Files (*)\t*\n"
28    endif
29endif
30
31let &cpo = s:keepcpo
32unlet s:keepcpo