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:
parent
055c67056d
commit
8544cd0920
10 changed files with 282 additions and 0 deletions
18
tests/modules/programs/lapce/example-keymaps.nix
Normal file
18
tests/modules/programs/lapce/example-keymaps.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue