text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: runtime/keymap/persian.vim
let encoding = &enc
if encoding == ''
let encoding = 'utf-8'
endif
if encoding == 'utf-8'
source <sfile>:p:h/persian-iranian_utf-8.vim
endif
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/persian.vim", "license": "mit", "size": 144} |
### File: runtime/keymap/pinyin.vim
" Vim Keymap file for Hanyu Pinyin tone marks through numbers.
" Maintainer: Fredrik Roubert <fredrik@roubert.name>
" Last Changed: February 15, 2004
" All characters are given literally.
scriptencoding utf-8
" Use this short name in the status line.
let b:keymap_name = "py"
loadk... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/pinyin.vim", "license": "mit", "size": 539} |
### File: runtime/keymap/polish-slash.vim
" Polish letters under VIM >= 6
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last changed: 2005 Jan 12
" Current version: 1.0.2
" History:
" 2005.01.12 1.0.2 keymap_name shortened, added Current version, History
" 2005.01.10 1.0.1 un*x line ends for all files
" 2005.01.09 1.0.0 I... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/polish-slash.vim", "license": "mit", "size": 709} |
### File: runtime/keymap/polish-slash_cp1250.vim
" Polish letters keymap for cp1250
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: see polish-slash.vim
" This keymap adds the special Polish letters
" to an existing Latin keyboard.
" All chars as usual except:
" Poli... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/polish-slash_cp1250.vim", "license": "mit", "size": 1372} |
### File: runtime/keymap/polish-slash_cp852.vim
" Polish letters keymap for cp852
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: see polish-slash.vim
" This keymap adds the special Polish letters
" to an existing Latin keyboard.
" All chars as usual except:
" Polish... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/polish-slash_cp852.vim", "license": "mit", "size": 1371} |
### File: runtime/keymap/polish-slash_iso-8859-2.vim
" Polish letters keymap for iso-8859-2
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: polish-slash.vim
" This keymap adds the special Polish letters
" to an existing Latin keyboard.
" All chars as usual except:
" ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/polish-slash_iso-8859-2.vim", "license": "mit", "size": 1372} |
### File: runtime/keymap/polish-slash_utf-8.vim
" Polish letters keymap for utf-8
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: see polish-slash.vim
" This keymap adds the special Polish letters
" to an existing Latin keyboard.
" All chars as usual except:
" Polish... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/polish-slash_utf-8.vim", "license": "mit", "size": 1425} |
### File: runtime/keymap/russian-dvorak.vim
" Vim Keymap file for russian characters, layout 'dvorak', MS Windows variant
" Derived from russian-jcuken.vim by Artem Chuprina <ran@ran.pp.ru>
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Serhiy Boiko <cris.kiev@gmail.com>
" Last Changed: 2... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/russian-dvorak.vim", "license": "mit", "size": 2594} |
### File: runtime/keymap/russian-jcuken.vim
" Vim Keymap file for russian characters, layout 'jcuken', classical variant
" (compatible with XFree86 'ru' keymap)
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Artem Chuprina <ran@ran.pp.ru>
" Last Changed: 2001 Jun 23
" All characters are ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/russian-jcuken.vim", "license": "mit", "size": 2535} |
### File: runtime/keymap/russian-jcukenmac.vim
" Vim Keymap file for russian characters, layout 'jcuken', Mac variant
" Derived from russian-jcuken.vim by Artem Chuprina <ran@ran.pp.ru>
" Maintainer: Anton Fonarev <avfonarev@gmail.com>
" Last Changed: 2016 August 17
" All characters are given literally, conversion ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/russian-jcukenmac.vim", "license": "mit", "size": 2813} |
### File: runtime/keymap/russian-jcukenwin.vim
" Vim Keymap file for russian characters, layout 'jcuken', MS Windows variant
" (slightly incompatible with XFree86 'ru' keymap - makes use of NUMERO SIGN)
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Artem Chuprina <ran@ran.pp.ru>
" Last C... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/russian-jcukenwin.vim", "license": "mit", "size": 2588} |
### File: runtime/keymap/russian-jcukenwintype.vim
" Vim Keymap file for russian characters, layout 'jcuken', MS Windows
" Typewriter variant (slightly incompatible with XFree86 'ru' keymap -
" makes use of NUMERO SIGN)
" Useful mainly with utf-8 but may work with other encodings
" Derived from russian-jcuken.vim by A... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/russian-jcukenwintype.vim", "license": "mit", "size": 2800} |
### File: runtime/keymap/russian-typograph.vim
" Vim Keymap file for Russian characters
" layout English-US 104 key 'QWERTY'
"
" Maintainer: Restorer <restorer@mail2k.ru>
" Last Changed: 25 Apr 2023
" Version: 3.3
" Description: описание дано после изображений клавиатуры
" Расположение символов для русского языка ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/russian-typograph.vim", "license": "mit", "size": 17116} |
### File: runtime/keymap/russian-yawerty.vim
" Vim Keymap file for russian characters, phonetic layout 'yawerty'
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Igor Goldenberg <igogold@gmail.com>
" Last Changed: 2007 Aug 15
" All characters are given literally, conversion to another enco... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/russian-yawerty.vim", "license": "mit", "size": 2463} |
### File: runtime/keymap/serbian-latin.vim
source <sfile>:p:h/serbian-latin_utf-8.vim
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/serbian-latin.vim", "license": "mit", "size": 43} |
### File: runtime/keymap/serbian-latin_utf-8.vim
" Vim Keymap file for Serbian characters, classical variant, UTF-8 encoding
"
" Maintainer: Aleksandar Veselinovic <aleksa@cs.cmu.edu>
" URL: http://www.cs.cmu.edu/~aleksa/personal/vim/keymap/serbian-latin-UTF-8.vim
" Last Changed: 2002 Mar 29
scriptencoding UTF-... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/serbian-latin_utf-8.vim", "license": "mit", "size": 556} |
### File: runtime/keymap/serbian.vim
let encoding = &enc
if encoding == 'latin1'
if has("unix")
let encoding = 'iso-8859-2'
else
let encoding = 'cp1250'
endif
endif
if encoding == 'utf-8'
source <sfile>:p:h/serbian_utf-8.vim
elseif encoding == 'cp1250'
source <sfile>:p:h/serbian_cp1250.vim
elseif encod... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/serbian.vim", "license": "mit", "size": 467} |
### File: runtime/keymap/serbian_utf-8.vim
" Vim Keymap file for Serbian characters, classical variant, UTF-8 encoding
"
" Maintainer: Aleksandar Veselinovic <aleksa@cs.cmu.edu>
" URL: http://www.cs.cmu.edu/~aleksa/personal/vim/keymap/serbian-UTF-8.vim
" Last Changed: 2002 Mar 29
scriptencoding UTF-8
let b:key... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/serbian_utf-8.vim", "license": "mit", "size": 793} |
### File: runtime/keymap/sinhala-phonetic_utf-8.vim
" Vim Keymap file for Sinhala (Sri Lanka) (2003-11-02)
" Maintainer : Harshula Jayasuriya <harshula@gmail.com>
" Last Updated: 2007-06-30
" This is a phonetic static mapping for a standard US-English keyboard
" (qwerty)
" http://www.nongnu.org/sinhala/doc/keymaps/sin... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/sinhala-phonetic_utf-8.vim", "license": "mit", "size": 4673} |
### File: runtime/keymap/sinhala.vim
" Vim Keymap file for Sinhala (Sri Lanka)
"
source <sfile>:p:h/sinhala-phonetic_utf-8.vim
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/sinhala.vim", "license": "mit", "size": 90} |
### File: runtime/keymap/slovak.vim
let encoding = &enc
if encoding == 'latin1'
if has("unix")
let encoding = 'iso-8859-2'
else
let encoding = 'cp1250'
endif
endif
if encoding == 'utf-8'
source <sfile>:p:h/slovak_utf-8.vim
elseif encoding == 'cp1250'
source <sfile>:p:h/slovak_cp1250.vim
else
source <s... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/slovak.vim", "license": "mit", "size": 322} |
### File: runtime/keymap/slovak_utf-8.vim
" Maintainer: Peter Valach <pvalach@gmx.net>
" Last Changed: 2002 Nov 5
" URL: http://www.pv2c.sk/free/sk_vimkeymap/
let b:keymap_name = "sk"
loadkeymap
" Z a Y - ak chcete slovensku qwerty, zakomentujte tieto styri riadky
y z
z y
Y Z
Z Y
" Horny riadok
` ;
1 +
! 1
2 ľ
@ 2
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/slovak_utf-8.vim", "license": "mit", "size": 812} |
### File: runtime/keymap/tamil_tscii.vim
" Keymap file for the editing Tamil language files in TSCII encoding.
"
" Maintainer: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
" Last updated: 2006 June 17
"
" You will need a fixed width TSCII font to use this encoding. The
" Avarangal TSCII fixed width font (TSC_Avaran... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/tamil_tscii.vim", "license": "mit", "size": 14811} |
### File: runtime/keymap/thaana-phonetic_utf-8.vim
" thaana keymap
" Maintainer: Ibrahim fayaz <p h a y a x at gmail dot com>
" please set enc to utf-8
" thaana phonetic keyboard is used as a reference
" http://www.mcst.gov.mv/News_and_Events/xpfonts.htm
" changelog: 18th Feb 2006 - came up the initial idea of writing... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/thaana-phonetic_utf-8.vim", "license": "mit", "size": 2822} |
### File: runtime/keymap/thaana.vim
if &enc == 'utf-8'
source <sfile>:p:h/thaana-phonetic_utf-8.vim
endif
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/thaana.vim", "license": "mit", "size": 71} |
### File: runtime/keymap/turkish-f.vim
" Vim keymap file for Turkish F layout
" Maintainer: Emir SARI <bitigchi@me.com>
" Last changed: 5 August 2020
scriptencoding utf-8
let b:keymap_name = "tr-f"
loadkeymap
F A LATIN CAPITAL LETTER A
< B LATIN CAPITAL LETTER B
V C LATIN CAPITAL LETTER C
B Ç LATIN CAPITAL LETTER C W... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/turkish-f.vim", "license": "mit", "size": 2761} |
### File: runtime/keymap/turkish-q.vim
" Vim keymap file for Turkish Q layout
" Maintainer: Emir SARI <bitigchi@me.com>
" Last changed: 5 August 2020
scriptencoding utf-8
let b:keymap_name = "tr-q"
loadkeymap
\> Ç LATIN CAPITAL LETTER C WITH CEDILLA
\{ Ğ LATIN CAPITAL LETTER G WITH BREVE
\" İ LATIN CAPITAL LETTER I W... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/turkish-q.vim", "license": "mit", "size": 1394} |
### File: runtime/keymap/ukrainian-dvorak.vim
" Vim Keymap file for ukrainian characters, layout 'dvorak',
" MS Windows variant
" Derived from ukrainian-jcuken.vim by Anatoli Sakhnik <sakhnik@gmail.com>
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Serhiy Boiko <cris.kiev@gmail.com>
" La... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/ukrainian-dvorak.vim", "license": "mit", "size": 2740} |
### File: runtime/keymap/ukrainian-jcuken.vim
" Vim Keymap file for ukrainian characters, layout 'jcuken', classical variant
" (compatible with XFree86 'uk' keymap)
" Derived from russian-jcuken.vim by Artem Chuprina <ran@ran.pp.ru>
" Useful mainly with utf-8 but may work with other encodings
" Maintainer: Anatoli S... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/ukrainian-jcuken.vim", "license": "mit", "size": 2738} |
### File: runtime/keymap/vietnamese-telex_utf-8.vim
" Vim Keymap file for Vietnamese through Telex method
" Maintainer: Raphael McSinyx <vn.mcsinyx@gmail.com>
" Last Change: 2016-06-13
scriptencoding utf-8
let b:keymap_name = "vi"
loadkeymap
A\\ A
AF À
AS Á
AR Ả
AX Ã
AJ Ạ
AW Ă
AW\\ Ă
AWF Ằ
AWS Ắ
AWR Ẳ
AWX Ẵ
AWJ Ặ
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/vietnamese-telex_utf-8.vim", "license": "mit", "size": 1357} |
### File: runtime/keymap/vietnamese-viqr_utf-8.vim
" Vim Keymap file for vietnamese through the usual viqr method
" Maintainer: Samuel Thibault <samuel.thibault@ens-lyon.org>
" Last Change: 2006 Jun 17
scriptencoding utf-8
let b:keymap_name = "vietnamese"
loadkeymap
a a
A A
a` à
A` À
a? ả
A? Ả
a~ ã
A~ Ã
a' á
A' Á
a.... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/vietnamese-viqr_utf-8.vim", "license": "mit", "size": 1247} |
### File: runtime/keymap/vietnamese-vni_utf-8.vim
" Vim Keymap file for Vietnamese through VNI method
" Maintainer: Raphael McSinyx <vn.mcsinyx@gmail.com>
" Last Change: 2016-06-13
scriptencoding utf-8
let b:keymap_name = "vi"
loadkeymap
A\\ A
A1 Á
A2 À
A3 Ả
A4 Ã
A5 Ạ
A8 Ă
A8\\ Ă
A81 Ắ
A82 Ằ
A83 Ẳ
A84 Ẵ
A85 Ặ
A6 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "runtime/keymap/vietnamese-vni_utf-8.vim", "license": "mit", "size": 1355} |
### File: runtime/lua/coxpcall.lua
-------------------------------------------------------------------------------
-- Coroutine safe xpcall and pcall versions
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- y... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/coxpcall.lua", "license": "mit", "size": 3534} |
### File: runtime/lua/editorconfig.lua
--- @brief
--- Nvim supports EditorConfig. When a file is opened, after running |ftplugin|s
--- and |FileType| autocommands, Nvim searches all parent directories of that file
--- for ".editorconfig" files, parses them, and applies any properties that match
--- the opened file. Thi... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/editorconfig.lua", "license": "mit", "size": 11509} |
### File: runtime/lua/man.lua
local api, fn = vim.api, vim.fn
local FIND_ARG = '-w'
local localfile_arg = true -- Always use -l if possible. #6683
---@type table[]
local buf_hls = {}
local M = {}
local function man_error(msg)
M.errormsg = 'man.lua: ' .. vim.inspect(msg)
error(M.errormsg)
end
-- Run a system co... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/man.lua", "license": "mit", "size": 24419} |
### File: runtime/lua/tohtml.lua
--- @brief
---<pre>help
---:[range]TOhtml {file} *:TOhtml*
---Converts the buffer shown in the current window to HTML, opens the generated
---HTML in a new split window, and saves its contents to {file}. If {file} is not
---given, a tempora... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/tohtml.lua", "license": "mit", "size": 43342} |
### File: runtime/lua/vim/F.lua
local F = {}
--- Returns the first argument which is not nil.
---
--- If all arguments are nil, returns nil.
---
--- Examples:
---
--- ```lua
--- local a = nil
--- local b = nil
--- local c = 42
--- local d = true
--- assert(vim.F.if_nil(a, b, c, d) == 42)
--- ```
---
---@generic T
---@... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/F.lua", "license": "mit", "size": 1102} |
### File: runtime/lua/vim/_comment.lua
---@nodoc
---@class vim._comment.Parts
---@field left string Left part of comment
---@field right string Right part of comment
--- Get 'commentstring' at cursor
---@param ref_position integer[]
---@return string
local function get_commentstring(ref_position)
local buf_cs = vim.... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_comment.lua", "license": "mit", "size": 8768} |
### File: runtime/lua/vim/_defaults.lua
--- Default user commands
do
vim.api.nvim_create_user_command('Inspect', function(cmd)
if cmd.bang then
vim.print(vim.inspect_pos())
else
vim.show_pos()
end
end, { desc = 'Inspect highlights and extmarks at the cursor', bang = true })
vim.api.nvim_c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_defaults.lua", "license": "mit", "size": 21225} |
### File: runtime/lua/vim/_editor.lua
-- Nvim-Lua stdlib: the `vim` module (:help lua-stdlib)
--
-- Lua code lives in one of three places:
-- 1. runtime/lua/vim/ (the runtime): For "nice to have" features, e.g. the
-- `inspect` and `lpeg` modules.
-- 2. runtime/lua/vim/shared.lua: pure Lua functions which a... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_editor.lua", "license": "mit", "size": 36211} |
### File: runtime/lua/vim/_init_packages.lua
local pathtrails = {} --- @type table<string,true> ta
vim._so_trails = {} --- @type string[]
for s in (package.cpath .. ';'):gmatch('[^;]*;') do
s = s:sub(1, -2) -- Strip trailing semicolon
-- Find out path patterns. pathtrail should contain something like
-- /?.so, \?... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_init_packages.lua", "license": "mit", "size": 3096} |
### File: runtime/lua/vim/_inspector.lua
--- @class vim._inspector.Filter
--- @inlinedoc
---
--- Include syntax based highlight groups.
--- (default: `true`)
--- @field syntax boolean
---
--- Include treesitter based highlight groups.
--- (default: `true`)
--- @field treesitter boolean
---
--- Include extmarks. When `a... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_inspector.lua", "license": "mit", "size": 7672} |
### File: runtime/lua/vim/_meta.lua
--- @meta
--- @alias elem_or_list<T> T|T[]
---@type uv
vim.uv = ...
--- The following modules are loaded specially in _init_packages.lua
vim.F = require('vim.F')
vim._watch = require('vim._watch')
vim.diagnostic = require('vim.diagnostic')
vim.filetype = require('vim.filetype')
v... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta.lua", "license": "mit", "size": 1040} |
### File: runtime/lua/vim/_meta/api_keysets_extra.lua
--- @meta _
error('Cannot require a meta file')
--- Extra types we can't generate keysets for
--- @class vim.api.keyset.extmark_details
--- @field ns_id integer
--- @field right_gravity boolean
---
--- @field end_row? integer
--- @field end_col? integer
--- @field... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/api_keysets_extra.lua", "license": "mit", "size": 4624} |
### File: runtime/lua/vim/_meta/base64.lua
--- @meta
--- Encode {str} using Base64.
---
--- @param str string String to encode
--- @return string : Encoded string
function vim.base64.encode(str) end
--- Decode a Base64 encoded string.
---
--- @param str string Base64 encoded string
--- @return string : Decoded string... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/base64.lua", "license": "mit", "size": 314} |
### File: runtime/lua/vim/_meta/builtin.lua
---@meta
-- luacheck: no unused args
error('Cannot require a meta file')
--- @brief <pre>help
--- vim.api.{func}({...}) *vim.api*
--- Invokes Nvim |API| function {func} with arguments {...}.
--- Example: call the "n... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/builtin.lua", "license": "mit", "size": 11471} |
### File: runtime/lua/vim/_meta/builtin_types.lua
--- @class vim.fn.sign
--- @field group string
--- @field id integer
--- @field lnum integer
--- @field name string
--- @field priority integer
--- @class vim.fn.getbufinfo.dict
--- @field buflisted? 0|1
--- @field bufloaded? 0|1
--- @field bufmodified? 0|1
--- @class... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/builtin_types.lua", "license": "mit", "size": 3571} |
### File: runtime/lua/vim/_meta/diff.lua
---@meta
--- Optional parameters:
--- @class vim.diff.Opts
--- @inlinedoc
---
--- Invoked for each hunk in the diff. Return a negative number
--- to cancel the callback for any remaining hunks.
--- Arguments:
--- - `start_a` (`integer`): Start line of hunk in {a}.
--- - `co... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/diff.lua", "license": "mit", "size": 2539} |
### File: runtime/lua/vim/_meta/json.lua
---@meta
---@nodoc
vim.json = {}
-- luacheck: no unused args
---@brief
---
--- This module provides encoding and decoding of Lua objects to and
--- from JSON-encoded strings. Supports |vim.NIL| and |vim.empty_dict()|.
--- Decodes (or "unpacks") the JSON-encoded {str} to a Lu... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/json.lua", "license": "mit", "size": 1392} |
### File: runtime/lua/vim/_meta/lpeg.lua
--- @meta
error('Cannot require a meta file')
-- These types were taken from https://github.com/LuaCATS/lpeg
-- (based on revision 33f4ff5343a64cf613a0634d70092fbc2b64291b)
-- with types being renamed to include the vim namespace and with some descriptions made less verbose.
-... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/lpeg.lua", "license": "mit", "size": 15716} |
### File: runtime/lua/vim/_meta/misc.lua
---@meta
-- luacheck: no unused args
--- Invokes |vim-function| or |user-function| {func} with arguments {...}.
--- See also |vim.fn|.
--- Equivalent to:
---
--- ```lua
--- vim.fn[func]({...})
--- ```
---
--- @param func string
--- @param ... any
--- @return any
function vim.c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/misc.lua", "license": "mit", "size": 298} |
### File: runtime/lua/vim/_meta/mpack.lua
--- @meta
-- luacheck: no unused args
--- @brief
---
--- This module provides encoding and decoding of Lua objects to and
--- from msgpack-encoded strings. Supports |vim.NIL| and |vim.empty_dict()|.
--- Decodes (or "unpacks") the msgpack-encoded {str} to a Lua object.
--- @p... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/mpack.lua", "license": "mit", "size": 489} |
### File: runtime/lua/vim/_meta/re.lua
--- @meta
error('Cannot require a meta file')
-- Documentations and Lua types for vim.re (vendored re.lua, lpeg-1.1.0)
-- https://www.inf.puc-rio.br/~roberto/lpeg/re.html
--
-- Copyright © 2007-2023 Lua.org, PUC-Rio.
-- See 'lpeg.html' for license
--- @brief
--- The `vim.re` mod... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/re.lua", "license": "mit", "size": 2270} |
### File: runtime/lua/vim/_meta/regex.lua
--- @meta
-- luacheck: no unused args
--- @brief Vim regexes can be used directly from Lua. Currently they only allow
--- matching within a single line.
--- Parse the Vim regex {re} and return a regex object. Regexes are "magic"
--- and case-sensitive by default, regardless ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/regex.lua", "license": "mit", "size": 1379} |
### File: runtime/lua/vim/_meta/spell.lua
--- @meta
-- luacheck: no unused args
--- Check {str} for spelling errors. Similar to the Vimscript function
--- [spellbadword()].
---
--- Note: The behaviour of this function is dependent on: 'spelllang',
--- 'spellfile', 'spellcapcheck' and 'spelloptions' which can all be l... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_meta/spell.lua", "license": "mit", "size": 951} |
### File: runtime/lua/vim/_options.lua
--- @brief Nvim Lua provides an interface or "bridge" to Vimscript variables and
--- functions, and editor commands and options.
---
--- Objects passed over this bridge are COPIED (marshalled): there are no
--- "references". |lua-guide-variables| For example, using `vim.fn.remove(... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_options.lua", "license": "mit", "size": 25983} |
### File: runtime/lua/vim/_system.lua
local uv = vim.uv
--- @class vim.SystemOpts
--- @field stdin? string|string[]|true
--- @field stdout? fun(err:string?, data: string?)|false
--- @field stderr? fun(err:string?, data: string?)|false
--- @field cwd? string
--- @field env? table<string,string|number>
--- @field clear_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_system.lua", "license": "mit", "size": 9354} |
### File: runtime/lua/vim/_watch.lua
local uv = vim.uv
local M = {}
--- @enum vim._watch.FileChangeType
--- Types of events watchers will emit.
M.FileChangeType = {
Created = 1,
Changed = 2,
Deleted = 3,
}
--- @class vim._watch.Opts
---
--- @field debounce? integer ms
---
--- An |lpeg| pattern. Only changes to... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/_watch.lua", "license": "mit", "size": 9002} |
### File: runtime/lua/vim/deprecated/health.lua
local M = {}
local health = vim.health
local deprecated = {} ---@type [string, table, string][]
function M.check()
if next(deprecated) == nil then
health.ok('No deprecated functions detected')
return
end
for name, v in vim.spairs(deprecated) do
health... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/deprecated/health.lua", "license": "mit", "size": 1290} |
### File: runtime/lua/vim/diagnostic.lua
local api, if_nil = vim.api, vim.F.if_nil
local M = {}
--- [diagnostic-structure]()
---
--- Diagnostics use the same indexing as the rest of the Nvim API (i.e. 0-based
--- rows and columns). |api-indexing|
--- @class vim.Diagnostic
---
--- Buffer number
--- @field bufnr? integ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/diagnostic.lua", "license": "mit", "size": 74189} |
### File: runtime/lua/vim/filetype.lua
local api = vim.api
local fn = vim.fn
local M = {}
--- @alias vim.filetype.mapfn fun(path:string,bufnr:integer, ...):string?, fun(b:integer)?
--- @alias vim.filetype.mapopts { parent: string, priority: number }
--- @alias vim.filetype.maptbl [string|vim.filetype.mapfn, vim.filet... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/filetype.lua", "license": "mit", "size": 75553} |
### File: runtime/lua/vim/filetype/detect.lua
-- Contains filetype detection functions for use in filetype.lua that are either:
-- * used more than once or
-- * complex (e.g. check more than one line or use conditionals).
-- Simple one-line checks, such as a check for a string in the first line are better inlined in ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/filetype/detect.lua", "license": "mit", "size": 60694} |
### File: runtime/lua/vim/filetype/options.lua
local api = vim.api
local M = {}
local function get_ftplugin_runtime(filetype)
local files = api.nvim__get_runtime({
string.format('ftplugin/%s.vim', filetype),
string.format('ftplugin/%s_*.vim', filetype),
string.format('ftplugin/%s/*.vim', filetype),
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/filetype/options.lua", "license": "mit", "size": 2620} |
### File: runtime/lua/vim/fs.lua
local M = {}
local iswin = vim.uv.os_uname().sysname == 'Windows_NT'
local os_sep = iswin and '\\' or '/'
--- Iterate over all the parents of the given path.
---
--- Example:
---
--- ```lua
--- local root_dir
--- for dir in vim.fs.parents(vim.api.nvim_buf_get_name(0)) do
--- if vim.... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/fs.lua", "license": "mit", "size": 19008} |
### File: runtime/lua/vim/func.lua
local M = {}
-- TODO(lewis6991): Private for now until:
-- - There are other places in the codebase that could benefit from this
-- (e.g. LSP), but might require other changes to accommodate.
-- - Invalidation of the cache needs to be controllable. Using weak tables
-- is an acce... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/func.lua", "license": "mit", "size": 1795} |
### File: runtime/lua/vim/func/_memoize.lua
--- Module for private utility functions
--- @param argc integer?
--- @return fun(...): any
local function concat_hash(argc)
return function(...)
return table.concat({ ... }, '%%', 1, argc)
end
end
--- @param idx integer
--- @return fun(...): any
local function idx_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/func/_memoize.lua", "license": "mit", "size": 1387} |
### File: runtime/lua/vim/glob.lua
local lpeg = vim.lpeg
local P, S, V, R, B = lpeg.P, lpeg.S, lpeg.V, lpeg.R, lpeg.B
local C, Cc, Ct, Cf, Cmt = lpeg.C, lpeg.Cc, lpeg.Ct, lpeg.Cf, lpeg.Cmt
local M = {}
local pathsep = P('/')
--- Parses a raw glob into an |lua-lpeg| pattern.
---
--- This uses glob semantics from LSP ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/glob.lua", "license": "mit", "size": 3339} |
### File: runtime/lua/vim/health.lua
--- @brief
---<pre>help
--- health.vim is a minimal framework to help users troubleshoot configuration and
--- any other environment conditions that a plugin might care about. Nvim ships
--- with healthchecks for configuration, performance, python support, ruby
--- support, clipboar... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/health.lua", "license": "mit", "size": 12895} |
### File: runtime/lua/vim/health/health.lua
local M = {}
local health = require('vim.health')
local shell_error = function()
return vim.v.shell_error ~= 0
end
local suggest_faq = 'https://github.com/neovim/neovim/blob/master/BUILD.md#building'
local function check_runtime()
health.start('Runtime')
-- Files fro... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/health/health.lua", "license": "mit", "size": 12835} |
### File: runtime/lua/vim/highlight.lua
local api = vim.api
local M = {}
--- Table with default priorities used for highlighting:
--- - `syntax`: `50`, used for standard syntax highlighting
--- - `treesitter`: `100`, used for treesitter-based highlighting
--- - `semantic_tokens`: `125`, used for LSP semantic token hi... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/highlight.lua", "license": "mit", "size": 5841} |
### File: runtime/lua/vim/inspect.lua
local inspect = {
_VERSION = 'inspect.lua 3.1.0',
_URL = 'http://github.com/kikito/inspect.lua',
_DESCRIPTION = 'human-readable representations of tables',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/inspect.lua", "license": "mit", "size": 9077} |
### File: runtime/lua/vim/iter.lua
--- @brief
---
--- [vim.iter()]() is an interface for [iterable]s: it wraps a table or function argument into an
--- [Iter]() object with methods (such as [Iter:filter()] and [Iter:map()]) that transform the
--- underlying source data. These methods can be chained to create iterator "... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/iter.lua", "license": "mit", "size": 26302} |
### File: runtime/lua/vim/keymap.lua
local keymap = {}
--- Table of |:map-arguments|.
--- Same as |nvim_set_keymap()| {opts}, except:
--- - {replace_keycodes} defaults to `true` if "expr" is `true`.
---
--- Also accepts:
--- @class vim.keymap.set.Opts : vim.api.keyset.keymap
--- @inlinedoc
---
--- Creates buffer-local... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/keymap.lua", "license": "mit", "size": 3770} |
### File: runtime/lua/vim/loader.lua
local fs = vim.fs -- "vim.fs" is a dependency, so must be loaded early.
local uv = vim.uv
local uri_encode = vim.uri_encode --- @type function
--- @type (fun(modename: string): fun()|string)[]
local loaders = package.loaders
local M = {}
---@alias CacheHash {mtime: {nsec: integer... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/loader.lua", "license": "mit", "size": 16217} |
### File: runtime/lua/vim/lsp.lua
local api = vim.api
local validate = vim.validate
local lsp = vim._defer_require('vim.lsp', {
_changetracking = ..., --- @module 'vim.lsp._changetracking'
_dynamic = ..., --- @module 'vim.lsp._dynamic'
_snippet_grammar = ..., --- @module 'vim.lsp._snippet_grammar'
_tagfunc = .... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp.lua", "license": "mit", "size": 41651} |
### File: runtime/lua/vim/lsp/_changetracking.lua
local protocol = require('vim.lsp.protocol')
local sync = require('vim.lsp.sync')
local util = require('vim.lsp.util')
local api = vim.api
local uv = vim.uv
local M = {}
--- LSP has 3 different sync modes:
--- - None (Servers will read the files themselves when nee... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/_changetracking.lua", "license": "mit", "size": 11768} |
### File: runtime/lua/vim/lsp/_dynamic.lua
local glob = vim.glob
--- @class lsp.DynamicCapabilities
--- @field capabilities table<string, lsp.Registration[]>
--- @field client_id number
local M = {}
--- @param client_id number
--- @return lsp.DynamicCapabilities
function M.new(client_id)
return setmetatable({
c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/_dynamic.lua", "license": "mit", "size": 2992} |
### File: runtime/lua/vim/lsp/_meta.lua
---@meta
error('Cannot require a meta file')
---@alias lsp.Handler fun(err: lsp.ResponseError?, result: any, context: lsp.HandlerContext, config?: table): ...any
---@class lsp.HandlerContext
---@field method string
---@field client_id integer
---@field bufnr? integer
---@field ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/_meta.lua", "license": "mit", "size": 451} |
### File: runtime/lua/vim/lsp/_snippet_grammar.lua
--- Grammar for LSP snippets, based on https://microsoft.github.io/language-server-protocol/specification/#snippet_syntax
local lpeg = vim.lpeg
local P, S, R, V = lpeg.P, lpeg.S, lpeg.R, lpeg.V
local C, Cg, Ct = lpeg.C, lpeg.Cg, lpeg.Ct
local M = {}
local alpha = R(... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/_snippet_grammar.lua", "license": "mit", "size": 6327} |
### File: runtime/lua/vim/lsp/_tagfunc.lua
local lsp = vim.lsp
local util = lsp.util
local ms = lsp.protocol.Methods
---@param name string
---@param range lsp.Range
---@param uri string
---@param offset_encoding string
---@return {name: string, filename: string, cmd: string, kind?: string}
local function mk_tag_item(n... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/_tagfunc.lua", "license": "mit", "size": 2854} |
### File: runtime/lua/vim/lsp/_watchfiles.lua
local bit = require('bit')
local glob = vim.glob
local watch = vim._watch
local protocol = require('vim.lsp.protocol')
local ms = protocol.Methods
local lpeg = vim.lpeg
local M = {}
if vim.fn.has('win32') == 1 or vim.fn.has('mac') == 1 then
M._watchfunc = watch.watch
el... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/_watchfiles.lua", "license": "mit", "size": 7058} |
### File: runtime/lua/vim/lsp/buf.lua
local api = vim.api
local validate = vim.validate
local util = require('vim.lsp.util')
local npcall = vim.F.npcall
local ms = require('vim.lsp.protocol').Methods
local M = {}
--- Sends an async request to all active clients attached to the current
--- buffer.
---
---@param method... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/buf.lua", "license": "mit", "size": 31908} |
### File: runtime/lua/vim/lsp/client.lua
local uv = vim.uv
local api = vim.api
local lsp = vim.lsp
local log = lsp.log
local ms = lsp.protocol.Methods
local changetracking = lsp._changetracking
local validate = vim.validate
--- @alias vim.lsp.client.on_init_cb fun(client: vim.lsp.Client, initialize_result: lsp.Initial... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/client.lua", "license": "mit", "size": 38972} |
### File: runtime/lua/vim/lsp/codelens.lua
local util = require('vim.lsp.util')
local log = require('vim.lsp.log')
local ms = require('vim.lsp.protocol').Methods
local api = vim.api
local M = {}
--- bufnr → true|nil
--- to throttle refreshes to at most one at a time
local active_refreshes = {} --- @type table<integer,... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/codelens.lua", "license": "mit", "size": 9560} |
### File: runtime/lua/vim/lsp/completion.lua
local M = {}
local api = vim.api
local lsp = vim.lsp
local protocol = lsp.protocol
local ms = protocol.Methods
local rtt_ms = 50
local ns_to_ms = 0.000001
--- @alias vim.lsp.CompletionResult lsp.CompletionList | lsp.CompletionItem[]
-- TODO(mariasolos): Remove this decla... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/completion.lua", "license": "mit", "size": 22629} |
### File: runtime/lua/vim/lsp/diagnostic.lua
local protocol = require('vim.lsp.protocol')
local ms = protocol.Methods
local api = vim.api
local M = {}
local augroup = api.nvim_create_augroup('vim_lsp_diagnostic', {})
local DEFAULT_CLIENT_ID = -1
local function get_client_id(client_id)
if client_id == nil then
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/diagnostic.lua", "license": "mit", "size": 14440} |
### File: runtime/lua/vim/lsp/handlers.lua
local log = require('vim.lsp.log')
local protocol = require('vim.lsp.protocol')
local ms = protocol.Methods
local util = require('vim.lsp.util')
local api = vim.api
local completion = require('vim.lsp.completion')
--- @type table<string,lsp.Handler>
local M = {}
-- FIXME: DO... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/handlers.lua", "license": "mit", "size": 27475} |
### File: runtime/lua/vim/lsp/health.lua
local M = {}
local report_info = vim.health.info
local report_warn = vim.health.warn
local function check_log()
local log = vim.lsp.log
local current_log_level = log.get_level()
local log_level_string = log.levels[current_log_level] ---@type string
report_info(string.f... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/health.lua", "license": "mit", "size": 5542} |
### File: runtime/lua/vim/lsp/inlay_hint.lua
local util = require('vim.lsp.util')
local log = require('vim.lsp.log')
local ms = require('vim.lsp.protocol').Methods
local api = vim.api
local M = {}
---@class (private) vim.lsp.inlay_hint.globalstate Global state for inlay hints
---@field enabled boolean Whether inlay hi... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/inlay_hint.lua", "license": "mit", "size": 12607} |
### File: runtime/lua/vim/lsp/log.lua
-- Logger for language client plugin.
local log = {}
local log_levels = vim.log.levels
--- Log level dictionary with reverse lookup as well.
---
--- Can be used to lookup the number from the name or the name from the number.
--- Levels by name: "TRACE", "DEBUG", "INFO", "WARN", ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/log.lua", "license": "mit", "size": 4794} |
### File: runtime/lua/vim/lsp/protocol.lua
--- @diagnostic disable: duplicate-doc-alias
---@param tbl table<string, string|number>
local function get_value_set(tbl)
local value_set = {}
for _, v in pairs(tbl) do
table.insert(value_set, v)
end
table.sort(value_set)
return value_set
end
local sysname = vi... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/protocol.lua", "license": "mit", "size": 37188} |
### File: runtime/lua/vim/lsp/rpc.lua
local uv = vim.uv
local log = require('vim.lsp.log')
local protocol = require('vim.lsp.protocol')
local validate, schedule, schedule_wrap = vim.validate, vim.schedule, vim.schedule_wrap
local is_win = uv.os_uname().version:find('Windows')
--- Checks whether a given path exists an... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/rpc.lua", "license": "mit", "size": 26726} |
### File: runtime/lua/vim/lsp/semantic_tokens.lua
local api = vim.api
local bit = require('bit')
local ms = require('vim.lsp.protocol').Methods
local util = require('vim.lsp.util')
local uv = vim.uv
--- @class (private) STTokenRange
--- @field line integer line number 0-based
--- @field start_col integer start column ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/semantic_tokens.lua", "license": "mit", "size": 27370} |
### File: runtime/lua/vim/lsp/sync.lua
-- Notes on incremental sync:
-- Per the protocol, the text range should be:
--
-- A position inside a document (see Position definition below) is expressed as
-- a zero-based line and character offset. The offsets are based on a UTF-16
-- string representation. So a string of... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/sync.lua", "license": "mit", "size": 16615} |
### File: runtime/lua/vim/lsp/util.lua
local protocol = require('vim.lsp.protocol')
local validate = vim.validate
local api = vim.api
local list_extend = vim.list_extend
local highlight = vim.highlight
local uv = vim.uv
local npcall = vim.F.npcall
local split = vim.split
local M = {}
local default_border = {
{ '',... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/lsp/util.lua", "license": "mit", "size": 75565} |
### File: runtime/lua/vim/provider.lua
local M = vim._defer_require('vim.provider', {
perl = ..., --- @module 'vim.provider.perl'
python = ..., --- @module 'vim.provider.python'
ruby = ..., --- @module 'vim.provider.ruby'
})
return M
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/provider.lua", "license": "mit", "size": 202} |
### File: runtime/lua/vim/provider/health.lua
local health = vim.health
local iswin = vim.uv.os_uname().sysname == 'Windows_NT'
local M = {}
local function cmd_ok(cmd)
local out = vim.fn.system(cmd)
return vim.v.shell_error == 0, out
end
-- Attempts to construct a shell command from an args list.
-- Only for dis... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/provider/health.lua", "license": "mit", "size": 28972} |
### File: runtime/lua/vim/provider/perl.lua
local M = {}
local s_err ---@type string?
local s_host ---@type string?
function M.require(host, prog)
local args = { prog, '-e', 'use Neovim::Ext; start_host();' }
-- Collect registered perl plugins into args
local perl_plugins = vim.fn['remote#host#PluginsForHost'](... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/provider/perl.lua", "license": "mit", "size": 2046} |
### File: runtime/lua/vim/provider/python.lua
local M = {}
local min_version = '3.7'
local s_err ---@type string?
local s_host ---@type string?
local python_candidates = {
'python3',
'python3.12',
'python3.11',
'python3.10',
'python3.9',
'python3.8',
'python3.7',
'python',
}
--- @param prog string
---... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/provider/python.lua", "license": "mit", "size": 4325} |
### File: runtime/lua/vim/provider/ruby.lua
local M = {}
local s_err ---@type string?
local s_host ---@type string?
function M.require(host)
local prog = M.detect()
local args = { prog }
local ruby_plugins = vim.fn['remote#host#PluginsForHost'](host.name) ---@type any
---@param plugin any
for _, plugin in i... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "runtime/lua/vim/provider/ruby.lua", "license": "mit", "size": 1601} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.