diff --git a/nix/home-manager/flake.lock b/nix/home-manager/flake.lock index 82c3a4e..0f2fbc8 100644 --- a/nix/home-manager/flake.lock +++ b/nix/home-manager/flake.lock @@ -82,11 +82,11 @@ ] }, "locked": { - "lastModified": 1685553090, - "narHash": "sha256-DsAYE1AaR4NcZeeotEIE1XlNVXAv8NxUVDxOb7t4wxU=", + "lastModified": 1685573046, + "narHash": "sha256-IktTf92Fl1yU8qI2s0MRx3//k6NDmFuqZrGHKJV8i4M=", "owner": "nix-community", "repo": "home-manager", - "rev": "f1490b8caf2ef6f59205c78cf1a8b68e776214a3", + "rev": "96078e4a939b5e5fec1cfd83a11b3df7146a58ff", "type": "github" }, "original": { diff --git a/nix/home-manager/modules/files.nix b/nix/home-manager/modules/files.nix index d60fb01..628dc9e 100644 --- a/nix/home-manager/modules/files.nix +++ b/nix/home-manager/modules/files.nix @@ -6,6 +6,7 @@ }: { home.file.".ideavimrc".source = ../../../ideavim/ideavimrc; xdg.configFile."erdtree/.erdtreerc".source = ../../../erdtree/erdtreerc; + xdg.configFile."ov/config.yaml".source = ../../../ov/ov-less.yaml; # TODO # git-sync binary # ideavimrc diff --git a/nix/home-manager/modules/packages/default.nix b/nix/home-manager/modules/packages/default.nix index 50b9266..e8fd715 100644 --- a/nix/home-manager/modules/packages/default.nix +++ b/nix/home-manager/modules/packages/default.nix @@ -34,6 +34,7 @@ litecli magic-wormhole-rs neovim + ov pdm poetry racket diff --git a/ov/ov-less.yaml b/ov/ov-less.yaml new file mode 100644 index 0000000..cc4687d --- /dev/null +++ b/ov/ov-less.yaml @@ -0,0 +1,218 @@ +# This is a file with less key bindings set. +# Copy it to `$XDG_CONFIG_HOME/ov/config.yaml` or start it with `ov --config ov.yaml`. +# Thanks to hupfdule (Marco Herrn) for the less keybinding information. +# +# CaseSensitive: false +# RegexpSearch: false +# Incsearch: true +# MemoryLimit: 10000 + +General: + TabWidth: 4 + Header: 0 + AlternateRows: false + ColumnMode: false + LineNumMode: false + WrapMode: true + ColumnDelimiter: "," + MarkStyleWidth: 1 + +# Style +# String of the color name: Foreground, Background +# Boolean: Bold, Blink, Dim, Italic, Underline +StyleAlternate: + Background: "gray" +StyleHeader: + Bold: true +StyleOverStrike: + Bold: true +StyleOverLine: + Underline: true +StyleSearchHighlight: + Reverse: true +StyleColumnHighlight: + Reverse: true +StyleMarkLine: + Background: "darkgoldenrod" +StyleSectionLine: + Background: "green" +StyleMultiColorHighlight: + - Foreground: "red" + - Foreground: "aqua" + - Foreground: "yellow" + - Foreground: "fuchsia" + - Foreground: "lime" + - Foreground: "blue" + - Foreground: "grey" +StyleJumpTargetLine: + Underline: false + +# Keybind +# Special key +# "Enter","Backspace","Tab","Backtab","Esc", +# "Backspace2", "Delete", "Insert", +# "Up", "Down", "Left", "Right", "Home", "End", +# "F1...F64" +# Modifier key +# "ctrl", "alt", "meta", "shift" +# Connect with modifier key + key +# "ctrl+c" +KeyBind: + exit: + - "Escape" + - "q" + cancel: + - "ctrl+c" + write_exit: + - "Q" + set_write_exit: + - "ctrl+q" + suspend: + - "ctrl+z" + sync: + - "r" + - "ctrl+l" + reload: + - "R" + - "ctrl+r" + watch: + - "T" + - "ctrl+alt+w" + watch_interval: + - "ctrl+w" + follow_mode: + - "F" + follow_all: + - "ctrl+a" + follow_section: + - "F2" + help: + - "h" + - "ctrl+alt+c" + logdoc: + - "ctrl+alt+e" + down: + - "e" + - "ctrl+e" + - "j" + - "J" + - "ctrl+j" + - "Enter" + - "Down" + up: + - "y" + - "Y" + - "ctrl+y" + - "k" + - "K" + - "ctrl+K" + - "Up" + top: + - "Home" + - "g" + - "<" + bottom: + - "End" + - ">" + - "G" + left: + - "left" + right: + - "right" + half_left: + - "ctrl+left" + half_right: + - "ctrl+right" + page_up: + - "PageUp" + - "b" + - "alt+v" + page_down: + - "PageDown" + - "ctrl+v" + - "alt+space" + - "f" + - "z" + page_half_up: + - "u" + - "ctrl+u" + page_half_down: + - "d" + - "ctrl+d" + section_delimiter: + - "alt+d" + section_start: + - "ctrl+F3" + - "alt+s" + next_section: + - "space" + last_section: + - "9" + previous_section: + - "^" + mark: + - "m" + remove_mark: + - "M" + remove_all_mark: + - "ctrl+delete" + next_mark: + - "alt+>" + previous_mark: + - "alt+<" + set_view_mode: + - "p" + - "P" + alter_rows_mode: + - "C" + line_number_mode: + - "alt+n" + search: + - "/" + wrap_mode: + - "w" + - "W" + column_mode: + - "c" + backsearch: + - "?" + delimiter: + - "d" + header: + - "H" + skip_lines: + - "ctrl+s" + tabwidth: + - "t" + goto: + - ":" + next_search: + - "n" + next_backsearch: + - "N" + next_doc: + - "]" + previous_doc: + - "[" + toggle_mouse: + - "ctrl+alt+r" + multi_color: + - "." + jump_target: + - "alt+j" + +Mode: + psql: + Header: 2 + AlternateRows: true + ColumnMode: true + LineNumMode: false + WrapMode: true + ColumnDelimiter: "|" + MySQL: + Header: 3 + AlternateRows: true + ColumnMode: true + LineNumMode: false + WrapMode: true + ColumnDelimiter: "|"