docs: misc (#29719)

Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Co-authored-by: Lauri Heiskanen <lauri.heiskanen@nimble.fi>
Co-authored-by: Piotr Doroszewski <5605596+Doroszewski@users.noreply.github.com>
Co-authored-by: Tobiasz Laskowski <tobil4sk@outlook.com>
Co-authored-by: ariel-lindemann <41641978+ariel-lindemann@users.noreply.github.com>
Co-authored-by: glepnir <glephunter@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
dundargoc 2024-08-29 00:11:32 +02:00 committed by GitHub
parent 3085c9d9da
commit cd05a72fec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 25 additions and 22 deletions

View File

@ -112,7 +112,7 @@ sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz sudo tar -C /opt -xzf nvim-linux64.tar.gz
``` ```
Then add this to your shell config (`~/.bashrc`, `~/. zshrc`, ...): Then add this to your shell config (`~/.bashrc`, `~/.zshrc`, ...):
export PATH="$PATH:/opt/nvim-linux64/bin" export PATH="$PATH:/opt/nvim-linux64/bin"
@ -129,7 +129,7 @@ To expose nvim globally:
mkdir -p /opt/nvim mkdir -p /opt/nvim
mv nvim.appimage /opt/nvim/nvim mv nvim.appimage /opt/nvim/nvim
And the following line to your shell config (`~/.bashrc`, `~/. zshrc`, ...): And the following line to your shell config (`~/.bashrc`, `~/.zshrc`, ...):
export PATH="$PATH:/opt/nvim/" export PATH="$PATH:/opt/nvim/"

View File

@ -170,6 +170,9 @@ Other dependencies
* https://github.com/nvim-winget * https://github.com/nvim-winget
* Org secrets/tokens: * Org secrets/tokens:
* `CODECOV_TOKEN` * `CODECOV_TOKEN`
* `BACKPORT_KEY`
* Org/repo variables:
* `BACKPORT_APP`
* Domain names (held in https://namecheap.com): * Domain names (held in https://namecheap.com):
* neovim.org * neovim.org
* neovim.io * neovim.io
@ -185,10 +188,10 @@ Refactoring
Refactoring Vim structurally and aesthetically is an important goal of Neovim. Refactoring Vim structurally and aesthetically is an important goal of Neovim.
But there are some modules that should not be changed significantly, because But there are some modules that should not be changed significantly, because
they are maintained Vim, at present. Until someone takes "ownership" of these they are maintained by Vim, at present. Until someone takes "ownership" of
modules, the cost of any significant changes (including style or structural these modules, the cost of any significant changes (including style or
changes that re-arrange the code) to these modules outweighs the benefit. The structural changes that re-arrange the code) to these modules outweighs the
modules are: benefit. The modules are:
- `regexp.c` - `regexp.c`
- `indent_c.c` - `indent_c.c`

View File

@ -50,6 +50,7 @@
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_TS=OFF # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_TS=OFF
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_TS_PARSERS=OFF # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_TS_PARSERS=OFF
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UNIBILIUM=OFF # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UNIBILIUM=OFF
# DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UTF8PROC=OFF
# #
# Or disable all bundled dependencies at once. # Or disable all bundled dependencies at once.
# #

View File

@ -1263,7 +1263,7 @@ executable({expr}) *executable()*
On MS-Windows the ".exe", ".bat", etc. can optionally be On MS-Windows the ".exe", ".bat", etc. can optionally be
included. Then the extensions in $PATHEXT are tried. Thus if included. Then the extensions in $PATHEXT are tried. Thus if
"foo.exe" does not exist, "foo.exe.bat" can be found. If "foo.exe" does not exist, "foo.exe.bat" can be found. If
$PATHEXT is not set then ".exe;.com;.bat;.cmd" is used. A dot $PATHEXT is not set then ".com;.exe;.bat;.cmd" is used. A dot
by itself can be used in $PATHEXT to try using the name by itself can be used in $PATHEXT to try using the name
without an extension. When 'shell' looks like a Unix shell, without an extension. When 'shell' looks like a Unix shell,
then the name is also tried without adding an extension. then the name is also tried without adding an extension.

View File

@ -765,7 +765,7 @@ formatexpr({opts}) *vim.lsp.formatexpr()*
function. function.
Currently only supports a single client. This can be set via Currently only supports a single client. This can be set via
`setlocal formatexpr=v:lua.vim.lsp.formatexpr()` but will typically or in `setlocal formatexpr=v:lua.vim.lsp.formatexpr()` or (more typically) in
`on_attach` via `on_attach` via
`vim.bo[bufnr].formatexpr = 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})'`. `vim.bo[bufnr].formatexpr = 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})'`.

View File

@ -2674,7 +2674,7 @@ vim.filetype.add({filetypes}) *vim.filetype.add()*
['.*/etc/foo/.*%.conf'] = { 'dosini', { priority = 10 } }, ['.*/etc/foo/.*%.conf'] = { 'dosini', { priority = 10 } },
-- A pattern containing an environment variable -- A pattern containing an environment variable
['${XDG_CONFIG_HOME}/foo/git'] = 'git', ['${XDG_CONFIG_HOME}/foo/git'] = 'git',
['README.(%a+)$'] = function(path, bufnr, ext) ['.*README.(%a+)'] = function(path, bufnr, ext)
if ext == 'md' then if ext == 'md' then
return 'markdown' return 'markdown'
elseif ext == 'rst' then elseif ext == 'rst' then

View File

@ -22,11 +22,9 @@ search for in the `parser` runtime directory.
Nvim includes these parsers: Nvim includes these parsers:
- Bash
- C - C
- Lua - Lua
- Markdown - Markdown
- Python
- Vimscript - Vimscript
- Vimdoc - Vimdoc
- Treesitter query files |ft-query-plugin| - Treesitter query files |ft-query-plugin|
@ -550,9 +548,9 @@ the exact definition):
@keyword.coroutine keywords related to coroutines (e.g. `go` in Go, `async/await` in Python) @keyword.coroutine keywords related to coroutines (e.g. `go` in Go, `async/await` in Python)
@keyword.function keywords that define a function (e.g. `func` in Go, `def` in Python) @keyword.function keywords that define a function (e.g. `func` in Go, `def` in Python)
@keyword.operator operators that are English words (e.g. `and`, `or`) @keyword.operator operators that are English words (e.g. `and`, `or`)
@keyword.import keywords for including modules (e.g. `import`, `from` in Python) @keyword.import keywords for including or exporting modules (e.g. `import`, `from` in Python)
@keyword.type keywords defining composite types (e.g. `struct`, `enum`) @keyword.type keywords describing namespaces and composite types (e.g. `struct`, `enum`)
@keyword.modifier keywords defining type modifiers (e.g. `const`, `static`, `public`) @keyword.modifier keywords modifying other constructs (e.g. `const`, `static`, `public`)
@keyword.repeat keywords related to loops (e.g. `for`, `while`) @keyword.repeat keywords related to loops (e.g. `for`, `while`)
@keyword.return keywords like `return` and `yield` @keyword.return keywords like `return` and `yield`
@keyword.debug keywords related to debugging @keyword.debug keywords related to debugging
@ -608,7 +606,7 @@ the exact definition):
@diff.delta changed text (for diff files) @diff.delta changed text (for diff files)
@tag XML-style tag names (e.g. in XML, HTML, etc.) @tag XML-style tag names (e.g. in XML, HTML, etc.)
@tag.builtin XML-style tag names (e.g. HTML5 tags) @tag.builtin builtin tag names (e.g. HTML5 tags)
@tag.attribute XML-style tag attributes @tag.attribute XML-style tag attributes
@tag.delimiter XML-style tag delimiters @tag.delimiter XML-style tag delimiters

