Compare commits

...

12 commits

Author SHA1 Message Date
raf
d91df07c7b
Merge pull request #851 from howird/main
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
languages/python: fix python dap configuration regression
2025-04-23 20:01:05 +00:00
raf
d407a9ac0f
Merge branch 'main' into main 2025-04-23 19:54:58 +00:00
raf
2bee8b8a9d
Merge pull request #852 from Noah765/fix-highlight-color-type
highlight: fix color type
2025-04-23 19:38:00 +00:00
raf
43421d5612
Merge branch 'main' into fix-highlight-color-type 2025-04-23 19:36:13 +00:00
Noah765
990d3598b1 highlight: fix color type
The color options also allow color definitions in the form of color names.
2025-04-23 21:28:17 +02:00
Howard Nguyen-Huu
8b305e8ed1
fix: python dap configuration regression 2025-04-23 14:52:21 -04:00
raf
3202c4deba
Merge pull request #847 from aionoid/markdown_fix
languages/render-markdown-nvim: add file_types as list
2025-04-23 15:28:11 +00:00
raf
8441eab1b2
Merge branch 'main' into markdown_fix 2025-04-23 13:19:37 +00:00
8ab559ccfe
mini/cursorword: init 2025-04-23 16:02:39 +03:00
Farouk Brown
3e3d7171c1 ref: change file_types type to nullOr(listOf str) 2025-04-22 22:36:11 +01:00
Farouk Brown
95e2eec30b doc: format description to a multi-line string 2025-04-22 21:32:53 +01:00
Farouk Brown
9220c27e85 languages/render-markdown-nvim: add file_types as list
set file_types as listOf (nullOr str) to allow merging
2025-04-22 17:55:21 +01:00
9 changed files with 72 additions and 6 deletions

View file

@ -340,7 +340,12 @@
- Add missing `flutter-tools.nvim` dependency `plenary.nvim`.
- Add necessary dependency of `flutter-tools.nvim` on lsp.
- Add the `vim.languages.dart.flutter-tools.flutterPackage` option.
- Fix the type of the `highlight` color options.
[howird](https://github.com/howird):
- Change python dap adapter name from `python` to commonly expected `debugpy`.
[aionoid](https://github.com/aionoid):
- Fix [render-markdown.nvim] file_types option type to list, to accept merging.

View file

@ -5,15 +5,14 @@
}: let
inherit (lib.options) mkOption;
inherit (lib.types) nullOr attrsOf listOf submodule bool ints str enum;
inherit (lib.strings) hasPrefix concatLines;
inherit (lib.strings) concatLines;
inherit (lib.attrsets) mapAttrsToList;
inherit (lib.nvim.dag) entryBetween;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.types) hexColor;
mkColorOption = target:
mkOption {
type = nullOr hexColor;
type = nullOr str;
default = null;
example = "#ebdbb2";
description = ''

View file

@ -9,7 +9,7 @@
inherit (lib.modules) mkIf mkMerge;
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.lists) isList;
inherit (lib.types) bool enum either package listOf str;
inherit (lib.types) bool enum either package listOf str nullOr;
inherit (lib.nvim.lua) expToLua toLuaObject;
inherit (lib.nvim.types) diagnostics mkGrammarOption mkPluginSetupOption;
inherit (lib.nvim.dag) entryAnywhere;
@ -117,7 +117,18 @@ in {
'';
};
setupOpts = mkPluginSetupOption "render-markdown" {};
setupOpts = mkPluginSetupOption "render-markdown" {
file_types = lib.mkOption {
type = nullOr (listOf str);
default = null;
description = ''
List of buffer filetypes to enable this plugin in.
This will cause the plugin to attach to new buffers who
have any of these filetypes.
'';
};
};
};
};

View file

@ -125,7 +125,7 @@
end
end
dap.configurations.debugpy = {
dap.configurations.python = {
{
-- The first three options are required by nvim-dap
type = 'debugpy'; -- the type here established the link to the adapter definition: `dap.adapters.debugpy`

View file

@ -0,0 +1,19 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.mini.cursorword;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-cursorword"];
pluginRC.mini-ai = entryAnywhere ''
require("mini.cursorword").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,9 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.mini.cursorword = {
enable = mkEnableOption "mini.cursorword";
setupOpts = mkPluginSetupOption "mini.cursorword" {};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./cursorword.nix
./config.nix
];
}

View file

@ -11,6 +11,7 @@
./colors
./comment
./completion
./cursorword
./diff
./doc
./extra

View file

@ -1020,6 +1020,22 @@
"url": "https://github.com/echasnovski/mini.completion/archive/35130cebc63ace7d6e4583f349af8cd3f3141af7.tar.gz",
"hash": "0h5z5i62cc780bzw60rbizngvpyl4vk7j858pndyi2g572plz929"
},
"mini-cursorword": {
"type": "GitRelease",
"repository": {
"type": "GitHub",
"owner": "echasnovski",
"repo": "mini.cursorword"
},
"pre_releases": false,
"version_upper_bound": null,
"release_prefix": null,
"submodules": false,
"version": "v0.15.0",
"revision": "6683f04509c380e3147cca368f90bbdb99641775",
"url": "https://api.github.com/repos/echasnovski/mini.cursorword/tarball/v0.15.0",
"hash": "0vqr4hkzq13ap6giyyp8asn5g6nnm406piq1a07a5nmkfxiskp9v"
},
"mini-diff": {
"type": "Git",
"repository": {