text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: scripts/gen_lsp.lua -- Generates lua-ls annotations for lsp. local USAGE = [[ Generates lua-ls annotations for lsp. USAGE: nvim -l scripts/gen_lsp.lua gen # by default, this will overwrite runtime/lua/vim/lsp/_meta/protocol.lua nvim -l scripts/gen_lsp.lua gen --version 3.18 --out runtime/lua/vim/lsp/_meta/...
{"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": "scripts/gen_lsp.lua", "license": "mit", "size": 14469}
### File: scripts/gen_vimdoc.lua #!/usr/bin/env -S nvim -l --- Generates Nvim :help docs from Lua/C docstrings --- --- The generated :help text for each function is formatted as follows: --- - Max width of 78 columns (`TEXT_WIDTH`). --- - Indent with spaces (not tabs). --- - Indent of 4 columns for body text (`INDENTAT...
{"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": "scripts/gen_vimdoc.lua", "license": "mit", "size": 26949}
### File: scripts/genappimage.sh #!/bin/bash ######################################################################## # Package the binaries built as an AppImage # By Simon Peter 2016 # For more information, see http://appimage.org/ ######################################################################## # App arch, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/neovim", "path": "scripts/genappimage.sh", "license": "mit", "size": 3293}
### File: scripts/lintcommit.lua -- Usage: -- # verbose -- nvim -l scripts/lintcommit.lua main --trace -- -- # silent -- nvim -l scripts/lintcommit.lua main -- -- # self-test -- nvim -l scripts/lintcommit.lua _test --- @type table<string,fun(opt: LintcommitOptions)> local M = {} local _trace = false...
{"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": "scripts/lintcommit.lua", "license": "mit", "size": 8730}
### File: scripts/lintdoc.lua #!/usr/bin/env -S nvim -l -- Validate vimdoc files on $VIMRUNTIME/doc, and test generating HTML docs. -- Checks for duplicate/missing tags, parse errors, and invalid links/urls/spellings. -- See also `make lintdoc`. -- -- Usage: -- $ nvim -l scripts/lintdoc.lua -- $ make lintdoc prin...
{"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": "scripts/lintdoc.lua", "license": "mit", "size": 573}
### File: scripts/luacats_grammar.lua --[[! LPEG grammar for LuaCATS ]] local lpeg = vim.lpeg local P, R, S = lpeg.P, lpeg.R, lpeg.S local Ct, Cg = lpeg.Ct, lpeg.Cg --- @param x vim.lpeg.Pattern local function rep(x) return x ^ 0 end --- @param x vim.lpeg.Pattern local function rep1(x) return x ^ 1 end --- @par...
{"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": "scripts/luacats_grammar.lua", "license": "mit", "size": 5069}
### File: scripts/luacats_parser.lua local luacats_grammar = require('scripts.luacats_grammar') --- @class nvim.luacats.parser.param --- @field name string --- @field type string --- @field desc string --- @class nvim.luacats.parser.return --- @field name string --- @field type string --- @field desc string --- @cla...
{"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": "scripts/luacats_parser.lua", "license": "mit", "size": 15346}
### File: scripts/release.sh #!/usr/bin/env bash # Usage: # ./scripts/release.sh # ./scripts/release.sh --use-current-commit # ./scripts/release.sh --only-bump # # Performs steps to tag a release. # # Steps: # Create the "release" commit: # - CMakeLists.txt: Unset NVIM_VERSION_PRERELEASE # - CMakeLists...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/neovim", "path": "scripts/release.sh", "license": "mit", "size": 3356}
### File: scripts/shadacat.py #!/usr/bin/env python3 import os import sys import codecs from enum import Enum from datetime import datetime from functools import reduce import msgpack class EntryTypes(Enum): Unknown = -1 Missing = 0 Header = 1 SearchPattern = 2 SubString = 3 HistoryEntry = ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/neovim", "path": "scripts/shadacat.py", "license": "mit", "size": 2684}
### File: scripts/text_utils.lua local fmt = string.format --- @class nvim.text_utils.MDNode --- @field [integer] nvim.text_utils.MDNode --- @field type string --- @field text? string local INDENTATION = 4 local NBSP = string.char(160) local M = {} local function contains(t, xs) return vim.tbl_contains(xs, t) en...
{"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": "scripts/text_utils.lua", "license": "mit", "size": 9779}
### File: scripts/update_terminfo.sh #!/usr/bin/env bash # # usage: ./scripts/update_terminfo.sh # # This script does: # # 1. Download Dickey's terminfo.src # 2. Compile temporary terminfo database from terminfo.src # 3. Use database to generate src/nvim/tui/terminfo_defs.h # set -e url='https://invisible-islan...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/neovim", "path": "scripts/update_terminfo.sh", "license": "mit", "size": 2003}
### File: scripts/vim-patch.sh #!/usr/bin/env bash set -e set -u # Use privileged mode, which e.g. skips using CDPATH. set -p # https://www.shellcheck.net/wiki/SC2031 shopt -s lastpipe # Ensure that the user has a bash that supports -A if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then >&2 echo "error: script requires bas...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/neovim", "path": "scripts/vim-patch.sh", "license": "mit", "size": 30679}
### File: scripts/vimpatch.lua -- Updates version.c list of applied Vim patches. -- -- Usage: -- VIM_SOURCE_DIR=~/neovim/.vim-src/ nvim -V1 -es -i NONE +'luafile ./scripts/vimpatch.lua' +q local nvim = vim.api local function systemlist(...) local rv = nvim.nvim_call_function('systemlist', ...) local err = nv...
{"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": "scripts/vimpatch.lua", "license": "mit", "size": 1720}
### File: src/bit.c /* ** Lua BitOp -- a bit operations library for Lua 5.1/5.2. ** http://bitop.luajit.org/ ** ** Copyright (C) 2008-2012 Mike Pall. All rights reserved. ** ** Permission is hereby granted, free of charge, to any person obtaining ** a copy of this software and associated documentation files (the ** "So...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/bit.c", "license": "mit", "size": 5471}
### File: src/bit.h #include <lua.h> int luaopen_bit(lua_State *L);
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/bit.h", "license": "mit", "size": 49}
### File: src/cjson/fpconv.c /* fpconv - Floating point conversion routines * * Copyright (c) 2011-2012 Mark Pulford <mark@kyne.com.au> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Softwar...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/cjson/fpconv.c", "license": "mit", "size": 6165}
### File: src/cjson/fpconv.h /* Lua CJSON floating point conversion routines */ /* Buffer required to store the largest string representation of a double. * * Longest double printed with %.14g is 21 characters long: * -1.7976931348623e+308 */ # define FPCONV_G_FMT_BUFSIZE 32 #ifdef USE_INTERNAL_FPCONV static inl...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/cjson/fpconv.h", "license": "mit", "size": 522}
### File: src/cjson/lua_cjson.c // Upstream: https://github.com/openresty/lua-cjson/blob/master/lua_cjson.c /* Lua CJSON - JSON support for Lua * * Copyright (c) 2010-2012 Mark Pulford <mark@kyne.com.au> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and assoc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/cjson/lua_cjson.c", "license": "mit", "size": 49283}
### File: src/cjson/lua_cjson.h #ifndef CJSON_LUACJSON_H #define CJSON_LUACJSON_H #include "lua.h" int lua_cjson_new(lua_State *l); int luaopen_cjson(lua_State *l); int luaopen_cjson_safe(lua_State *l); #endif // CJSON_LUACJSON_H
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/cjson/lua_cjson.h", "license": "mit", "size": 202}
### File: src/cjson/strbuf.c /* strbuf - String buffer routines * * Copyright (c) 2010-2012 Mark Pulford <mark@kyne.com.au> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/cjson/strbuf.c", "license": "mit", "size": 6132}
### File: src/cjson/strbuf.h /* strbuf - String buffer routines * * Copyright (c) 2010-2012 Mark Pulford <mark@kyne.com.au> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/cjson/strbuf.h", "license": "mit", "size": 4423}
### File: src/clint.py #!/usr/bin/env python3 # # https://github.com/cpplint/cpplint # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/neovim", "path": "src/clint.py", "license": "mit", "size": 95333}
### File: src/coverity-model.c // Coverity Scan model // // This is a modeling file for Coverity Scan. Modeling helps to avoid false // positives. // // - A model file can't import any header files. // - Therefore only some built-in primitives like int, char and void are // available but not wchar_t, NULL etc. // - M...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/coverity-model.c", "license": "mit", "size": 2953}
### File: src/klib/klist.h /* The MIT License Copyright (c) 2008-2009, by Attractive Chaos <attractor@live.co.uk> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/klib/klist.h", "license": "mit", "size": 5047}
### File: src/klib/kvec.h // The MIT License // // Copyright (c) 2008, by Attractive Chaos <attractor@live.co.uk> // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, in...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/klib/kvec.h", "license": "mit", "size": 8874}
### File: src/man/Makefile MAN = nvim.1 lint: mandoc -Tlint -Wall $(MAN) igor $(MAN)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/neovim", "path": "src/man/Makefile", "license": "mit", "size": 61}
### File: src/man/nvim.1 .Dd December 17, 2017 .Dt NVIM 1 .Os .Sh NAME .Nm nvim .Nd edit text .Sh SYNOPSIS .Nm .Op Ar options .Op Ar file ... .Nm .Op Ar options .Fl .Nm .Op Ar options .Fl t Ar tag .Nm .Op Ar options .Fl q Op Ar errorfile .Sh DESCRIPTION .Nm is a text editor based on Vim. Start .Nm followed by any numbe...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Roff Manpage", "repo_name": "minhanghuang/neovim", "path": "src/man/nvim.1", "license": "mit", "size": 9158}
### File: src/mpack/conv.c #include "conv.h" static int mpack_fits_single(double v); static mpack_value_t mpack_pack_ieee754(double v, unsigned m, unsigned e); static int mpack_is_be(void) FPURE; static double mpack_fmod_pow2_32(double a); #define POW2(n) \ ((double)(1 << (n / 2)) * (double)(1 << (n / 2)) * (doubl...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/conv.c", "license": "mit", "size": 9312}
### File: src/mpack/conv.h #ifndef MPACK_CONV_H #define MPACK_CONV_H #include "mpack_core.h" #if ULLONG_MAX == 0xffffffffffffffff typedef long long mpack_sintmax_t; typedef unsigned long long mpack_uintmax_t; #elif UINT64_MAX == 0xffffffffffffffff typedef int64_t mpack_sintmax_t; typedef uint64_t mpack_uintmax_t; #el...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/conv.h", "license": "mit", "size": 2290}
### File: src/mpack/lmpack.c /* * This module exports three classes, and each instance of those classes has its * own private registry for temporary reference storage(keeping state between * calls). A private registry makes managing memory much easier since all we * have to do is call luaL_unref passing the registr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/lmpack.c", "license": "mit", "size": 34206}
### File: src/mpack/lmpack.h #include <lua.h> int luaopen_mpack(lua_State *L);
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/lmpack.h", "license": "mit", "size": 51}
### File: src/mpack/mpack_core.c #include <string.h> #include "mpack_core.h" #define UNUSED(p) (void)p; #define ADVANCE(buf, buflen) ((*buflen)--, (unsigned char)*((*buf)++)) #define TLEN(val, range_start) ((mpack_uint32_t)(1 << (val - range_start))) #ifndef MIN # define MIN(X, Y) ((X) < (Y) ? (X) : (Y)) #endif stat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/mpack_core.c", "license": "mit", "size": 17159}
### File: src/mpack/mpack_core.h #ifndef MPACK_CORE_H #define MPACK_CORE_H #ifndef MPACK_API # define MPACK_API extern #endif #include <assert.h> #include <limits.h> #include <stddef.h> #include <stdbool.h> #ifdef __GNUC__ # define FPURE __attribute__((const)) # define FNONULL __attribute__((nonnull)) # define FNONU...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/mpack_core.h", "license": "mit", "size": 2383}
### File: src/mpack/object.c #include <string.h> #include "object.h" static int mpack_parser_full(mpack_parser_t *w); static mpack_node_t *mpack_parser_push(mpack_parser_t *w); static mpack_node_t *mpack_parser_pop(mpack_parser_t *w); MPACK_API void mpack_parser_init(mpack_parser_t *parser, mpack_uint32_t capaci...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/object.c", "license": "mit", "size": 6875}
### File: src/mpack/object.h #ifndef MPACK_OBJECT_H #define MPACK_OBJECT_H #include "mpack_core.h" #include "conv.h" #ifndef MPACK_MAX_OBJECT_DEPTH # define MPACK_MAX_OBJECT_DEPTH 32 #endif #define MPACK_PARENT_NODE(n) (((n) - 1)->pos == (size_t)-1 ? NULL : (n) - 1) #define MPACK_THROW(parser) \ do { ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/object.h", "license": "mit", "size": 2717}
### File: src/mpack/rpc.c #include <string.h> #include "rpc.h" enum { MPACK_RPC_RECEIVE_ARRAY = 1, MPACK_RPC_RECEIVE_TYPE, MPACK_RPC_RECEIVE_ID }; static mpack_rpc_header_t mpack_rpc_request_hdr(void); static mpack_rpc_header_t mpack_rpc_reply_hdr(void); static mpack_rpc_header_t mpack_rpc_notify_hdr(void); st...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/rpc.c", "license": "mit", "size": 8886}
### File: src/mpack/rpc.h #ifndef MPACK_RPC_H #define MPACK_RPC_H #include "mpack_core.h" #include "object.h" #ifndef MPACK_RPC_MAX_REQUESTS # define MPACK_RPC_MAX_REQUESTS 32 #endif enum { MPACK_RPC_REQUEST = MPACK_NOMEM + 1, MPACK_RPC_RESPONSE, MPACK_RPC_NOTIFICATION, MPACK_RPC_ERROR }; enum { MPACK_RPC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/mpack/rpc.h", "license": "mit", "size": 2456}
### File: src/nlua0.c #include <lua.h> #include "mpack/lmpack.h" LUA_API int luaopen_nlua0(lua_State* L); LUA_API int luaopen_nlua0(lua_State* L) { lua_getglobal(L, "vim"); luaopen_mpack(L); lua_setfield(L, -2, "mpack"); int luaopen_lpeg(lua_State *); luaopen_lpeg(L); lua_setfield(L, -3, "lpeg"); lua_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nlua0.c", "license": "mit", "size": 324}
### File: src/nvim/CMakeLists.txt add_library(main_lib INTERFACE) # Internally we need to make a distinction between "nvim without runtime files" # (nvim_bin) and "nvim with runtime files" (nvim). add_executable(nvim_bin EXCLUDE_FROM_ALL) set_target_properties(nvim_bin PROPERTIES EXPORT_COMPILE_COMMANDS ON ENAB...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/neovim", "path": "src/nvim/CMakeLists.txt", "license": "mit", "size": 36928}
### File: src/nvim/api/autocmd.c #include <assert.h> #include <lauxlib.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/autocmd.h" #include "nvim/api/keysets_defs.h" #include "nvim/api/private/defs.h" #include "nvim/api/pri...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/autocmd.c", "license": "mit", "size": 29712}
### File: src/nvim/api/autocmd.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/autocmd.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/autocmd.h", "license": "mit", "size": 255}
### File: src/nvim/api/buffer.c // Some of this code was adapted from 'if_py_both.h' from the original // vim source #include <lauxlib.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include "klib/kvec.h" #include "lua.h" #include "nvim/api/buffer.h" #include "nvim/api/keysets_def...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/buffer.c", "license": "mit", "size": 46197}
### File: src/nvim/api/buffer.h #pragma once #include <lua.h> // IWYU pragma: keep #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/pos_defs.h" // IWYU pragma: keep #include "nvim/types_defs.h" ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/buffer.h", "license": "mit", "size": 393}
### File: src/nvim/api/command.c #include <inttypes.h> #include <lauxlib.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/command.h" #include "nvim/api/keysets_defs.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/dispatch.h" #include "nvim/api/pr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/command.c", "license": "mit", "size": 40897}
### File: src/nvim/api/command.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/command.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/command.h", "license": "mit", "size": 255}
### File: src/nvim/api/deprecated.c #include <stdbool.h> #include <stdint.h> #include <string.h> #include "nvim/api/buffer.h" #include "nvim/api/deprecated.h" #include "nvim/api/extmark.h" #include "nvim/api/keysets_defs.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nvim/api/pri...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/deprecated.c", "license": "mit", "size": 26706}
### File: src/nvim/api/deprecated.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/deprecated.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/deprecated.h", "license": "mit", "size": 258}
### File: src/nvim/api/dispatch_deprecated.lua local deprecated_aliases = { nvim_buf_add_highlight = 'buffer_add_highlight', nvim_buf_clear_highlight = 'buffer_clear_highlight', nvim_buf_get_lines = 'buffer_get_lines', nvim_buf_get_mark = 'buffer_get_mark', nvim_buf_get_name = 'buffer_get_name', nvim_buf_ge...
{"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": "src/nvim/api/dispatch_deprecated.lua", "license": "mit", "size": 2914}
### File: src/nvim/api/extmark.c #include <assert.h> #include <lauxlib.h> #include <stdbool.h> #include <stdint.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/extmark.h" #include "nvim/api/keysets_defs.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/dispatch.h" #include "nvim/api/pri...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/extmark.c", "license": "mit", "size": 45455}
### File: src/nvim/api/extmark.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/buffer_defs.h" #include "nvim/decoration_defs.h" // IWYU pragma: keep #include "nvim/macros_defs.h" ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/extmark.h", "license": "mit", "size": 1061}
### File: src/nvim/api/keysets_defs.h #pragma once #include "nvim/api/private/defs.h" typedef struct { OptionalKeys is_set__empty_; } Dict(empty); typedef struct { OptionalKeys is_set__context_; Array types; } Dict(context); typedef struct { OptionalKeys is_set__set_decoration_provider_; LuaRef on_start; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/keysets_defs.h", "license": "mit", "size": 7386}
### File: src/nvim/api/options.c #include <assert.h> #include <stdbool.h> #include <string.h> #include "nvim/api/keysets_defs.h" #include "nvim/api/options.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/dispatch.h" #include "nvim/api/private/helpers.h" #include "nvim/api/private/validate.h" #include ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/options.c", "license": "mit", "size": 10854}
### File: src/nvim/api/options.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/option_defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/options.h....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/options.h", "license": "mit", "size": 307}
### File: src/nvim/api/private/converter.c #include <assert.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "klib/kvec.h" #include "nvim/api/private/converter.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nvim/ascii_defs.h" #include "nvim/assert_defs.h" ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/converter.c", "license": "mit", "size": 11260}
### File: src/nvim/api/private/converter.h #pragma once #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/eval/typval_defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/private/converter.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/converter.h", "license": "mit", "size": 222}
### File: src/nvim/api/private/defs.h #pragma once #include <stdbool.h> #include <stdint.h> #include <string.h> #include "klib/kvec.h" #include "nvim/types_defs.h" #define ARRAY_DICT_INIT KV_INITIAL_VALUE #define STRING_INIT { .data = NULL, .size = 0 } #define OBJECT_INIT { .type = kObjectTypeNil } #define ERROR_INI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/defs.h", "license": "mit", "size": 3404}
### File: src/nvim/api/private/dispatch.c #include <stddef.h> #include "nvim/api/private/defs.h" #include "nvim/api/private/dispatch.h" #include "nvim/api/private/helpers.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/private/dispatch_wrappers.generated.h" #endif /// @param name API method name /// @param n...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/dispatch.c", "license": "mit", "size": 839}
### File: src/nvim/api/private/dispatch.h #pragma once #include <stdbool.h> #include <stdint.h> #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/memory_defs.h" #include "nvim/types_defs.h" typedef Object (*ApiDispatchWrapper)(uint64_t channel_id, Array args, Arena *arena, Error *error); /// T...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/dispatch.h", "license": "mit", "size": 1177}
### File: src/nvim/api/private/helpers.c #include <assert.h> #include <limits.h> #include <msgpack/unpack.h> #include <stdarg.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/private/converter.h" #includ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/helpers.c", "license": "mit", "size": 32368}
### File: src/nvim/api/private/helpers.h #pragma once #include <stdbool.h> #include <stddef.h> #include "klib/kvec.h" #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/buffer_defs.h" // IWYU pragma: keep #include "nvim/eval/typval_defs.h" // IWYU pragma: keep #include "nvim/ex_eval_defs.h" #in...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/helpers.h", "license": "mit", "size": 6292}
### File: src/nvim/api/private/validate.c #include <inttypes.h> #include <stdio.h> #include <string.h> #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nvim/api/private/validate.h" #include "nvim/ascii_defs.h" #include "nvim/globals.h" /// Creates "Invalid …" message and sets it on `...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/validate.c", "license": "mit", "size": 2478}
### File: src/nvim/api/private/validate.h #pragma once #include <stdbool.h> #include <stddef.h> #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/api/private/helpers.h" #include "nvim/assert_defs.h" #include "nvim/macros_defs.h" #define VALIDATE(cond, fmt_, fmt_arg1, code) \ do { \ if (!(...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/private/validate.h", "license": "mit", "size": 2713}
### File: src/nvim/api/tabpage.c #include <stdbool.h> #include <stdlib.h> #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nvim/api/tabpage.h" #include "nvim/api/vim.h" #include "nvim/buffer_defs.h" #include "nvim/globals.h" #include "nvim/memory.h" #include "nvim/window.h" #ifdef IN...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/tabpage.c", "license": "mit", "size": 4573}
### File: src/nvim/api/tabpage.h #pragma once #include "nvim/api/private/defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/tabpage.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/tabpage.h", "license": "mit", "size": 155}
### File: src/nvim/api/ui.c #include <assert.h> #include <inttypes.h> #include <msgpack/pack.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nvim/api/private...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/ui.c", "license": "mit", "size": 31140}
### File: src/nvim/api/ui.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/highlight_defs.h" // IWYU pragma: keep #include "nvim/types_defs.h" // IWYU pragma: keep #include "nvim/ui_defs.h" // IWYU pragma: keep /// Keep in sync with U...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/ui.h", "license": "mit", "size": 667}
### File: src/nvim/api/ui_events.in.h #pragma once // This file is not compiled, just parsed for definitions #ifdef INCLUDE_GENERATED_DECLARATIONS # error "don't include this file, include nvim/ui.h" #endif #include "nvim/api/private/defs.h" #include "nvim/func_attr.h" #include "nvim/ui.h" void mode_info_set(Boolean...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/ui_events.in.h", "license": "mit", "size": 6949}
### File: src/nvim/api/vim.c #include <assert.h> #include <inttypes.h> #include <lauxlib.h> #include <limits.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/buffer.h" #include "nvim/api/deprecated.h" #include "nvim/api/key...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/vim.c", "license": "mit", "size": 77383}
### File: src/nvim/api/vim.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/vim.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/vim.h", "license": "mit", "size": 251}
### File: src/nvim/api/vimscript.c #include <assert.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/keysets_defs.h" #include "nvim/api/private/converter.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nv...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/vimscript.c", "license": "mit", "size": 24840}
### File: src/nvim/api/vimscript.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/vimscript.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/vimscript.h", "license": "mit", "size": 257}
### File: src/nvim/api/win_config.c #include <stdbool.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/extmark.h" #include "nvim/api/keysets_defs.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/dispatch.h" #include "nvim/api/private/helpers.h" #include "nvim/api/tabpage.h" #include "nv...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/win_config.c", "license": "mit", "size": 44908}
### File: src/nvim/api/win_config.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/win_config.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/win_config.h", "license": "mit", "size": 258}
### File: src/nvim/api/window.c #include <limits.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "nvim/api/keysets_defs.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/dispatch.h" #include "nvim/api/private/helpers.h" #include "nvim/api/private/validate.h" #include "nvim/api/w...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/window.c", "license": "mit", "size": 16586}
### File: src/nvim/api/window.h #pragma once #include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/window.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/api/window.h", "license": "mit", "size": 211}
### File: src/nvim/arabic.c /// @file arabic.c /// /// Functions for Arabic language. /// /// Author: Nadim Shaikli & Isam Bayazidi /// Farsi support and restructuring to make adding new letters easier by Ali /// Gholami Rudi. Further work by Ameretat Reith. /// Sorted list of unicode Arabic characters. Each entry h...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/arabic.c", "license": "mit", "size": 9202}
### File: src/nvim/arabic.h #pragma once #define ARABIC_CHAR(ch) (((ch) & 0xFF00) == 0x0600) #ifdef INCLUDE_GENERATED_DECLARATIONS # include "arabic.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/arabic.h", "license": "mit", "size": 156}
### File: src/nvim/arglist.c // arglist.c: functions for dealing with the argument list #include <assert.h> #include <stdbool.h> #include <stdint.h> #include <string.h> #include "auto/config.h" #include "nvim/arglist.h" #include "nvim/ascii_defs.h" #include "nvim/autocmd.h" #include "nvim/buffer.h" #include "nvim/buf...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/arglist.c", "license": "mit", "size": 37082}
### File: src/nvim/arglist.h #pragma once #include "nvim/arglist_defs.h" // IWYU pragma: keep #include "nvim/cmdexpand_defs.h" // IWYU pragma: keep #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "arglist.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/arglist.h", "license": "mit", "size": 255}
### File: src/nvim/arglist_defs.h #pragma once #include "nvim/garray_defs.h" /// Argument list: Array of file names. /// Used for the global argument list and the argument lists local to a window. typedef struct { garray_T al_ga; ///< growarray with the array of file names int al_refcount; ///< number of windo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/arglist_defs.h", "license": "mit", "size": 666}
### File: src/nvim/ascii_defs.h #pragma once #include <stdbool.h> #include "nvim/os/os_defs.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "ascii_defs.h.inline.generated.h" #endif // Definitions of various common control characters. #define CHAR_ORD(x) ((uint8_t)(x) < 'a' \ ? (ui...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/ascii_defs.h", "license": "mit", "size": 4704}
### File: src/nvim/assert_defs.h #pragma once #include "auto/config.h" #include "nvim/log.h" // support static asserts (aka compile-time asserts) // some compilers don't properly support short-circuiting apparently, giving // ugly syntax errors when using things like defined(__clang__) && // defined(__has_feature) &...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/assert_defs.h", "license": "mit", "size": 5836}
### File: src/nvim/auevents.lua return { events = { 'BufAdd', -- after adding a buffer to the buffer list 'BufDelete', -- deleting a buffer from the buffer list 'BufEnter', -- after entering a buffer 'BufFilePost', -- after renaming a buffer 'BufFilePre', -- before renaming a buffer 'BufHidden...
{"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": "src/nvim/auevents.lua", "license": "mit", "size": 7547}
### File: src/nvim/autocmd.c // autocmd.c: Autocommand related functions #include <assert.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/private/helpers.h" #include "nvim/ascii_defs.h" #include "nvim/autocmd.h" #include "...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/autocmd.c", "license": "mit", "size": 77505}
### File: src/nvim/autocmd.h #pragma once #include <stdbool.h> #include <stddef.h> // IWYU pragma: keep #include <stdint.h> // IWYU pragma: keep #include "klib/kvec.h" #include "nvim/api/private/defs.h" // IWYU pragma: keep #include "nvim/autocmd_defs.h" // IWYU pragma: keep #include "nvim/buffer_defs.h" #include...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/autocmd.h", "license": "mit", "size": 3092}
### File: src/nvim/autocmd_defs.h #pragma once #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "nvim/buffer_defs.h" #include "nvim/ex_cmds_defs.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "auevents_enum.generated.h" #endif /// Struct to save values in before executing autocommands for a...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/autocmd_defs.h", "license": "mit", "size": 2781}
### File: src/nvim/base64.c #include <assert.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include "auto/config.h" // IWYU pragma: keep #include "nvim/ascii_defs.h" #include "nvim/base64.h" #include "nvim/memory.h" #ifdef HAVE_BE64TOH # include ENDIAN_INCLUDE_FILE #endif #ifdef INCLUDE_GENERATED_D...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/base64.c", "license": "mit", "size": 6227}
### File: src/nvim/base64.h #pragma once #include <stddef.h> // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "base64.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/base64.h", "license": "mit", "size": 135}
### File: src/nvim/buffer.c // // buffer.c: functions for dealing with the buffer structure // // // The buffer list is a double linked list of all buffers. // Each buffer can be in one of these states: // never loaded: BF_NEVERLOADED is set, only the file name is valid // not loaded: b_ml.ml_mfp == NULL, no memfile...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/buffer.c", "license": "mit", "size": 131558}
### File: src/nvim/buffer.h #pragma once #include <stdint.h> #include "nvim/buffer_defs.h" // IWYU pragma: keep #include "nvim/eval/typval_defs.h" #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/gettext_defs.h" // IWYU pragma: keep #include "nvim/macros_defs.h" #include "nvim/marktree_defs.h" #i...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/buffer.h", "license": "mit", "size": 3315}
### File: src/nvim/buffer_defs.h #pragma once #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "nvim/arglist_defs.h" #include "nvim/grid_defs.h" #include "nvim/mapping_defs.h" #include "nvim/marktree_defs.h" #include "nvim/memline_defs.h" #include "nvim/option_defs.h" #include "nvim/os/fs_defs.h" ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/buffer_defs.h", "license": "mit", "size": 58878}
### File: src/nvim/buffer_updates.c #include <inttypes.h> #include <lauxlib.h> #include <stdbool.h> #include <stddef.h> #include "klib/kvec.h" #include "nvim/api/buffer.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nvim/assert_defs.h" #include "nvim/buffer.h" #include "nvim/buff...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/buffer_updates.c", "license": "mit", "size": 12640}
### File: src/nvim/buffer_updates.h #pragma once #include <stdint.h> // IWYU pragma: keep #include "nvim/buffer_defs.h" // IWYU pragma: keep #include "nvim/extmark_defs.h" // IWYU pragma: keep #include "nvim/pos_defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "buffer_updates.h.genera...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/buffer_updates.h", "license": "mit", "size": 298}
### File: src/nvim/bufwrite.c // bufwrite.c: functions for writing a buffer #include <fcntl.h> #include <iconv.h> #include <inttypes.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <uv.h> #include "auto/config.h" #include "nvim/ascii_defs.h" #include "nvim/autocmd.h" #inc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/bufwrite.c", "license": "mit", "size": 63095}
### File: src/nvim/bufwrite.h #pragma once #include "nvim/ex_cmds_defs.h" // IWYU pragma: keep #include "nvim/pos_defs.h" // IWYU pragma: keep #include "nvim/types_defs.h" // IWYU pragma: keep #ifdef INCLUDE_GENERATED_DECLARATIONS # include "bufwrite.h.generated.h" #endif
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/bufwrite.h", "license": "mit", "size": 248}
### File: src/nvim/change.c /// change.c: functions related to changing text #include <assert.h> #include <stdbool.h> #include <stdint.h> #include <string.h> #include "nvim/ascii_defs.h" #include "nvim/assert_defs.h" #include "nvim/autocmd.h" #include "nvim/autocmd_defs.h" #include "nvim/buffer.h" #include "nvim/buff...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/change.c", "license": "mit", "size": 76381}
### File: src/nvim/change.h #pragma once #include <stddef.h> // IWYU pragma: keep #include "nvim/pos_defs.h" // IWYU pragma: keep #include "nvim/types_defs.h" // IWYU pragma: keep /// flags for open_line() enum { OPENLINE_DELSPACES = 0x01, ///< delete spaces after cursor OPENLINE_DO_COM = 0x02, ///< form...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/change.h", "license": "mit", "size": 632}
### File: src/nvim/channel.c #include <assert.h> #include <inttypes.h> #include <lauxlib.h> #include <stddef.h> #include <stdio.h> #include <string.h> #include "klib/kvec.h" #include "nvim/api/private/converter.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" #include "nvim/autocmd.h" #inclu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/channel.c", "license": "mit", "size": 27446}
### File: src/nvim/channel.h #pragma once #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "nvim/channel_defs.h" // IWYU pragma: keep #include "nvim/eval/typval_defs.h" #include "nvim/event/defs.h" #include "nvim/event/libuv_process.h" #include "nvim/macros_defs.h" #include "nvim/map_defs.h" #in...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/channel.h", "license": "mit", "size": 2163}
### File: src/nvim/channel_defs.h #pragma once #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "nvim/event/defs.h" #define CHAN_STDIO 1 #define CHAN_STDERR 2 typedef enum { kChannelStreamProc, kChannelStreamSocket, kChannelStreamStdio, kChannelStreamStderr, kChannelStreamInternal, } C...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "src/nvim/channel_defs.h", "license": "mit", "size": 1255}