View File

@ -1593,7 +1593,7 @@ function vim.fn.eventhandler() end
--- On MS-Windows the ".exe", ".bat", etc. can optionally be --- On MS-Windows the ".exe", ".bat", etc. can optionally be
--- included. Then the extensions in $PATHEXT are tried. Thus if --- included. Then the extensions in $PATHEXT are tried. Thus if
--- "foo.exe" does not exist, "foo.exe.bat" can be found. If --- "foo.exe" does not exist, "foo.exe.bat" can be found. If
--- $PATHEXT is not set then ".exe;.com;.bat;.cmd" is used. A dot --- $PATHEXT is not set then ".com;.exe;.bat;.cmd" is used. A dot
--- by itself can be used in $PATHEXT to try using the name --- by itself can be used in $PATHEXT to try using the name
--- without an extension. When 'shell' looks like a Unix shell, --- without an extension. When 'shell' looks like a Unix shell,
--- then the name is also tried without adding an extension. --- then the name is also tried without adding an extension.

View File

@ -2518,7 +2518,7 @@ end
--- ['.*/etc/foo/.*%.conf'] = { 'dosini', { priority = 10 } }, --- ['.*/etc/foo/.*%.conf'] = { 'dosini', { priority = 10 } },
--- -- A pattern containing an environment variable --- -- A pattern containing an environment variable
--- ['${XDG_CONFIG_HOME}/foo/git'] = 'git', --- ['${XDG_CONFIG_HOME}/foo/git'] = 'git',
--- ['README.(%a+)$'] = function(path, bufnr, ext) --- ['.*README.(%a+)'] = function(path, bufnr, ext)
--- if ext == 'md' then --- if ext == 'md' then
--- return 'markdown' --- return 'markdown'
--- elseif ext == 'rst' then --- elseif ext == 'rst' then

