harpoon: use example

This commit is contained in:
Pedro Alves 2023-02-14 19:43:36 +00:00
parent f20e75094b
commit cfc826546c

View file

@ -51,9 +51,8 @@ in
description = '' description = ''
Predefined projetcs. The keys of this attrs should be the path to the project. Predefined projetcs. The keys of this attrs should be the path to the project.
$HOME is working. $HOME is working.
'';
Example: example = ''
projects = { projects = {
"$HOME/personal/vim-with-me/server" = { "$HOME/personal/vim-with-me/server" = {
term.cmds = [ term.cmds = [
@ -84,12 +83,14 @@ in
config = config =
let let
projects = builtins.mapAttrs ( projects = builtins.mapAttrs
(
name: value: { name: value: {
term.cmds = value.termCommands; term.cmds = value.termCommands;
mark.marks = map (mark: { filename = mark; }) value.marks; mark.marks = map (mark: { filename = mark; }) value.marks;
} }
) cfg.projects; )
cfg.projects;
options = { options = {
global_settings = { global_settings = {