Compare commits

..

10 commits

Author SHA1 Message Date
Ching Pei Yang
2be50b2690
Merge branch 'main' into lualine-separators 2025-07-07 11:45:32 +02:00
Ching Pei Yang
d4b04d7aa0
Merge pull request #989 from lackac/docs/diagnostic-signs
docs: working example for `vim.diagnostics.config.signs`
2025-07-07 11:45:06 +02:00
raf
3b2a37ef3d
init/diagnostics: clearify wording for signs description 2025-07-07 12:38:07 +03:00
Ching Pei Yang
7199ee8ebf
Merge branch 'main' into docs/diagnostic-signs 2025-07-07 10:57:35 +02:00
Ching Pei Yang
733b42cc5f
Merge branch 'main' into lualine-separators 2025-07-07 10:57:09 +02:00
Laszlo Bacsi
6ec28999cb
docs: working example for vim.diagnostics.config.signs
Fixes #863
2025-07-04 22:46:40 +02:00
raf
b485040933
Merge pull request #985 from vaisriv/main
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
doc: fix un-buildable example code in pure-lua-config section
2025-07-03 08:35:35 +03:00
vai
398b845655
doc: fix un-buildable example code in pure lua config section
The example code references an invalid nvf option:
`vim.additionalRuntimeDirectories`. The correct option is
`vim.additionalRuntimePaths`.
2025-07-02 16:09:46 -07:00
Ching Pei Yang
5bad5dd94c
Merge pull request #975 from vaclavek-kamil/patch-1
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
Update vim.clipboard.registers type to str
2025-06-29 10:37:06 +02:00
Kamil Václavek
b79a5b1dcb
Update vim.clipboard.registers type to str
nvf.settings.vim.clipboard.registers allows for either a string or a list of strings, but Neovim only accepts a string value. Solved by updating the type to allow strings only.
2025-06-27 15:15:11 +02:00
3 changed files with 18 additions and 11 deletions

View file

@ -23,7 +23,7 @@ manner.
# flake.nix. For the sake of the argument, we will assume that the Neovim lua # flake.nix. For the sake of the argument, we will assume that the Neovim lua
# configuration is in a nvim/ directory relative to flake.nix. # configuration is in a nvim/ directory relative to flake.nix.
vim = { vim = {
additionalRuntimeDirectories = [ additionalRuntimePaths = [
# This will be added to Neovim's runtime paths. Conceptually, this behaves # This will be added to Neovim's runtime paths. Conceptually, this behaves
# very similarly to ~/.config/nvim but you may not place a top-level # very similarly to ~/.config/nvim but you may not place a top-level
# init.lua to be able to require it directly. # init.lua to be able to require it directly.
@ -41,7 +41,7 @@ directory, and call it with [](#opt-vim.luaConfigRC).
```nix ```nix
{pkgs, ...}: { {pkgs, ...}: {
vim = { vim = {
additionalRuntimeDirectories = [ additionalRuntimePaths = [
# You can list more than one file here. # You can list more than one file here.
./nvim-custom-1 ./nvim-custom-1

View file

@ -20,7 +20,7 @@ in {
''; '';
registers = mkOption { registers = mkOption {
type = either str (listOf str); type = str;
default = ""; default = "";
example = "unnamedplus"; example = "unnamedplus";
description = '' description = ''
@ -33,8 +33,8 @@ in {
`"+"` ({command}`:h quoteplus`) instead of register `"*"` for all yank, delete, `"+"` ({command}`:h quoteplus`) instead of register `"*"` for all yank, delete,
change and put operations which would normally go to the unnamed register. change and put operations which would normally go to the unnamed register.
When `unnamed` and `unnamedplus` is included simultaneously yank and delete When `unnamed` and `unnamedplus` is included simultaneously as `"unnamed,unnamedplus"`,
operations (but not put) will additionally copy the text into register `"*"`. yank and delete operations (but not put) will additionally copy the text into register `"*"`.
Please see {command}`:h clipboard` for more details. Please see {command}`:h clipboard` for more details.

View file

@ -57,14 +57,21 @@
signs = mkOption { signs = mkOption {
type = diagnosticType; type = diagnosticType;
default = false; default = false;
example = { example = literalExpression ''
signs.text = { signs.text = lib.generators.mkLuaInline '''
"vim.diagnostic.severity.ERROR" = "󰅚 "; {
"vim.diagnostic.severity.WARN" = "󰀪 "; [vim.diagnostic.severity.ERROR] = "󰅚 ",
}; [vim.diagnostic.severity.WARN] = "󰀪 ",
}; }
''';
'';
description = '' description = ''
Use signs for diagnostics. See {command}`:help diagnostic-signs`. Use signs for diagnostics. See {command}`:help diagnostic-signs`.
:::{.note}
The code presented in that example section uses Lua expressions as object keys which
only translate well if you use `lib.generators.mkLuaInline` as in the example.
:::
''; '';
}; };