View File

@ -1031,7 +1031,7 @@ end
--- Provides an interface between the built-in client and a `formatexpr` function. --- Provides an interface between the built-in client and a `formatexpr` function.
--- ---
--- Currently only supports a single client. This can be set via --- Currently only supports a single client. This can be set via
--- `setlocal formatexpr=v:lua.vim.lsp.formatexpr()` but will typically or in `on_attach` --- `setlocal formatexpr=v:lua.vim.lsp.formatexpr()` or (more typically) in `on_attach`
--- via `vim.bo[bufnr].formatexpr = 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})'`. --- via `vim.bo[bufnr].formatexpr = 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})'`.
--- ---
---@param opts? vim.lsp.formatexpr.Opts ---@param opts? vim.lsp.formatexpr.Opts

View File

@ -4,6 +4,7 @@ GenericName=Text Editor
GenericName[ckb]=دەستکاریکەری دەق GenericName[ckb]=دەستکاریکەری دەق
GenericName[de]=Texteditor GenericName[de]=Texteditor
GenericName[fr]=Éditeur de texte GenericName[fr]=Éditeur de texte
GenericName[pl]=Edytor tekstu
GenericName[ru]=Текстовый редактор GenericName[ru]=Текстовый редактор
GenericName[sr]=Едитор текст GenericName[sr]=Едитор текст
GenericName[tr]=Metin Düzenleyici GenericName[tr]=Metin Düzenleyici

View File

@ -2066,7 +2066,7 @@ M.funcs = {
On MS-Windows the ".exe", ".bat", etc. can optionally be On MS-Windows the ".exe", ".bat", etc. can optionally be
included. Then the extensions in $PATHEXT are tried. Thus if included. Then the extensions in $PATHEXT are tried. Thus if
"foo.exe" does not exist, "foo.exe.bat" can be found. If "foo.exe" does not exist, "foo.exe.bat" can be found. If
$PATHEXT is not set then ".exe;.com;.bat;.cmd" is used. A dot $PATHEXT is not set then ".com;.exe;.bat;.cmd" is used. A dot
by itself can be used in $PATHEXT to try using the name by itself can be used in $PATHEXT to try using the name
without an extension. When 'shell' looks like a Unix shell, without an extension. When 'shell' looks like a Unix shell,
then the name is also tried without adding an extension. then the name is also tried without adding an extension.

View File

@ -199,7 +199,7 @@ void *xmallocz(size_t size)
{ {
size_t total_size = size + 1; size_t total_size = size + 1;
if (total_size < size) { if (total_size < size) {
preserve_exit(_("Vim: Data too large to fit into virtual memory space\n")); preserve_exit(_("Nvim: Data too large to fit into virtual memory space\n"));
} }
void *ret = xmalloc(total_size); void *ret = xmalloc(total_size);

View File

@ -564,7 +564,7 @@ static void read_error_exit(void)
if (silent_mode) { // Normal way to exit for "nvim -es". if (silent_mode) { // Normal way to exit for "nvim -es".
getout(0); getout(0);
} }
preserve_exit(_("Vim: Error reading input, exiting...\n")); preserve_exit(_("Nvim: Error reading input, exiting...\n"));
} }
static bool pending_events(MultiQueue *events) static bool pending_events(MultiQueue *events)

View File

@ -1038,7 +1038,7 @@ static void clear_region(TUIData *tui, int top, int bot, int left, int right, in
// with the default colorscheme background. Consequently, any flush that happens // with the default colorscheme background. Consequently, any flush that happens
// during startup would result in clearing invalidated regions with zeroed // during startup would result in clearing invalidated regions with zeroed
// clear_attrs, perceived as a black flicker. Reset attributes to clear with // clear_attrs, perceived as a black flicker. Reset attributes to clear with
// current terminal background instead(#28667, #28668). // current terminal background instead (#28667, #28668).
if (tui->set_default_colors) { if (tui->set_default_colors) {
update_attrs(tui, attr_id); update_attrs(tui, attr_id);
} else { } else {