lapce: add module (#5752)

Adds the 'programs.lapce' module for configuring lapce text editor.
Options for settings, plugins and keymaps are available.
This commit is contained in:
Timon Schelling 2025-02-01 14:03:26 +01:00 committed by GitHub
parent 055c67056d
commit 8544cd0920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 282 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ config, ... }:
{
programs.lapce = {
enable = true;
package = config.lib.test.mkStubPackage { };
keymaps = [{
command = "open_log_file";
key = "Ctrl+Shift+L";
}];
};
nmt.script = ''
assertFileContent \
home-files/.config/lapce-stable/keymaps.toml \
${./example-keymaps-expected.toml}
'';
}