mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-28 22:08:46 +02:00
harpoon: use example
This commit is contained in:
parent
f20e75094b
commit
cfc826546c
1 changed files with 12 additions and 11 deletions
|
@ -7,7 +7,7 @@ let
|
||||||
projectConfigModule = types.submodule {
|
projectConfigModule = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
termCommands = helpers.mkNullOrOption (types.listOf types.str) ''
|
termCommands = helpers.mkNullOrOption (types.listOf types.str) ''
|
||||||
List of predefined terminal commands for this project.
|
List of predefined terminal commands for this project.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
marks = helpers.mkNullOrOption (types.listOf types.str) ''
|
marks = helpers.mkNullOrOption (types.listOf types.str) ''
|
||||||
|
@ -47,13 +47,12 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
projects = mkOption {
|
projects = mkOption {
|
||||||
default = {};
|
default = { };
|
||||||
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: {
|
(
|
||||||
term.cmds = value.termCommands;
|
name: value: {
|
||||||
mark.marks = map (mark: { filename = mark; }) value.marks;
|
term.cmds = value.termCommands;
|
||||||
}
|
mark.marks = map (mark: { filename = mark; }) value.marks;
|
||||||
) cfg.projects;
|
}
|
||||||
|
)
|
||||||
|
cfg.projects;
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
global_settings = {
|
global_settings = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue