Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
6b87f790adbb9fe61a20bc2721920d230e6e27e0
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 80a38b4414e5 · Showing diff
- Parent 2: 120360ceead8 · Diff against parent 2
bugabingas dorkfiles
6b87f790adbb9fe61a20bc2721920d230e6e27e0
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+2551 / −1354 text lines · all files grouped into 32 bars · 2 metadata-only
new file mode 100644+299 / −0 text lines
################################################################ This configuration file lets you# - define new commands# - change the shortcut or triggering keys of built-in verbs# - change the colors# - set default values for flags# - set special behaviors on specific paths# - and more...## Configuration documentation is available at# https://dystroy.org/broot## This file's format is Hjson ( https://hjson.github.io/ ). Some# properties are commented out. To enable them, remove the `#`.################################################################################################################################ Default flags# You can set up flags you want broot to start with by# default, for example `default_flags="-ihp"` if you usually want# to see hidden and gitignored files and the permissions (then# if you don't want the hidden files at a specific launch,# you can launch broot with `br -H`).# A popular flag is the `g` one which displays git related info.## default_flags:################################################################ Terminal's title# If you want the terminal's title to be updated when you change# directory, set a terminal_title pattern by uncommenting one of# the examples below and tuning it to your taste.## terminal_title: "[broot] {git-name}"# terminal_title: "{file} 🐄"# terminal_title: "-= {file-name} =-"################################################################ Date/Time format# If you want to change the format for date/time, uncomment the# following line and change it according to# https://docs.rs/chrono/0.4.11/chrono/format/strftime/index.html## date_time_format: %Y/%m/%d %R################################################################ uncomment to activate modal mode## (you really should read https://dystroy.org/broot/modal/# before as it may not suit everybody even among vim users)## You may start either in 'command' mode, or in 'input' mode## modal: true# initial_mode: command################################################################ Whether to mark the selected line with a triangle#show_selection_mark: true################################################################ Column order# cols_order, if specified, must be a permutation of the following# array. You should keep the name column at the end as it has a# variable length.## cols_order: [# mark# git# size# permission# date# count# branch# name# ]################################################################ True Colors# If this parameter isn't set, broot tries to automatically# determine whether true colors (24 bits) are available.# As this process is unreliable, you may uncomment this setting# and set it to false or true if you notice the colors in# previewed images are too off.#true_colors: true################################################################ Icons# If you want to display icons in broot, uncomment this line# (see https://dystroy.org/broot/icons for installation and# troubleshooting)## icon_theme: vscode################################################################ Special paths# If some paths must be handled specially, uncomment (and change# this section as per the examples)# Setting "list":"never" on a dir prevents broot from looking at its # children when searching, unless the dir is the selected root.# Setting "sum":"never" on a dir prevents broot from looking at its# children when computing the total size and count of files.# Setting "show":"always" makes a file visible even if its name# starts with a dot.# Setting "list":"always" may be useful on a link to a directory# (they're otherwise not entered by broot unless selected)#special_paths: { "/media" : { list: "never" sum: "never" } "~/.config": { "show": "always" } "trav": { show: always list: "always", sum: "never" } # "~/useless": { "show": "never" } # "~/my-link-I-want-to-explore": { "list": "always" }}################################################################ Quit on last cancel# You can usually cancel the last state change on escape.# If you want the escape key to quit broot when there's nothing# to cancel (for example when you just opened broot), uncomment# this parameter# # quit_on_last_cancel: true################################################################ Search modes## broot allows many search modes.# A search mode is defined by# - the way to search: 'fuzzy', 'exact', 'regex', or 'tokens'.# - where to search: file 'name', 'path', or file 'content'# A search pattern may for example be "fuzzy path" (default),# "regex content" or "exact path".## The search mode is selected from its prefix. For example, if# you type "abc", the default mode is "fuzzy path". If you type# "/abc", the mode is "regex path". If you type "rn/abc", the mode# is "regex name".## This mapping may be modified. You may want to dedicate the# empty prefix (the one which doesn't need a '/') to the# search mode you use most often. The example below makes it# easy to search on name rather than on the subpath.## More information on# https://dystroy.org/broot/input/#the-filtering-pattern## search_modes: {# <empty>: fuzzy name# /: regex name# }################################################################ File Extension Colors## uncomment and modify the next section if you want to color# file name depending on their extension## ext_colors: {# png: rgb(255, 128, 75)# rs: yellow# }################################################################ Max file size for content search## Bigger files are ignored when searching their content. You# can specify this size either in ISO units (eg 5GB) or in# the old binary units (eg 44Kib)content_search_max_file_size: 10MB################################################################ Max Panels Count## Change this if you sometimes want to have more than 2 panels# open# max_panels_count: 2################################################################ Update work dir## By default, broot process' work dir is kept in sync with the# current's panel root. If you want to keep it unchanged,# uncomment this setting## update_work_dir: false################################################################ Kitty Keyboard extension## If you want to use advanced keyboard shortcuts in Kitty# compatible terminals (Kitty, Wezterm), set this to true.# # This makes it possible to use shortcuts like 'space-n', # 'ctrl-alt-a-b', 'shift-space', etc.#enable_kitty_keyboard: false################################################################ lines around matching line in filtered preview## When searching the content of a file, you can have either# only the matching lines displayed, or some of the surrounding# ones too.#lines_before_match_in_preview: 1lines_after_match_in_preview: 1################################################################ transformations before preview## It's possible to define transformations to apply to some files# before calling one of the default preview renderers in broot.# Below are two examples that you may uncomment and adapt:#preview_transformers: [ // # Use mutool to render any PDF file as an image // # In this example we use placeholders for the input and output files // { // input_extensions: [ "pdf" ] // case doesn't matter // output_extension: png // mode: image // command: [ "mutool", "draw", "-w", "1000", "-o", "{output-path}", "{input-path}" ] // } // # Use LibreOffice to render Office files as images // # In this example, {output-dir} is used to specify where LibreOffice must write the result // { // input_extensions: [ "xls", "xlsx", "doc", "docx", "ppt", "pptx", "ods", "odt", "odp" ] // output_extension: png // mode: image // command: [ // "libreoffice", "--headless", // "--convert-to", "png", // "--outdir", "{output-dir}", // "{input-path}" // ] // } // # Use jq to beautify JSON // # In this example, the command refers to neither the input nor the output, // # so broot pipes them to the stdin and stdout of the jq process // { // input_extensions: [ "json" ] // output_extension: json // mode: text // command: [ "jq" ] // }]################################################################ Imports## While it's possible to have all configuration in one file,# it's more convenient to split it in several ones.# Importing also allows to set a condition on the terminal's# color, which makes it possible to have a different skin # chosen when your terminal has a light background and when# it has a light one.imports: [ # Verbs are better configured in verbs.hjson. But you # can also add another files for your personal verbs verbs.hjson # This file contains the skin to use when the terminal # is dark (or when this couldn't be determined) { luma: [ dark unknown ] # (un)comment to choose your preferred skin file: skins/dark-blue.hjson //file: skins/catppuccin-macchiato.hjson //file: skins/catppuccin-mocha.hjson //file: skins/dark-gruvbox.hjson //file: skins/dark-orange.hjson //file: skins/solarized-dark.hjson } # This skin is imported when your terminal is light { luma: light # (un)comment to choose your preferred skin //file: skins/solarized-light.hjson file: skins/white.hjson }]new file mode 120000Link change (old → new): absent → target: /home/oli/.local/share/broot/launcher/bash/1.
new file mode 100644+4 / −0 text lines
new file mode 120000Link change (old → new): absent → target: /home/oli/.local/share/broot/launcher/nushell/6.
new file mode 100644+171 / −0 text lines
################################################################ A skin for a terminal with a dark background# This skin uses RGB values so won't work for some# terminals.## Created by Majixed# Based on the catppuccin-mocha theme by A. Taha Baki <atahabaki@pm.me>## Doc at https://dystroy.org/broot/skins/###############################################################skin: { input: rgb(202, 211, 245) none # fg:none bg:$surface2 selected_line: none rgb(91, 96, 120) # fg:$text bg:none default: rgb(202, 211, 245) none # fg:$overlay0 bg:none tree: rgb(110, 115, 141) none # fg:$sapphire bg:none parent: rgb(125, 196, 228) none file: none none#### PERMISSIONS# perm__: rgb(184, 192, 224) none # $peach perm_r: rgb(245, 169, 127) none # $maroon perm_w: rgb(238, 153, 160) none # $green perm_x: rgb(166, 218, 149) none # $teal owner: rgb(139, 213, 202) none # $sky group: rgb(145, 215, 227) none#### DATE# # $subtext1 dates: rgb(184, 192, 224) none#### DIRECTORY# # $lavender directory: rgb(183, 189, 248) none Bold # $green exe: rgb(166, 218, 149) none # $yellow link: rgb(238, 212, 159) none # $subtext0 pruning: rgb(165, 173, 203) none Italic#### PREVIEW# # fg:$text bg:$mantle preview_title: rgb(202, 211, 245) rgb(30, 32, 48) # fg:$text bg:$mantle preview: rgb(202, 211, 245) rgb(30, 32, 48) # fg:$overlay0 preview_line_number: rgb(110, 115, 141) none # fg:$overlay0 preview_separator: rgb(110, 115, 141) none#### MATCH# char_match: rgb(238, 212, 159) rgb(73, 77, 100) Bold Italic content_match: rgb(238, 212, 159) rgb(73, 77, 100) Bold Italic preview_match: rgb(238, 212, 159) rgb(73, 77, 100) Bold Italic # children count # fg:$yellow bg:none count: rgb(238, 212, 159) none sparse: rgb(237, 135, 150) none content_extract: rgb(237, 135, 150) none Italic#### GIT# git_branch: rgb(245, 169, 127) none git_insertions: rgb(245, 169, 127) none git_deletions: rgb(245, 169, 127) none git_status_current: rgb(245, 169, 127) none git_status_modified: rgb(245, 169, 127) none git_status_new: rgb(245, 169, 127) none Bold git_status_ignored: rgb(245, 169, 127) none git_status_conflicted: rgb(245, 169, 127) none git_status_other: rgb(245, 169, 127) none staging_area_title: rgb(245, 169, 127) none#### FLAG# flag_label: rgb(237, 135, 150) none flag_value: rgb(237, 135, 150) none Bold#### STATUS# # fg:none #bg:$mantle status_normal: none rgb(30, 32, 48) # fg:$red bg:$mantle status_italic: rgb(237, 135, 150) rgb(30, 32, 48) Italic # fg:$maroon bg:$mantle status_bold: rgb(238, 153, 160) rgb(30, 32, 48) Bold # fg:$maroon bg:$mantle status_ellipsis: rgb(238, 153, 160) rgb(30, 32, 48) Bold # fg:$text bg:$red status_error: rgb(202, 211, 245) rgb(237, 135, 150) # fg:$maroon bg:$mantle status_job: rgb(238, 153, 160) rgb(40, 38, 37) # fg:$maroon bg:$mantle status_code: rgb(238, 153, 160) rgb(30, 32, 48) Italic # fg:$maroon bg:$mantle mode_command_mark: rgb(238, 153, 160) rgb(30, 32, 48) Bold#### HELP# # fg:$text help_paragraph: rgb(202, 211, 245) none # fg:$red help_headers: rgb(237, 135, 150) none Bold # fg:$peach help_bold: rgb(245, 169, 127) none Bold # fg:$yellow help_italic: rgb(238, 212, 159) none Italic # fg:green bg:$surface0 help_code: rgb(166, 218, 149) rgb(54, 58, 79) # fg:$overlay0 help_table_border: rgb(110, 115, 141) none#### HEX# # fg:$text hex_null: rgb(202, 211, 245) none # fg:$peach hex_ascii_graphic: rgb(245, 169, 127) none # fg:$green hex_ascii_whitespace: rgb(166, 218, 149) none # fg: teal hex_ascii_other: rgb(139, 213, 202) none # fg: red hex_non_ascii: rgb(237, 135, 150) none # fg:$text bg:$red file_error: rgb(243, 60, 44) none#### PURPOSE# purpose_normal: none none purpose_italic: rgb(169, 90, 127) none Italic purpose_bold: rgb(169, 90, 127) none Bold purpose_ellipsis: none none#### SCROLLBAR# # fg:$surface0 scrollbar_track: rgb(54, 58, 79) none # fg:$surface1 scrollbar_thumb: rgb(91, 96, 120) none#### GOODTOBAD# good_to_bad_0: rgb(166, 218, 149) none good_to_bad_1: rgb(139, 213, 202) none good_to_bad_2: rgb(145, 215, 227) none good_to_bad_3: rgb(125, 196, 228) none good_to_bad_4: rgb(138, 173, 244) none good_to_bad_5: rgb(183, 189, 248) none good_to_bad_6: rgb(198, 160, 246) none good_to_bad_7: rgb(245, 169, 127) none good_to_bad_8: rgb(238, 153, 160) none good_to_bad_9: rgb(237, 135, 150) none}new file mode 100644+171 / −0 text lines
################################################################ A skin for a terminal with a dark background# This skin uses RGB values so won't work for some# terminals.## Created by A. Taha Baki <atahabaki@pm.me># Based on the built-in gruvbox theme.## Doc at https://dystroy.org/broot/skins/###############################################################skin: { input: rgb(205, 214, 244) none # fg:none bg:$surface2 selected_line: none rgb(88, 91, 112) # fg:$text bg:none default: rgb(205, 214, 244) none # fg:$overlay0 bg:none tree: rgb(108, 112, 134) none # fg:$sapphire bg:none parent: rgb(116, 199, 236) none file: none none#### PERMISSIONS# perm__: rgb(186, 194, 222) none # $peach perm_r: rgb(250, 179, 135) none # $maroon perm_w: rgb(235, 160, 172) none # $green perm_x: rgb(166, 227, 161) none # $teal owner: rgb(148, 226, 213) none # $sky group: rgb(137, 220, 235) none#### DATE# # $subtext1 dates: rgb(186, 194, 222) none#### DIRECTORY# # $lavender directory: rgb(180, 190, 254) none Bold # $green exe: rgb(166, 227, 161) none # $yellow link: rgb(249, 226, 175) none # $subtext0 pruning: rgb(166, 173, 200) none Italic#### PREVIEW# # fg:$text bg:$mantle preview_title: rgb(205, 214, 244) rgb(24, 24, 37) # fg:$text bg:$mantle preview: rgb(205, 214, 244) rgb(24, 24, 37) # fg:$overlay0 preview_line_number: rgb(108, 112, 134) none # fg:$overlay0 preview_separator: rgb(108, 112, 134) none#### MATCH# char_match: rgb(249, 226, 175) rgb(69, 71, 90) Bold Italic content_match: rgb(249, 226, 175) rgb(69, 71, 90) Bold Italic preview_match: rgb(249, 226, 175) rgb(69, 71, 90) Bold Italic # children count # fg:$yellow bg:none count: rgb(249, 226, 175) none sparse: rgb(243, 139, 168) none content_extract: rgb(243, 139, 168) none Italic#### GIT# git_branch: rgb(250, 179, 135) none git_insertions: rgb(250, 179, 135) none git_deletions: rgb(250, 179, 135) none git_status_current: rgb(250, 179, 135) none git_status_modified: rgb(250, 179, 135) none git_status_new: rgb(250, 179, 135) none Bold git_status_ignored: rgb(250, 179, 135) none git_status_conflicted: rgb(250, 179, 135) none git_status_other: rgb(250, 179, 135) none staging_area_title: rgb(250, 179, 135) none#### FLAG# flag_label: rgb(243, 139, 168) none flag_value: rgb(243, 139, 168) none Bold#### STATUS# # fg:none #bg:$mantle status_normal: none rgb(24, 24, 37) # fg:$red bg:$mantle status_italic: rgb(243, 139, 168) rgb(24, 24, 37) Italic # fg:$maroon bg:$mantle status_bold: rgb(235, 160, 172) rgb(24, 24, 37) Bold # fg:$maroon bg:$mantle status_ellipsis: rgb(235, 160, 172) rgb(24, 24, 37) Bold # fg:$text bg:$red status_error: rgb(205, 214, 244) rgb(243, 139, 168) # fg:$maroon bg:$mantle status_job: rgb(235, 160, 172) rgb(40, 38, 37) # fg:$maroon bg:$mantle status_code: rgb(235, 160, 172) rgb(24, 24, 37) Italic # fg:$maroon bg:$mantle mode_command_mark: rgb(235, 160, 172) rgb(24, 24, 37) Bold#### HELP# # fg:$text help_paragraph: rgb(205, 214, 244) none # fg:$red help_headers: rgb(243, 139, 168) none Bold # fg:$peach help_bold: rgb(250, 179, 135) none Bold # fg:$yellow help_italic: rgb(249, 226, 175) none Italic # fg:green bg:$surface0 help_code: rgb(166, 227, 161) rgb(49, 50, 68) # fg:$overlay0 help_table_border: rgb(108, 112, 134) none#### HEX# # fg:$text hex_null: rgb(205, 214, 244) none # fg:$peach hex_ascii_graphic: rgb(250, 179, 135) none # fg:$green hex_ascii_whitespace: rgb(166, 227, 161) none # fg: teal hex_ascii_other: rgb(148, 226, 213) none # fg: red hex_non_ascii: rgb(243, 139, 168) none # fg:$text bg:$red file_error: rgb(251, 73, 52) none#### PURPOSE# purpose_normal: none none purpose_italic: rgb(177, 98, 134) none Italic purpose_bold: rgb(177, 98, 134) none Bold purpose_ellipsis: none none#### SCROLLBAR# # fg:$surface0 scrollbar_track: rgb(49, 50, 68) none # fg:$surface1 scrollbar_thumb: rgb(88, 91, 112) none#### GOODTOBAD# good_to_bad_0: rgb(166, 227, 161) none good_to_bad_1: rgb(148, 226, 213) none good_to_bad_2: rgb(137, 220, 235) none good_to_bad_3: rgb(116, 199, 236) none good_to_bad_4: rgb(137, 180, 250) none good_to_bad_5: rgb(180, 190, 254) none good_to_bad_6: rgb(203, 166, 247) none good_to_bad_7: rgb(250, 179, 135) none good_to_bad_8: rgb(235, 160, 172) none good_to_bad_9: rgb(243, 139, 168) none}new file mode 100644+116 / −0 text lines
################################################################ A skin for a terminal with a dark background## To create your own skin, copy this file, change the entries# and import your skin file from the main conf file (look# for "imports")## Doc at https://dystroy.org/broot/skins/############################################################################################################################### Skin# If you want to change the colors of broot,# uncomment the following block and start messing# with the various values.# A skin entry value is made of two parts separated with a '/':# The first one is the skin for the active panel.# The second one, optional, is the skin for non active panels.# You may find explanations and other skins on# https://dystroy.org/broot/skins###############################################################skin: { default: gray(22) none / gray(20) none tree: gray(8) None / gray(4) None parent: gray(18) None / gray(13) None file: gray(22) None / gray(15) None directory: ansi(110) None bold / ansi(110) None exe: Cyan None link: Magenta None pruning: gray(12) None Italic perm__: gray(5) None perm_r: ansi(94) None perm_w: ansi(132) None perm_x: ansi(65) None owner: ansi(138) None group: ansi(131) None count: ansi(138) gray(4) dates: ansi(66) None sparse: ansi(214) None content_extract: ansi(29) None content_match: ansi(34) None device_id_major: ansi(138) None device_id_sep: ansi(102) None device_id_minor: ansi(138) None git_branch: ansi(178) None git_insertions: ansi(28) None git_deletions: ansi(160) None git_status_current: gray(5) None git_status_modified: ansi(28) None git_status_new: ansi(94) None bold git_status_ignored: gray(17) None git_status_conflicted: ansi(88) None git_status_other: ansi(88) None selected_line: None gray(6) / None gray(4) char_match: Green None file_error: Red None flag_label: gray(15) gray(2) flag_value: ansi(178) gray(2) bold input: White gray(2) / gray(15) None status_error: gray(22) ansi(124) status_job: ansi(220) gray(5) status_normal: gray(20) gray(4) / gray(2) gray(2) status_italic: ansi(178) gray(4) / gray(2) gray(2) status_bold: ansi(178) gray(4) bold / gray(2) gray(2) status_code: ansi(229) gray(4) / gray(2) gray(2) status_ellipsis: gray(19) gray(1) / gray(2) gray(2) purpose_normal: gray(20) gray(2) purpose_italic: ansi(178) gray(2) purpose_bold: ansi(178) gray(2) bold purpose_ellipsis: gray(20) gray(2) scrollbar_track: gray(7) None / gray(4) None scrollbar_thumb: gray(22) None / gray(14) None help_paragraph: gray(20) None help_bold: ansi(178) None bold help_italic: ansi(229) None help_code: gray(21) gray(3) help_headers: ansi(178) None help_table_border: ansi(239) None preview: gray(20) gray(1) / gray(18) gray(2) preview_title: gray(23) gray(2) / gray(21) gray(2) preview_line_number: gray(12) gray(3) preview_separator: gray(5) None preview_match: None ansi(29) hex_null: gray(8) None hex_ascii_graphic: gray(18) None hex_ascii_whitespace: ansi(143) None hex_ascii_other: ansi(215) None hex_non_ascii: ansi(167) None staging_area_title: gray(22) gray(2) / gray(20) gray(3) mode_command_mark: gray(5) ansi(204) bold good_to_bad_0: ansi(28) good_to_bad_1: ansi(29) good_to_bad_2: ansi(29) good_to_bad_3: ansi(29) good_to_bad_4: ansi(29) good_to_bad_5: ansi(100) good_to_bad_6: ansi(136) good_to_bad_7: ansi(172) good_to_bad_8: ansi(166) good_to_bad_9: ansi(196)}################################################################ Syntax Theme# # If you want to choose the theme used for preview, uncomment# one of the following lines:# # syntax_theme: GitHub# syntax_theme: SolarizedDark# syntax_theme: SolarizedLightsyntax_theme: MochaDark# syntax_theme: MochaDark# syntax_theme: OceanDark# syntax_theme: OceanLightnew file mode 100644+88 / −0 text lines
################################################################ A skin for a terminal with a dark background# This skin uses RGB values so won't work for some# terminals.### (initially contributed by @basbebe)## Doc at https://dystroy.org/broot/skins/###############################################################skin: { default: rgb(235, 219, 178) none / rgb(189, 174, 147) none tree: rgb(70, 70, 80) None / rgb(60, 60, 60) None parent: rgb(235, 219, 178) none / rgb(189, 174, 147) none Italic file: None None / None None Italic directory: rgb(131, 165, 152) None Bold / rgb(131, 165, 152) None exe: rgb(184, 187, 38) None link: rgb(104, 157, 106) None pruning: rgb(124, 111, 100) None Italic perm__: None None perm_r: rgb(215, 153, 33) None perm_w: rgb(204, 36, 29) None perm_x: rgb(152, 151, 26) None owner: rgb(215, 153, 33) None Bold group: rgb(215, 153, 33) None count: rgb(69, 133, 136) rgb(50, 48, 47) dates: rgb(168, 153, 132) None sparse: rgb(250, 189,47) None content_extract: ansi(29) None Italic content_match: ansi(34) None Bold git_branch: rgb(251, 241, 199) None git_insertions: rgb(152, 151, 26) None git_deletions: rgb(190, 15, 23) None git_status_current: rgb(60, 56, 54) None git_status_modified: rgb(152, 151, 26) None git_status_new: rgb(104, 187, 38) None Bold git_status_ignored: rgb(213, 196, 161) None git_status_conflicted: rgb(204, 36, 29) None git_status_other: rgb(204, 36, 29) None selected_line: None rgb(60, 56, 54) / None rgb(50, 48, 47) char_match: rgb(250, 189, 47) None file_error: rgb(251, 73, 52) None flag_label: rgb(189, 174, 147) None flag_value: rgb(211, 134, 155) None Bold input: rgb(251, 241, 199) None / rgb(189, 174, 147) None Italic status_error: rgb(213, 196, 161) rgb(204, 36, 29) status_job: rgb(250, 189, 47) rgb(60, 56, 54) status_normal: None rgb(40, 38, 37) / None None status_italic: rgb(211, 134, 155) rgb(40, 38, 37) Italic / None None status_bold: rgb(211, 134, 155) rgb(40, 38, 37) Bold / None None status_code: rgb(251, 241, 199) rgb(40, 38, 37) / None None status_ellipsis: rgb(251, 241, 199) rgb(40, 38, 37) Bold / None None purpose_normal: None None purpose_italic: rgb(177, 98, 134) None Italic purpose_bold: rgb(177, 98, 134) None Bold purpose_ellipsis: None None scrollbar_track: rgb(80, 73, 69) None / rgb(50, 48, 47) None scrollbar_thumb: rgb(213, 196, 161) None / rgb(102, 92, 84) None help_paragraph: None None help_bold: rgb(214, 93, 14) None Bold help_italic: rgb(211, 134, 155) None Italic help_code: rgb(142, 192, 124) rgb(50, 48, 47) help_headers: rgb(254, 128, 25) None Bold help_table_border: rgb(80, 73, 69) None preview_title: rgb(235, 219, 178) rgb(40, 40, 40) / rgb(189, 174, 147) rgb(40, 40, 40) preview: rgb(235, 219, 178) rgb(40, 40, 40) / rgb(235, 219, 178) rgb(40, 40, 40) preview_line_number: rgb(124, 111, 100) None / rgb(124, 111, 100) rgb(40, 40, 40) preview_separator: rgb(70, 70, 80) None / rgb(60, 60, 60) None preview_match: None ansi(29) Bold hex_null: rgb(189, 174, 147) None hex_ascii_graphic: rgb(213, 196, 161) None hex_ascii_whitespace: rgb(152, 151, 26) None hex_ascii_other: rgb(254, 128, 25) None hex_non_ascii: rgb(214, 93, 14) None staging_area_title: rgb(235, 219, 178) rgb(40, 40, 40) / rgb(189, 174, 147) rgb(40, 40, 40) mode_command_mark: gray(5) ansi(204) Bold good_to_bad_0: ansi(28) good_to_bad_1: ansi(29) good_to_bad_2: ansi(29) good_to_bad_3: ansi(29) good_to_bad_4: ansi(29) good_to_bad_5: ansi(100) good_to_bad_6: ansi(136) good_to_bad_7: ansi(172) good_to_bad_8: ansi(166) good_to_bad_9: ansi(196)}new file mode 100644+111 / −0 text lines
################################################################ A skin for a terminal with a dark background## To create your own skin, copy this file, change the entries# and import your skin file from the main conf file (look# for "imports")## Doc at https://dystroy.org/broot/skins/############################################################################################################################### Skin# If you want to change the colors of broot,# uncomment the following bloc and start messing# with the various values.# A skin entry value is made of two parts separated with a '/':# The first one is the skin for the active panel.# The second one, optional, is the skin for non active panels.# You may find explanations and other skins on# https://dystroy.org/broot/skins###############################################################skin: { default: none none / gray(20) none tree: ansi(94) None / gray(3) None parent: gray(18) None / gray(13) None file: gray(20) None / gray(15) None directory: ansi(208) None Bold / ansi(172) None bold exe: Cyan None link: Magenta None pruning: gray(12) None Italic perm__: gray(5) None perm_r: ansi(94) None perm_w: ansi(132) None perm_x: ansi(65) None owner: ansi(138) None group: ansi(131) None count: ansi(136) gray(3) dates: ansi(66) None sparse: ansi(214) None content_extract: ansi(29) None content_match: ansi(34) None git_branch: ansi(229) None git_insertions: ansi(28) None git_deletions: ansi(160) None git_status_current: gray(5) None git_status_modified: ansi(28) None git_status_new: ansi(94) None Bold git_status_ignored: gray(17) None git_status_conflicted: ansi(88) None git_status_other: ansi(88) None selected_line: None gray(5) / None gray(4) char_match: Yellow None file_error: Red None flag_label: gray(15) None flag_value: ansi(208) None Bold input: White None / gray(15) gray(2) status_error: gray(22) ansi(124) status_job: ansi(220) gray(5) status_normal: gray(20) gray(3) / gray(2) gray(2) status_italic: ansi(208) gray(3) / gray(2) gray(2) status_bold: ansi(208) gray(3) Bold / gray(2) gray(2) status_code: ansi(229) gray(3) / gray(2) gray(2) status_ellipsis: gray(19) gray(1) / gray(2) gray(2) purpose_normal: gray(20) gray(2) purpose_italic: ansi(178) gray(2) purpose_bold: ansi(178) gray(2) Bold purpose_ellipsis: gray(20) gray(2) scrollbar_track: gray(7) None / gray(4) None scrollbar_thumb: gray(22) None / gray(14) None help_paragraph: gray(20) None help_bold: ansi(208) None Bold help_italic: ansi(166) None help_code: gray(21) gray(3) help_headers: ansi(208) None help_table_border: ansi(239) None preview: gray(20) gray(1) / gray(18) gray(2) preview_line_number: gray(12) gray(3) preview_separator: ansi(94) None / gray(3) None preview_match: None ansi(29) hex_null: gray(11) None hex_ascii_graphic: gray(18) None hex_ascii_whitespace: ansi(143) None hex_ascii_other: ansi(215) None hex_non_ascii: ansi(167) None good_to_bad_0: ansi(28) good_to_bad_1: ansi(29) good_to_bad_2: ansi(29) good_to_bad_3: ansi(29) good_to_bad_4: ansi(29) good_to_bad_5: ansi(100) good_to_bad_6: ansi(136) good_to_bad_7: ansi(172) good_to_bad_8: ansi(166) good_to_bad_9: ansi(196)}################################################################ Syntax Theme# # If you want to choose the theme used for preview, uncomment# one of the following lines:# # syntax_theme: GitHub# syntax_theme: SolarizedDark# syntax_theme: SolarizedLightsyntax_theme: SolarizedDark# syntax_theme: MochaDark# syntax_theme: OceanDark# syntax_theme: OceanLightnew file mode 100644+132 / −0 text lines
################################################################ 16 ANSI color theme. Colors in this theme are restricted from# ANSI color 0 - 15. This will allow the theme to adapt to your# terminal emulator's theme. Note that, for now, the preview# mode does not yet support this theme because of syntect not# having a 16 ansi color theme.## More info at https://jeffkreeftmeijer.com/vim-16-color/# Doc at https://dystroy.org/broot/skins/###############################################################skin: { directory: ansi(12) file: ansi(7) pruning: ansi(8) none italic selected_line: none ansi(0) tree: ansi(8) # Search char_match: ansi(3) none underlined parent: ansi(4) none bold # File properties exe: ansi(2) link: ansi(13) sparse: ansi(12) # Prompt input: ansi(6) # Status bar status_bold: ansi(7) ansi(8) bold status_code: ansi(10) ansi(8) status_ellipsis: ansi(7) ansi(8) status_error: ansi(7) ansi(8) status_italic: ansi(7) ansi(8) italic status_job: ansi(7) ansi(8) status_normal: ansi(7) ansi(8) # Flag status flag_label: ansi(6) flag_value: ansi(14) none bold # Background default: none none # Scrollbar scrollbar_track: ansi(0) scrollbar_thumb: ansi(3) # Git git_branch: ansi(13) git_deletions: ansi(1) git_insertions: ansi(2) git_status_conflicted: ansi(1) git_status_current: ansi(6) git_status_ignored: ansi(8) git_status_modified: ansi(3) git_status_new: ansi(2) none bold git_status_other: ansi(5) # Staging area staging_area_title: ansi(3) # Documentation help_bold: ansi(7) none bold help_code: ansi(4) help_headers: ansi(3) help_italic: ansi(7) none italic help_paragraph: ansi(7) help_table_border: ansi(8) # Device column device_id_major: ansi(5) device_id_minor: ansi(5) device_id_sep: ansi(5) # Counts column count: ansi(13) # Dates column dates: ansi(6) # Permissions column group: ansi(3) owner: ansi(3) perm__: ansi(8) perm_r: ansi(3) perm_w: ansi(1) perm_x: ansi(2) # Hex preview hex_null: ansi(8) hex_ascii_graphic: ansi(2) hex_ascii_whitespace: ansi(3) hex_ascii_other: ansi(4) hex_non_ascii: ansi(5) # Preview # preview: none # preview_line_number: none # preview_match: none # preview_title: none # Used for displaying errors file_error: ansi(1) # Content searches content_extract: ansi(7) content_match: ansi(3) none underlined # Used in status line purpose_bold: ansi(0) ansi(7) bold purpose_ellipsis: ansi(0) purpose_italic: ansi(0) ansi(7) italic purpose_normal: ansi(0) # Modal indicator mode_command_mark: ansi(7) ansi(4) # File system occupation good_to_bad_0: ansi(2) good_to_bad_1: ansi(2) good_to_bad_2: ansi(2) good_to_bad_3: ansi(2) good_to_bad_4: ansi(2) good_to_bad_5: ansi(1) good_to_bad_6: ansi(1) good_to_bad_7: ansi(1) good_to_bad_8: ansi(1) good_to_bad_9: ansi(1)}new file mode 100644+66 / −0 text lines
// contributed by [@danieltrautmann](https://github.com/danieltrautmann)// // // The Solarized Dark skin uses RGB values, so it might not work well with some// terminals//// Doc at https://dystroy.org/broot/skins/skin: { default: "rgb(131, 148, 150) rgb(0, 43, 54) / rgb(131, 148, 150) rgb(7, 54, 66)" // base0 base03 / base01 base02 tree: "rgb(88, 110, 117) none" // base01 default file: "none none" // default default directory: "rgb(38, 139, 210) none bold" // blue default bold exe: "rgb(211, 1, 2) none" // red default link: "rgb(211, 54, 130) none" // magenta default pruning: "rgb(88, 110, 117) none italic" // base01 default italic perm__: "rgb(88, 110, 117) none" // base01 default perm_r: "none none" // default default perm_w: "none none" // default default perm_x: "none none" // default default owner: "rgb(88, 110, 117) none" // base01 default group: "rgb(88, 110, 117) none" // base01 default sparse: "none none" // default default git_branch: "rgb(147, 161, 161) none" // base1 default git_insertions: "rgb(133, 153, 0) none" // green default git_deletions: "rgb(211, 1, 2) none" // red default git_status_current: "none none" // default default git_status_modified: "rgb(181, 137, 0) none" // yellow default git_status_new: "rgb(133, 153, 0) none" // green default git_status_ignored: "rgb(88, 110, 117) none" // base01 default git_status_conflicted: "rgb(211, 1, 2) none" // red default git_status_other: "rgb(211, 1, 2) none" // red default selected_line: "none rgb(7, 54, 66)" // default base02 char_match: "rgb(133, 153, 0) none underlined" // green default underlined file_error: "rgb(203, 75, 22) none italic" // orange default italic flag_label: "none none" // default default flag_value: "rgb(181, 137, 0) none bold" // yellow default bold input: "none none" // default default status_error: "rgb(203, 75, 22) rgb(7, 54, 66)" // orange base02 status_job: "rgb(108, 113, 196) rgb(7, 54, 66) bold" // violet base02 bold status_normal: "none rgb(7, 54, 66)" // default base02 status_italic: "rgb(181, 137, 0) rgb(7, 54, 66)" // yellow base02 status_bold: "rgb(147, 161, 161) rgb(7, 54, 66) bold" // base1 base02 bold status_code: "rgb(108, 113, 196) rgb(7, 54, 66)" // violet base02 status_ellipsis: "none rgb(7, 54, 66)" // default base02 scrollbar_track: "rgb(7, 54, 66) none" // base02 default scrollbar_thumb: "none none" // default default help_paragraph: "none none" // default default help_bold: "rgb(147, 161, 161) none bold" // base1 default bold help_italic: "rgb(147, 161, 161) none italic" // base1 default italic help_code: "rgb(147, 161, 161) rgb(7, 54, 66)" // base1 base02 help_headers: "rgb(181, 137, 0) none" // yellow default help_table_border: "none none" // default default preview_title: "gray(20) rgb(0, 43, 54)" staging_area_title: "gray(22) rgb(0, 43, 54)" good_to_bad_0: "ansi(28)" // green good_to_bad_1: "ansi(29)" good_to_bad_2: "ansi(29)" good_to_bad_3: "ansi(29)" good_to_bad_4: "ansi(29)" good_to_bad_5: "ansi(100)" good_to_bad_6: "ansi(136)" good_to_bad_7: "ansi(172)" good_to_bad_8: "ansi(166)" good_to_bad_9: "ansi(196)" // red}new file mode 100644+118 / −0 text lines
// contributed by [@danieltrautmann](https://github.com/danieltrautmann)// // // The Solarized Light skin uses RGB values, so it might not work well with some// terminals//// If you prefer to keep the background the same as your terminal background, change// the "default" entry to// default: "none none / rgb(147, 161, 161) none"//// Doc at https://dystroy.org/broot/skins/skin: { // base00 default / base1 base2 default: "rgb(101, 123, 131) none / rgb(147, 161, 161) none" // base1 default tree: "rgb(147, 161, 161) none" // default default file: "none none" // blue default bold directory: "rgb(38, 139, 210) none bold" // red default exe: "rgb(211, 1, 2) none" // magenta default link: "rgb(211, 54, 130) none" // base1 default italic pruning: "rgb(147, 161, 161) none italic" // base1 default perm__: "rgb(147, 161, 161) none" // default default perm_r: "none none" // default default perm_w: "none none" // default default perm_x: "none none" // base1 default owner: "rgb(147, 161, 161) none" // base1 default group: "rgb(147, 161, 161) none" // default default sparse: "none none" // base01 default git_branch: "rgb(88, 110, 117) none" // green default git_insertions: "rgb(133, 153, 0) none" // red default git_deletions: "rgb(211, 1, 2) none" // default default git_status_current: "none none" // yellow default git_status_modified: "rgb(181, 137, 0) none" // green default git_status_new: "rgb(133, 153, 0) none" // base1 default git_status_ignored: "rgb(147, 161, 161) none" // red default git_status_conflicted: "rgb(211, 1, 2) none" // red default git_status_other: "rgb(211, 1, 2) none" // default base2 selected_line: "none rgb(238, 232, 213)" // green default underlined char_match: "rgb(133, 153, 0) none underlined" // orange default italic file_error: "rgb(203, 75, 22) none italic" // default default flag_label: "none none" // yellow default bold flag_value: "rgb(181, 137, 0) none bold" // default default input: "none none" // orange base2 status_error: "rgb(203, 75, 22) rgb(238, 232, 213)" // violet base2 bold status_job: "rgb(108, 113, 196) rgb(238, 232, 213) bold" // default base2 status_normal: "none rgb(238, 232, 213)" // yellow base2 status_italic: "rgb(181, 137, 0) rgb(238, 232, 213)" // base01 base2 bold status_bold: "rgb(88, 110, 117) rgb(238, 232, 213) bold" // violet base2 status_code: "rgb(108, 113, 196) rgb(238, 232, 213)" // default base2 status_ellipsis: "none rgb(238, 232, 213)" // base2 default scrollbar_track: "rgb(238, 232, 213) none" // default default scrollbar_thumb: "none none" // default default help_paragraph: "none none" // base01 default bold help_bold: "rgb(88, 110, 117) none bold" // base01 default italic help_italic: "rgb(88, 110, 117) none italic" // base01 base2 help_code: "rgb(88, 110, 117) rgb(238, 232, 213)" // yellow default help_headers: "rgb(181, 137, 0) none" // default default help_table_border: "none none" preview_title: "rgb(147, 161, 161) rgb(238, 232, 213)" preview: "rgb(101, 123, 131) rgb(253, 246, 227) / rgb(147, 161, 161) rgb(238, 232, 213)" preview_line_number: "rgb(147, 161, 161) rgb(238, 232, 213)" preview_separator: "rgb(147, 161, 161) rgb(238, 232, 213)" preview_match: "None ansi(29)" staging_area_title: "gray(22) rgb(253, 246, 227)" good_to_bad_0: ansi(28) good_to_bad_1: ansi(29) good_to_bad_2: ansi(29) good_to_bad_3: ansi(29) good_to_bad_4: ansi(29) good_to_bad_5: ansi(100) good_to_bad_6: ansi(136) good_to_bad_7: ansi(172) good_to_bad_8: ansi(166) good_to_bad_9: ansi(196)}new file mode 100644+84 / −0 text lines
################################################################ A skin for a terminal with a white background## To create your own skin, copy this file, change the entries# and import your skin file from the main conf file (look# for "imports")## Doc at https://dystroy.org/broot/skins/###############################################################syntax_theme: base16-ocean.lightskin: { default: gray(1) None tree: gray(7) None / gray(18) None file: gray(3) None / gray(8) None directory: ansi(25) None Bold / ansi(25) None exe: ansi(130) None link: Magenta None pruning: gray(12) None Italic perm__: gray(5) None perm_r: ansi(94) None perm_w: ansi(132) None perm_x: ansi(65) None owner: ansi(138) None group: ansi(131) None dates: ansi(66) None sparse: ansi(214) None git_branch: ansi(229) None git_insertions: ansi(28) None git_deletions: ansi(160) None git_status_current: gray(5) None git_status_modified: ansi(28) None git_status_new: ansi(94) None Bold git_status_ignored: gray(17) None git_status_conflicted: ansi(88) None git_status_other: ansi(88) None selected_line: None gray(19) / None gray(21) char_match: ansi(22) None file_error: Red None flag_label: gray(9) None flag_value: ansi(166) None Bold input: gray(1) None / gray(4) gray(20) status_error: gray(22) ansi(124) status_normal: gray(2) gray(20) status_job: ansi(220) gray(5) status_italic: ansi(166) gray(20) status_bold: ansi(166) gray(20) status_code: ansi(17) gray(20) status_ellipsis: gray(19) gray(15) purpose_normal: gray(20) gray(2) purpose_italic: ansi(178) gray(2) purpose_bold: ansi(178) gray(2) Bold purpose_ellipsis: gray(20) gray(2) scrollbar_track: gray(20) none scrollbar_thumb: ansi(238) none help_paragraph: gray(2) none help_bold: ansi(202) none bold help_italic: ansi(202) none italic help_code: gray(5) gray(22) help_headers: ansi(202) none help_table_border: ansi(239) None preview_title: gray(3) None / gray(5) None preview: gray(5) gray(23) / gray(7) gray(23) preview_line_number: gray(6) gray(20) preview_separator: gray(7) None / gray(18) None preview_match: None ansi(29) Underlined hex_null: gray(15) None hex_ascii_graphic: gray(2) None hex_ascii_whitespace: ansi(143) None hex_ascii_other: ansi(215) None hex_non_ascii: ansi(167) None staging_area_title: gray(8) None / gray(13) None mode_command_mark: gray(15) ansi(204) Bold good_to_bad_0: ansi(28) good_to_bad_1: ansi(29) good_to_bad_2: ansi(29) good_to_bad_3: ansi(29) good_to_bad_4: ansi(29) good_to_bad_5: ansi(100) good_to_bad_6: ansi(136) good_to_bad_7: ansi(172) good_to_bad_8: ansi(166) good_to_bad_9: ansi(196)}new file mode 100644+161 / −0 text lines
################################################################ This file contains the verb definitions for broot## Some verbs here are examples and not enabled by default: you# need to uncomment them if you want to use them.## Documentation at https://dystroy.org/broot/verbs/###############################################################verbs: [ # You should customize this standard opening of text files. # If you edit text files in your terminal (vi, emacs, helix, eg.), then # you'll find it convenient to change the 'key' from 'ctrl-e' to 'enter'. # # If $EDITOR isn't set on your computer, you should either set it using # something similar to # export EDITOR=/usr/local/bin/nvim # or just replace it with your editor of choice in the 'execution' # pattern. # If your editor is able to open a file on a specific line, use {line} # so that you may jump directly at the right line from a preview or # a content search. # Examples depending on your favourite editor: # execution: "nvim +{line} {file}" # execution: "helix {file}:{line}" { invocation: edit shortcut: e key: ctrl-e apply_to: text_file execution: "$EDITOR {file}" leave_broot: false } # Example 1: launching `tail -n` on the selected file (leaving broot) # { # name: tail_lines # invocation: tl {lines_count} # execution: "tail -f -n {lines_count} {file}" # } # Example 2: creating a new file without leaving broot # { # name: touch # invocation: touch {new_file} # execution: "touch {directory}/{new_file}" # leave_broot: false # } # A convenient shortcut to create new text files in # the current directory or below { invocation: create {subpath} execution: "$EDITOR {directory}/{subpath}" leave_broot: false } { invocation: git_diff shortcut: gd leave_broot: false execution: "git difftool -y {file}" } # On ctrl-b, propose the creation of a copy of the selection. # While this might occasionally be useful, this verb is mostly here # as an example to demonstrate rare standard groups like {file-stem} # and {file-dot-extension} and the auto_exec verb property which # allows verbs to stay unexecuted until you hit enter { invocation: "backup {version}" key: ctrl-b leave_broot: false auto_exec: false execution: "cp -r {file} {parent}/{file-stem}-{version}{file-dot-extension}" } # By default, `rm` does the system rm, and completely removes # the file. If you prefer to have the file moved to the system # trash, you may use the ':trash' internal with the verb below: # { # invocation: "rm" # internal: "trash" # leave_broot: false # } # This verb lets you launch a terminal on ctrl-T # (on exit you'll be back in broot) { invocation: terminal key: ctrl-t execution: "$SHELL" set_working_dir: true leave_broot: false } # Here's an example of a verb needing the shell capabilities. # It copies all children of the currently selected directory # to a destination you type. # It uses a star, which needs the shell for expansion. That's # why such verb must have the `from_shell: true` parameter. # { # invocation: "cpa {dest}" # external: "cp -r {directory}/* {dest}" # from_shell: true # } # Here's an example of a shortcut bringing you to your home directory # { # invocation: home # key: ctrl-home # execution: ":focus ~" # } # Here's going to the work-dir root of the current git repository # { # invocation: gtr # execution: ":focus {git-root}" # } # A popular set of shortcuts for going up and down: # # { # key: ctrl-k # execution: ":line_up" # } # { # key: ctrl-j # execution: ":line_down" # } # { # key: ctrl-u # execution: ":page_up" # } # { # key: ctrl-d # execution: ":page_down" # } # If you develop using git, you might like to often switch # to the git status filter: # { # key: alt-g # execution: ":toggle_git_status" # } # You can reproduce the bindings of Norton Commander # on copying or moving to the other panel: # { # key: F5 # external: "cp -r {file} {other-panel-directory}" # leave_broot: false # } # { # key: F6 # external: "mv {file} {other-panel-directory}" # leave_broot: false # }]+6 / −0 text lines
+1 / −1 text lines
+3 / −5 text lines
+8 / −8 text lines
+4 / −1 text lines
+1 / −0 text lines
+385 / −407 text lines
vim.validate { command = { command, { 'string', 'table', }, }, } vim.validate { command = { command, { 'string', 'table' } } } local buffer_path = vim.api.nvim_buf_get_name( bufnr ) local buffer_path = vim.api.nvim_buf_get_name( bufnr ) dbg.print( string.format( 'searching lsp client for: match: %s, buffer: %s, path: %s', match, bufnr, buffer_path ) ) dbg.print( string.format( 'searching lsp client for: match: %s, buffer: %s, path: %s', match, bufnr, buffer_path ) ) local potential_client_configs = vim.iter( lsp_client_configs ) :map( function ( config ) vim.validate { ['config'] = { config, 'table', }, ['config.name'] = { config.name, 'string', }, ['config.filetypes'] = { config.filetypes, { 'string', 'table', }, }, ['config.command'] = { config.command, { 'string', 'table', }, }, ['config.environment'] = { config.environment, 'table', true, }, ['config.root_dir'] = { config.root_dir, 'function', 'string', }, ['config.single_file_support'] = { config.single_file_support, 'boolean', true, }, ['config.settings'] = { config.settings, 'table', true, }, ['config.workspaces'] = { config.workspaces, 'boolean', true, }, ['config.before_init'] = { config.before_init, {'function', 'table'}, true, }, ['config.init_options'] = { config.init_options, 'table', true, }, ['config.capabilities'] = { config.capabilities, 'table', true, }, ['config.custom_start'] = { config.custom_start, 'function', true, }, } -- normalize scalar values to its vector alternative for easier processing later on -- this mutates the lsp client configs! careful! config.command = type( config.command ) == 'string' and { expand_command( config.command ), } or expand_command( config.command ) config.environment = config.environment or {} config.filetypes = type( config.filetypes ) == 'string' and { config.filetypes, } or config.filetypes config.single_file_support = config.single_file_support == nil and false or config.single_file_support config.workspaces = config.workspaces == nil and false or config.workspaces config.capabilities = config.capabilities or {} config.init_options = config.init_options or {} local potential_client_configs = vim.iter( lsp_client_configs ) :map( function ( config ) vim.validate { ['config'] = { config, 'table' }, ['config.name'] = { config.name, 'string' }, ['config.filetypes'] = { config.filetypes, { 'string', 'table' } }, ['config.command'] = { config.command, { 'string', 'table' } }, ['config.environment'] = { config.environment, 'table', true }, ['config.root_dir'] = { config.root_dir, 'function', 'string' }, ['config.single_file_support'] = { config.single_file_support, 'boolean', true }, ['config.settings'] = { config.settings, 'table', true }, ['config.workspaces'] = { config.workspaces, 'boolean', true }, ['config.before_init'] = { config.before_init, { 'function', 'table' }, true }, ['config.init_options'] = { config.init_options, 'table', true }, ['config.capabilities'] = { config.capabilities, 'table', true }, ['config.custom_start'] = { config.custom_start, 'function', true }, } -- normalize scalar values to its vector alternative for easier processing later on -- this mutates the lsp client configs! careful! config.command = type( config.command ) == 'string' and { expand_command( config.command ) } or expand_command( config.command ) config.environment = config.environment or {} config.filetypes = type( config.filetypes ) == 'string' and { config.filetypes } or config.filetypes config.single_file_support = config.single_file_support == nil and false or config.single_file_support config.workspaces = config.workspaces == nil and false or config.workspaces config.capabilities = config.capabilities or {} config.init_options = config.init_options or {} --NOTE: this is super kool but has the limitation, that only lsp clients -- configured via my special lsp module are affected. local project_local_lsp_settings = localrc( '.lsp.settings.lua', 'table' ) or {} local project_local_workspace_folders = localrc( '.lsp.workspace_folders.lua', 'table' ) or {} --NOTE: this is super kool but has the limitation, that only lsp clients -- configured via my special lsp module are affected. local project_local_lsp_settings = localrc( '.lsp.settings.lua', 'table' ) or {} local project_local_workspace_folders = localrc( '.lsp.workspace_folders.lua', 'table' ) or {} dbg.print( 'patched project local workspace folders', project_local_workspace_folders ) dbg.print( 'patched project local workspace folders', project_local_workspace_folders ) local settings = config.settings local settings_override = project_local_lsp_settings[config.name] if settings_override then dbg.print( 'overriding settings with project local settings', settings, settings_override ) settings = vim.tbl_deep_extend( 'force', settings, settings_override ) end local settings = config.settings local settings_override = project_local_lsp_settings[config.name] if settings_override then dbg.print( 'overriding settings with project local settings', settings, settings_override ) settings = vim.tbl_deep_extend( 'force', settings, settings_override ) end local root_dir = type( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path ) local root_workspace = root_dir and { uri = 'file://' .. root_dir, name = root_dir, } or nil local workspace_folders = root_workspace and { root_workspace, } or nil local workspace_folders_local = project_local_workspace_folders[config.name] if not workspace_folders_local then dbg.print( 'no local workspace folders found for ' .. config.name ) end if workspace_folders_local and config.workspaces then dbg.print( 'setting workspace folders to project local workspace folders', workspace_folders_local ) workspace_folders = workspace_folders and vim.tbl_deep_extend( 'force', workspace_folders, workspace_folders_local ) or workspace_folders_local end local root_workspace = root_dir and { uri = 'file://' .. root_dir, name = root_dir } or nil local workspace_folders = root_workspace and { root_workspace } or nil local workspace_folders_local = project_local_workspace_folders[config.name] if not workspace_folders_local then dbg.print( 'no local workspace folders found for ' .. config.name ) end if workspace_folders_local and config.workspaces then dbg.print( 'setting workspace folders to project local workspace folders', workspace_folders_local ) workspace_folders = workspace_folders and vim.tbl_deep_extend( 'force', workspace_folders, workspace_folders_local ) or workspace_folders_local end dbg.print( 'starting command:', config.command ) dbg.print( 'starting command:', config.command ) local start_config = { cmd = config.command, cmd_cwd = root_dir, -- cmd_env = config.environment, detached = false, -- do i want this? root_dir = root_dir, workspace_folders = workspace_folders, capabilities = capabilities, -- handlers = vim.lsp.handlers, settings = settings, -- commands = nil, -- what is this? init_options = config.init_options, name = config.name, -- get_language_id = nil, -- offset_encoding = nil, on_error = function ( code, ... ) vim.print( 'LSP ERROR', code, ... ) end, before_init = config.before_init, -- on_init = nil, -- should i send workspace/didChangeConfiguration here? on_exit = function ( code, signal, client_id ) dbg.print( 'LSP CLIENT EXIT', code, signal, client_id ) end, on_attach = function ( client, attach_bufnr ) dbg.print( 'LSP CLIENT ATTACH', client, attach_bufnr ) end, trace = dbg.get() and 'on' or 'off', flags = { allow_incremental_sync = true, debounce_text_changes = 250, exit_timeout = 200, }, } local start_config = { cmd = config.command, cmd_cwd = root_dir, -- cmd_env = config.environment, detached = false, -- do i want this? root_dir = root_dir, workspace_folders = workspace_folders, capabilities = capabilities, -- handlers = vim.lsp.handlers, settings = settings, -- commands = nil, -- what is this? init_options = config.init_options, name = config.name, -- get_language_id = nil, -- offset_encoding = nil, on_error = function ( code, ... ) vim.print( 'LSP ERROR', code, ... ) end, before_init = config.before_init, -- on_init = nil, -- should i send workspace/didChangeConfiguration here? on_exit = function ( code, signal, client_id ) dbg.print( 'LSP CLIENT EXIT', code, signal, client_id ) end, on_attach = function ( client, attach_bufnr ) dbg.print( 'LSP CLIENT ATTACH', client, attach_bufnr ) end, trace = dbg.get() and 'on' or 'off', flags = { allow_incremental_sync = true, debounce_text_changes = 250, exit_timeout = 200 }, } local lsp_starter = config.custom_start or vim.lsp.start local lsp_starter = config.custom_start or vim.lsp.start dbg.print( 'starting lsp', start_config.name, root_dir ) dbg.print( 'starting lsp', start_config.name, root_dir ) lsp_starter( start_config, { bufnr = bufnr, -- TODO: reuse if workspaces -- local supported = vim.tbl_get(client, 'server_capabilities', 'workspace', 'workspaceFolders', 'supported') reuse_client = function ( existing_client, new_config ) dbg.print( 'lsp reuse client', existing_client.name, existing_client.workspace_folders, new_config.name, new_config.root_dir ) lsp_starter( start_config, { bufnr = bufnr, -- TODO: reuse if workspaces -- local supported = vim.tbl_get(client, 'server_capabilities', 'workspace', 'workspaceFolders', 'supported') reuse_client = function ( existing_client, new_config ) dbg.print( 'lsp reuse client', existing_client.name, existing_client.workspace_folders, new_config.name, new_config.root_dir ) if not (new_root_raw and existing_root_raw) then return false end if not (new_root_raw and existing_root_raw) then return false end if client.server_capabilities.documentSymbolProvider then local navic_ok, navic = pcall( require, 'nvim-navic' ) if navic_ok then navic.attach( client, bufnr ) else vim.notify 'nvim-navic not found. could not attach to lsp client.' end local navbuddy_ok, navbuddy = pcall( require, 'nvim-navbuddy' ) if navbuddy_ok then navbuddy.attach( client, bufnr ) map.normal { description = 'Open overview of symbols in current buffer', category = 'lsp', keys = '<leader>lo', command = function () navbuddy.open( bufnr ) end, buffer = bufnr, } else vim.notify 'nvim-navbuddy not found. could not attach to lsp client.' end end if client.server_capabilities.documentHighlightProvider then -- the timer has application lifetime. no need to close local delay = 300 local debounced_highlight = defer.debounce_leading( vim.lsp.buf.document_highlight, delay ) local debounced_clear = defer.debounce_leading( vim.lsp.buf.clear_references, delay ) if client.server_capabilities.documentHighlightProvider then -- the timer has application lifetime. no need to close local delay = 300 local debounced_highlight = defer.debounce_leading( vim.lsp.buf.document_highlight, delay ) local debounced_clear = defer.debounce_leading( vim.lsp.buf.clear_references, delay ) auto 'document_highlight' { { description = 'Highlight symbol under cursor on hold', events = 'CursorHold', buffer = bufnr, command = debounced_highlight, }, { description = 'Remove highlight from symbol under cursor on move', events = { 'CursorMoved', 'InsertEnter' }, buffer = bufnr, command = debounced_clear, }, } end auto 'document_highlight' { { description = 'Highlight symbol under cursor on hold', events = 'CursorHold', buffer = bufnr, command = debounced_highlight, }, { description = 'Remove highlight from symbol under cursor on move', events = { 'CursorMoved', 'InsertEnter', }, buffer = bufnr, command = debounced_clear, }, } end add( client_id, map.normal { description = 'Show references of symbol under cursor.', category = 'lsp', buffer = bufnr, keys = '<leader>ln', command = vim.lsp.buf.references, } ) add( client_id, map.normal { description = 'Rename symbol under cursor.', category = 'lsp', buffer = bufnr, keys = { '<f2>', '<leader>lr', }, command = vim.lsp.buf.rename, } ) { description = 'Start or reuse LSP client', events = 'FileType', command = lsp_start, }, { description = 'Hook: LSP client attached to buffer', events = 'LspAttach', command = lsp_attach, }, { description = 'Hook: LSP client detached from buffer', events = 'LspDetach', command = lsp_detach, }, { description = 'Semantic Tokens from the LSP', events = 'LspTokenUpdate', command = token_update, }, { description = 'Start or reuse LSP client', events = 'FileType', command = lsp_start, }, { description = 'Hook: LSP client attached to buffer', events = 'LspAttach', command = lsp_attach, }, { description = 'Hook: LSP client detached from buffer', events = 'LspDetach', command = lsp_detach, }, { description = 'Semantic Tokens from the LSP', events = 'LspTokenUpdate', command = token_update, }, local full_cmd = table.deep_copy( client.config.cmd ) full_cmd[1] = vim.fn.exepath( full_cmd[1] ) local basic = { id = client.id, name = name, cmd = table.concat( full_cmd, ' ' ), workspace_folders = vim.iter( client.workspace_folders ):map( function ( w ) return vim.fs.normalize( w.name ) end ) :totable(), filetypes = table.concat( config.filetypes, ', ' ), single_file_support = config.single_file_support, workspaces = config.workspaces, } return basic end ) :totable() local full_cmd = table.deep_copy( client.config.cmd ) full_cmd[1] = vim.fn.exepath( full_cmd[1] ) local basic = { id = client.id, name = name, cmd = table.concat( full_cmd, ' ' ), workspace_folders = vim.iter( client.workspace_folders ):map( function ( w ) return vim.fs.normalize( w.name ) end ) :totable(), filetypes = table.concat( config.filetypes, ', ' ), single_file_support = config.single_file_support, workspaces = config.workspaces, } return basic end ) :totable() Class = icon.class, Color = icon.color, Constant = icon.constant, Constructor = icon.constructor, Enum = icon.enum, EnumMember = icon.enum_member, Field = icon.field, File = icon.file, Folder = icon.folder, Function = icon['function'], Interface = icon.interface, Keyword = icon.keyword, Method = icon.method, Module = icon.module, Property = icon.property, Snippet = icon.snippet, Struct = icon.struct, Text = icon.text, Unit = icon.unit, Value = icon.value, Variable = icon.variable, Class = icon.class, Color = icon.color, Constant = icon.constant, Constructor = icon.constructor, Enum = icon.enum, EnumMember = icon.enum_member, Field = icon.field, File = icon.file, Folder = icon.folder, Function = icon['function'], Interface = icon.interface, Keyword = icon.keyword, Method = icon.method, Module = icon.module, Property = icon.property, Snippet = icon.snippet, Struct = icon.struct, Text = icon.text, Unit = icon.unit, Value = icon.value, Variable = icon.variable,+105 / −267 text lines
['properties.fg'] = { properties.fg, 'string', true, }, ['properties.fg'] = { properties.fg, 'string', true }, ['properties.bg'] = { properties.bg, 'string', true, }, ['properties.bg'] = { properties.bg, 'string', true }, ['properties.sp'] = { properties.sp, 'string', true, }, ['properties.sp'] = { properties.sp, 'string', true }, ['properties.blend'] = { properties.blend, 'number', true, }, ['properties.blend'] = { properties.blend, 'number', true }, ['properties.bold'] = { properties.bold, 'boolean', true, }, ['properties.bold'] = { properties.bold, 'boolean', true }, ['properties.standout'] = { properties.standout, 'boolean', true, }, ['properties.standout'] = { properties.standout, 'boolean', true }, ['properties.underline'] = { properties.underline, 'boolean', true, }, ['properties.underline'] = { properties.underline, 'boolean', true }, ['properties.undercurl'] = { properties.undercurl, 'boolean', true, }, ['properties.undercurl'] = { properties.undercurl, 'boolean', true }, ['properties.underdotted'] = { properties.underdotted, 'boolean', true, }, ['properties.underdotted'] = { properties.underdotted, 'boolean', true }, ['properties.underdashed'] = { properties.underdashed, 'boolean', true, }, ['properties.underdashed'] = { properties.underdashed, 'boolean', true }, ['properties.strikethrough'] = { properties.strikethrough, 'boolean', true, }, ['properties.strikethrough'] = { properties.strikethrough, 'boolean', true }, ['properties.italic'] = { properties.italic, 'boolean', true, }, ['properties.italic'] = { properties.italic, 'boolean', true }, ['properties.reverse'] = { properties.reverse, 'boolean', true, }, ['properties.reverse'] = { properties.reverse, 'boolean', true }, ['properties.nocombine'] = { properties.nocombine, 'boolean', true, }, ['properties.nocombine'] = { properties.nocombine, 'boolean', true }, ['properties.default'] = { properties.default, 'boolean', true, }, ['properties.default'] = { properties.default, 'boolean', true }, ['properties.ctermfg'] = { properties.ctermfg, 'string', true, }, ['properties.ctermfg'] = { properties.ctermfg, 'string', true }, ['properties.ctermbg'] = { properties.ctermbg, 'string', true, }, ['properties.ctermbg'] = { properties.ctermbg, 'string', true }, -- • cterm: cterm attribute map, like |highlight-args|. If not set, cterm attributes will match those from the attribute map documented above. ['properties.cterm'] = { properties.cterm, 'table', true, }, ['properties.cterm'] = { properties.cterm, 'table', true }, ['properties.force'] = { properties.force, 'boolean', true, }, ['properties.force'] = { properties.force, 'boolean', true },_.Debug { fg = ui_normal, bg = debug, bold = true, }_.Debug { fg = ui_normal, bg = debug, bold = true }_.Normal { fg = content_normal, bg = content_backdrop, }_.Comment { fg = content_important_global, }_.NotifyBackground { bg = ui_backdrop, }_.LineNr { fg = ui_minor, bg = content_backdrop, }_.CursorLineNr { fg = ui_focus, bg = ui_backdrop, }_.Search { bg = content_unfocus, }_.IncSearch { fg = content_focus, }_.CurSearch { fg = content_important_global, bg = content_unfocus, }_.NormalFloat { fg = ui_normal, bg = ui_backdrop, }_.FloatBorder { fg = _.NormalFloat.bg, bg = _.NormalFloat.bg, }_.ColorColumn { fg = ui_important_global, bg = _.Normal.bg, }_.Conceal { fg = content_focus, bg = _.Normal.bg, }_.Cursor { bg = ui_accent, }_.Normal { fg = content_normal, bg = content_backdrop }_.Comment { fg = content_important_global }_.NotifyBackground { bg = ui_backdrop }_.LineNr { fg = ui_minor, bg = content_backdrop }_.CursorLineNr { fg = ui_focus, bg = ui_backdrop }_.Search { bg = content_unfocus }_.IncSearch { fg = content_focus }_.CurSearch { fg = content_important_global, bg = content_unfocus }_.NormalFloat { fg = ui_normal, bg = ui_backdrop }_.FloatBorder { fg = _.NormalFloat.bg, bg = _.NormalFloat.bg }_.ColorColumn { fg = ui_important_global, bg = _.Normal.bg }_.Conceal { fg = content_focus, bg = _.Normal.bg }_.Cursor { bg = ui_accent }_.StatusLine { fg = ui_focus, bg = ui_unfocus, }_.StatusLineNC { fg = ui_normal, bg = ui_unfocus, }_.Winbar { fg = ui_focus, bg = _.StatusLine.bg, }_.WinbarNC { fg = ui_minor, bg = _.LineNr.bg, }_.Title { fg = content_important_global, sp = content_important_global, bold = true, underline = true, }_.StatusLine { fg = ui_focus, bg = ui_unfocus }_.StatusLineNC { fg = ui_normal, bg = ui_unfocus }_.Winbar { fg = ui_focus, bg = _.StatusLine.bg }_.WinbarNC { fg = ui_minor, bg = _.LineNr.bg }_.Title { fg = content_important_global, sp = content_important_global, bold = true, underline = true }_.String { fg = content_important_local, italic = true, }_.String { fg = content_important_local, italic = true }_.PreProc { fg = content_important_global, bg = content_unfocus, bold = true, }_.PreProc { fg = content_important_global, bg = content_unfocus, bold = true }_.Special { fg = content_normal, italic = true, bold = true, }_.Special { fg = content_normal, italic = true, bold = true }_.Ignore { fg = _.Normal.bg, bg = _.Normal.bg, }_.Ignore { fg = _.Normal.bg, bg = _.Normal.bg }_.Error { fg = error, }_.Todo { fg = content_important_global, sp = content_important_global, bold = true, underdouble = true, }_.DiagnosticUnnecessary { fg = ui_focus, }_.DiagnosticDeprecated { fg = ui_important_global, sp = ui_important_global, strikethrough = true, }_.DiagnosticError { fg = error, }_.DiagnosticWarn { fg = warning, }_.DiagnosticInfo { fg = info, }_.DiagnosticHint { fg = ui_important_local, }_.DiagnosticOk { fg = ui_minor, }_.Error { fg = error }_.Todo { fg = content_important_global, sp = content_important_global, bold = true, underdouble = true }_.DiagnosticUnnecessary { fg = ui_focus }_.DiagnosticDeprecated { fg = ui_important_global, sp = ui_important_global, strikethrough = true }_.DiagnosticError { fg = error }_.DiagnosticWarn { fg = warning }_.DiagnosticInfo { fg = info }_.DiagnosticHint { fg = ui_important_local }_.DiagnosticOk { fg = ui_minor }_.DiagnosticUnderlineError { fg = _.DiagnosticError.fg, sp = _.DiagnosticError.fg, underdouble = true, }_.DiagnosticUnderlineWarn { fg = _.DiagnosticWarn.fg, sp = _.DiagnosticWarn.fg, underline = true, }_.DiagnosticUnderlineInfo { fg = _.DiagnosticInfo.fg, sp = _.DiagnosticInfo.fg, underdashed = true, }_.DiagnosticUnderlineHint { fg = _.DiagnosticHint.fg, sp = _.DiagnosticHint.fg, italic = true, underdotted = true, }_.DiagnosticUnderlineOk { fg = _.DiagnosticOk.fg, italic = true, }_.DiagnosticUnderlineError { fg = _.DiagnosticError.fg, sp = _.DiagnosticError.fg, underdouble = true }_.DiagnosticUnderlineWarn { fg = _.DiagnosticWarn.fg, sp = _.DiagnosticWarn.fg, underline = true }_.DiagnosticUnderlineInfo { fg = _.DiagnosticInfo.fg, sp = _.DiagnosticInfo.fg, underdashed = true }_.DiagnosticUnderlineHint { fg = _.DiagnosticHint.fg, sp = _.DiagnosticHint.fg, italic = true, underdotted = true }_.DiagnosticUnderlineOk { fg = _.DiagnosticOk.fg, italic = true }_.LspReferenceText { sp = content_unfocus, underline = true, }_.LspReferenceText { sp = content_unfocus, underline = true }_.LspInlayHint { fg = content_minor, bg = _.Normal.bg, }_.LspInlayHint { fg = content_minor, bg = _.Normal.bg }_['@keyword.return'] { fg = _.Keyword.fg, bg = _.Keyword.bg, underline = true, bold = true, }_['@keyword.return'] { fg = _.Keyword.fg, bg = _.Keyword.bg, underline = true, bold = true }_.LazyUrl { sp = _.NormalFloat.fg, italic = true, underline = true, }_.LazyValue { italic = true, }-- _.NoiceCmdline = _.NormalFloat-- _.NoiceCmdlineIcon { fg = ui_accent, }-- _.NoiceCmdlineIconCalculator = _.NoiceCmdlineIcon-- _.NoiceCmdlineIconCmdline = _.NoiceCmdlineIcon-- _.NoiceCmdlineIconFilter = _.NoiceCmdlineIcon-- _.NoiceCmdlineIconHelp = _.NoiceCmdlineIcon-- _.NoiceCmdlineIconIncRename = _.NoiceCmdlineIcon-- _.NoiceCmdlineIconInput = _.NoiceCmdlineIcon-- _.NoiceCmdlineIconLua = _.NoiceCmdlineIcon-- _.NoiceCmdlineIconSearch = _.NoiceCmdlineIcon---- _.NoiceCmdlinePopup = _.NormalFloat-- _.NoiceCmdlinePopupBorder = _.FloatBorder-- _.NoiceCmdlinePopupBorderCalculator = _.NoiceCmdlinePopupBorder-- _.NoiceCmdlinePopupBorderCmdline = _.NoiceCmdlinePopupBorder-- _.NoiceCmdlinePopupBorderFilter = _.NoiceCmdlinePopupBorder-- _.NoiceCmdlinePopupBorderHelp = _.NoiceCmdlinePopupBorder-- _.NoiceCmdlinePopupBorderIncRename = _.NoiceCmdlinePopupBorder-- _.NoiceCmdlinePopupBorderInput = _.NoiceCmdlinePopupBorder-- _.NoiceCmdlinePopupBorderLua = _.NoiceCmdlinePopupBorder-- _.NoiceCmdlinePopupBorderSearch = _.NoiceCmdlinePopupBorder-- _.NoiceCmdlinePopupTitle = _.NoiceCmdlinePopup-- _.NoiceCmdlinePrompt = _.NoiceCmdlinePopup-- _.NoiceCompletionItemKindDefault { fg = ui_normal, }-- _.NoiceCompletionItemKindClass = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindColor = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindConstant = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindConstructor = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindEnum = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindEnumMember = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindField = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindFile = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindFolder = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindFunction = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindInterface = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindKeyword = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindMethod = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindModule = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindProperty = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindSnippet = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindStruct = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindText = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindUnit = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindValue = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemKindVariable = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemMenu = _.NoiceCompletionItemKindDefault-- _.NoiceCompletionItemWord = _.NoiceCompletionItemKindDefault---- _.NoiceConfirm = _.NormalFloat-- _.NoiceConfirmBorder = _.FloatBorder-- _.NoiceFormatConfirm = _.LazyButton-- _.NoiceFormatConfirmDefault = _.LazyButtonActive---- _.NoiceCursor = _.Cursor---- _.NoiceFormatDate = _.NonText-- _.NoiceFormatEvent = _.NonText-- _.NoiceFormatKind = _.NonText-- _.NoiceFormatLevelDebug { fg = _.Debug.bg, }-- _.NoiceFormatLevelError = _.DiagnosticError-- _.NoiceFormatLevelInfo = _.DiagnosticInfo-- _.NoiceFormatLevelOff { fg = content_minor, }-- _.NoiceFormatLevelTrace = _.DiagnosticHint-- _.NoiceFormatLevelWarn = _.DiagnosticWarn-- _.NoiceFormatProgressDone = _.LazyProgressDone-- _.NoiceFormatProgressTodo = _.LazyProgressTodo-- _.NoiceFormatTitle = _.Title---- _.NoiceLspProgressClient = _.Debug-- _.NoiceLspProgressSpinner = _.Debug-- _.NoiceLspProgressTitle = _.Debug---- _.NoiceMini = _.DiagnosticInfo---- _.NoicePopup = _.NormalFloat-- _.NoicePopupBorder = _.FloatBorder---- _.NoicePopupmenu = _.Pmenu-- _.NoicePopupmenuBorder = _.FloatBorder-- _.NoicePopupmenuMatch = _.Bold-- _.NoicePopupmenuSelected = _.PmenuSel---- _.NoiceScrollbar = _.PmenuSbar-- _.NoiceScrollbarThumb = _.PmenuThumb---- _.NoiceSplit = _.Normal-- _.NoiceSplitBorder = _.FloatBorder-- _.NoiceVirtualText { fg = ui_important_global, bg = ui_unfocus, }-- _.NotifyERRORBorder { fg = _.DiagnosticError.fg, bg = _.FloatBorder.bg, }-- _.NotifyWARNBorder { fg = _.DiagnosticWarn.fg, bg = _.FloatBorder.bg, }-- _.NotifyINFOBorder { fg = _.DiagnosticInfo.fg, bg = _.FloatBorder.bg, }-- _.NotifyDEBUGBorder { fg = _.Debug.bg, bg = _.FloatBorder.bg, }-- _.NotifyTRACEBorder { fg = _.DiagnosticHint.fg, bg = _.FloatBorder.bg, }---- _.NotifyERRORIcon { fg = _.DiagnosticError.fg, }-- _.NotifyWARNIcon { fg = _.DiagnosticWarn.fg, }-- _.NotifyINFOIcon { fg = _.DiagnosticInfo.fg, }-- _.NotifyDEBUGIcon { fg = _.Debug.bg, }-- _.NotifyTRACEIcon { fg = _.DiagnosticHint.fg, }---- _.NotifyERRORTitle { fg = _.DiagnosticError.fg, }-- _.NotifyWARNTitle { fg = _.DiagnosticWarn.fg, }-- _.NotifyINFOTitle { fg = _.DiagnosticInfo.fg, }-- _.NotifyDEBUGTitle { fg = _.Debug.bg, }-- _.NotifyTRACETitle { fg = _.DiagnosticHint.fg, }---- _.NotifyERRORBody = _.NormalFloat-- _.NotifyWARNBody = _.NormalFloat-- _.NotifyINFOBody = _.NormalFloat-- _.NotifyDEBUGBody = _.NormalFloat-- _.NotifyTRACEBody = _.NormalFloat_.TelescopeMultiSelection { fg = content_normal, bg = ui_important_local, }_.TelescopeMultiSelection { fg = content_normal, bg = ui_important_local }_.FlashBackdrop { fg = ui_normal, bg = ui_backdrop, }_.FlashBackdrop { fg = ui_normal, bg = ui_backdrop }_.FlashLabel { fg = ui_accent, bg = ui_backdrop, }_.FlashLabel { fg = ui_accent, bg = ui_backdrop }_.GitSignsAdd { fg = _.DiffAdd.fg, bg = _.LineNr.bg, }_.GitSignsChange { fg = _.DiffChange.fg, bg = _.LineNr.bg, }_.GitSignsDelete { fg = _.DiffDelete.fg, bg = _.LineNr.bg, }_.GitSignsChangedelete = _.GitSignsChange_.GitSignsTopdelete = _.GitSignsDelete_.GitSignsUntracked = _.GitSignsAdd_.GitSignsAddNr = _.GitSignsAdd_.GitSignsChangeNr = _.GitSignsChange_.GitSignsDeleteNr = _.GitSignsDelete_.GitSignsChangedeleteNr = _.GitSignsChange_.GitSignsTopdeleteNr = _.GitSignsDelete_.GitSignsUntrackedNr = _.GitSignsAdd_.GitSignsAddLn = _.GitSignsAdd_.GitSignsChangeLn = _.GitSignsChange_.GitSignsChangedeleteLn = _.GitSignsChange_.GitSignsUntrackedLn = _.GitSignsAdd_.GitSignsAddPreview = _.GitSignsAdd_.GitSignsDeletePreview = _.GitSignsDelete_.GitSignsCurrentLineBlame = _.NonText_.GitSignsAddInline = _.GitSignsAdd_.GitSignsDeleteInline = _.GitSignsDelete_.GitSignsChangeInline = _.GitSignsChange_.GitSignsAddLnInline = _.DiffText_.GitSignsDeleteLnInline = _.DiffText_.GitSignsChangeLnInline = _.DiffText_.GitSignsDeleteVirtLn = _.GitSignsDelete_.GitSignsDeleteVirtLnInLine = _.DiffText_.GitSignsVirtLnum { fg = _.LineNr.fg, }_.WhichKey { fg = ui_important_global, }_.WhichKeyGroup { fg = ui_important_local, }_.WhichKeySeparator { fg = ui_minor, }_.WhichKeyDesc { fg = ui_normal, }_.IblScope { fg = ui_focus, bg = _.Normal.bg, }_.MiniStarterCurrent { fg = ui_normal, bg = ui_accent, }_.MiniStarterFooter = _.Keyword_.MiniStarterHeader = _.Comment_.MiniStarterInactive { fg = content_unfocus, }_.MiniStarterItem = _.Normal_.MiniStarterItemBullet = _.Whitespace_.MiniStarterItemPrefix { fg = content_focus, }_.MiniStarterSection { fg = content_important_global, underline = true, }_.MiniStarterQuery { fg = content_normal, bg = content_accent, }--TODO: Oil highlights_.IblScope { fg = ui_focus, bg = _.Normal.bg }+8 / −7 text lines
add_toggler( icon.spelling, { make_option 'spell', } )add_toggler( icon.linenumber, { make_option 'number', make_option 'relativenumber', } )add_toggler( icon.linehighlight, { make_option 'cursorline', } )add_toggler( icon.virtual, { make_option( 'virtualedit', 'all' ), } )add_toggler( icon.spelling, { make_option 'spell' } )add_toggler( icon.linenumber, { make_option 'number', make_option 'relativenumber' } )add_toggler( icon.linehighlight, { make_option 'cursorline' } )add_toggler( icon.wrap, { make_option 'wrap' } )add_toggler( icon.virtual, { make_option( 'virtualedit', 'all' ) } )+1 / −11 text lines
keys = { { 'gc', mode = { 'n', 'v', }, desc = 'Comment toggle linewise', }, { 'gb', mode = { 'n', 'v', }, desc = 'Comment toggle blockwise', }, }, dependencies = { 'JoosepAlviste/nvim-ts-context-commentstring', }, opts = function () local commentstring_avail, commentstring = pcall( require, 'ts_context_commentstring.integrations.comment_nvim' ) return commentstring_avail and commentstring and { pre_hook = commentstring.create_pre_hook(), } or {} end, opts = {},deleted file mode 100644+0 / −7 text lines
+16 / −5 text lines
command = function () require 'flash'.jump() end, command = function () prequire 'flash'.jump() end,map.normal.visual.operator_pending { keys = '<s-cr>', category = 'navigation', description = 'Jump to occurence of next treesitter node quickly', command = function () prequire 'flash'.treesitter() end,}-- { "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },-- { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },-- { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },-- { "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },deleted file mode 100644+0 / −23 text lines
require 'bugabinga.health'.add_dependency{ name = 'Glow', name_of_executable = 'glow',}local map = require 'std.map'map.normal { description = 'Generate markdown preview', keys = '<leader>gm', category = 'preview', command = '<cmd>Glow<cr>',}return { 'ellisonleao/glow.nvim', cmd = 'Glow', opts = { width_ratio = 0.69, height_ratio = 0.42, },}+27 / −146 text lines
-- FIXME: use my own icons return { fg = self.mode_colors[mode], bold = true, } return { fg = self.mode_colors[mode], bold = true } self.icon = require 'nvim-web-devicons'.get_icon_color( filename, extension, { default = true, } ) self.icon = require 'nvim-web-devicons'.get_icon_color( filename, extension, { default = true } ) { provider = '%<', }, -- this means that the statusline is cut here when there's not enough space { provider = '%<' }, -- this means that the statusline is cut here when there's not enough space return icon.file .. ' ' .. string.upper( vim.bo.filetype ) return icon.file .. ' ' .. string.lower( vim.bo.filetype ) local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E', } local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' } update = { 'LspAttach', 'LspDetach', 'BufEnter', 'BufLeave', }, update = { 'LspAttach', 'LspDetach', 'BufEnter', 'BufLeave' }, for _, client in pairs( vim.lsp.get_clients { bufnr = 0, } ) do for _, client in pairs( vim.lsp.get_clients { bufnr = 0 } ) do local navic = { condition = function () local ok, navic = pcall( require, 'nvim-navic' ) return ok and navic.is_available() end, static = { -- create a type highlight map type_hl = { File = 'Directory', Module = '@include', Namespace = '@namespace', Package = '@include', Class = '@structure', Method = '@method', Property = '@property', Field = '@field', Constructor = '@constructor', Enum = '@field', Interface = '@type', Function = '@function', Variable = '@variable', Constant = '@constant', String = '@string', Number = '@number', Boolean = '@boolean', Array = '@field', Object = '@type', Key = '@keyword', Null = '@comment', EnumMember = '@field', Struct = '@structure', Event = '@keyword', Operator = '@operator', TypeParameter = '@type', }, -- bit operation dark magic, see below... enc = function ( line, col, winnr ) return bit.bor( bit.lshift( line, 16 ), bit.lshift( col, 6 ), winnr ) end, -- line: 16 bit (65535); col: 10 bit (1023); winnr: 6 bit (63) dec = function ( c ) local line = bit.rshift( c, 16 ) local col = bit.band( bit.rshift( c, 6 ), 1023 ) local winnr = bit.band( c, 63 ) return line, col, winnr end, }, init = function ( self ) local data = require 'nvim-navic'.get_data() or {} local children = {} -- create a child for each level for i, d in ipairs( data ) do -- encode line and column numbers into a single integer local pos = self.enc( d.scope.start.line, d.scope.start.character, self.winnr ) local child = { { provider = d.icon, hl = self.type_hl[d.type], }, { -- escape `%`s (elixir) and buggy default separators provider = d.name:gsub( '%%', '%%%%' ):gsub( '%s*->%s*', '' ), -- highlight icon only or location name as well hl = self.type_hl[d.type], on_click = { -- pass the encoded position through minwid minwid = pos, callback = function ( _, minwid ) -- decode local line, col, winnr = self.dec( minwid ) vim.api.nvim_win_set_cursor( vim.fn.win_getid( winnr ), { line, col, } ) end, name = 'heirline_navic', }, }, } -- add a separator only if needed if #data > 1 and i < #data then table.insert( child, { provider = ' > ', -- hl = { fg = 'bright_fg', }, } ) end table.insert( children, child ) end -- instantiate the new child, overwriting the previous one self.child = self:new( children, 1 ) end, -- evaluate the children containing navic components provider = function ( self ) return self.child:eval() end, -- hl = { fg = 'gray', }, update = 'CursorMoved', } local diagnostic_enabled = { init = function ( self ) self.icon = (not vim.diagnostic.is_enabled()) and icon.toggle_off or icon.toggle_on end, provider = function ( self ) return icon.diagnostic .. ' ' .. self.icon end, } self.errors = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.ERROR, } ) self.warnings = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.WARN, } ) self.hints = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.HINT, } ) self.info = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.INFO, } ) self.errors = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.ERROR } ) self.warnings = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.WARN } ) self.hints = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.HINT } ) self.info = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.INFO } ) update = { 'DiagnosticChanged', 'BufEnter', 'BufLeave', }, update = { 'DiagnosticChanged', 'BufEnter', 'BufLeave' }, args = { 'info', '--show-item', 'relative-url', '--no-newline', }, args = { 'info', '--show-item', 'relative-url', '--no-newline' }, togglers, return conditions.buffer_matches { buftype = { 'terminal', }, } return conditions.buffer_matches { buftype = { 'terminal' } } { condition = conditions.is_active, vi_mode, space, }, { condition = conditions.is_active, vi_mode, space },+14 / −10 text lines
local uv = vim.uv or vim.loop local timer = assert( uv.new_timer() )deleted file mode 100644+0 / −14 text lines
deleted file mode 100644+0 / −1 text lines
return { 'SmiteshP/nvim-navic', opts = {}, }deleted file mode 100644+0 / −44 text lines
local map = require 'std.map'map.normal { description = 'Doc Comment', category = 'generate', keys = '<leader>gdd', command = function () require 'neogen'.generate() end,}map.normal { name = 'Doc Comment for Function', category = 'generate', keys = '<leader>gdm', command = function () require 'neogen'.generate { type = 'func', } end,}map.normal { description = 'Doc Comment for File', category = 'generate', keys = '<leader>gdf', command = function () require 'neogen'.generate { type = 'file', } end,}map.normal { description = 'Doc Comment for Class', category = 'generate', keys = '<leader>gdc', command = function () require 'neogen'.generate { type = 'class', } end,}map.normal { description = 'Doc Comment for Type', category = 'generate', keys = '<leader>gdt', command = function () require 'neogen'.generate { type = 'type', } end,}return { 'danymat/neogen', dependencies = { 'nvim-treesitter/nvim-treesitter', }, opts = { snippet_engine = 'luasnip', },}deleted file mode 100644+0 / −9 text lines
+3 / −1 text lines
deleted file mode 100644+0 / −45 text lines
local map = require 'std.map'map.normal { description = 'Grep search for word under cursor', category = 'search', keys = 'gw', command = '<cmd>cclose <bar> Grep <cword><cr>',}map.normal { description = 'Goto next quickfix item', category = 'navigation', keys = ']q', command = '<cmd>QNext<cr>',}map.normal { description = 'Goto previous quickfix item', category = 'navigation', keys = '[q', command = '<cmd>QPrev<cr>',}map.normal { description = 'Toggle open quickfix window', category = 'navigation', keys = '<leader>Q', command = '<cmd>QFToggle!<CR>',}map.normal { description = 'Toggle open loclist window', category = 'navigation', keys = '<leader>L', command = '<cmd>LLToggle!<CR>',}return { 'stevearc/qf_helper.nvim', ft = 'qf', cmd = { 'QNext', 'QPrev', 'QFToggle', 'QFOpen', 'LLToggle', }, opts = { prefer_loclist = false, },}deleted file mode 100644+0 / −1 text lines
return { 'b0o/schemastore.nvim', }deleted file mode 100644+0 / −35 text lines
local map = require 'std.map'local user_command = require 'std.user_command'local open_ssr = function () prequire 'ssr'.open() endmap.normal.visual { description = 'Open structural search and replace', category = 'refactoring', keys = '<leader>rr', command = open_ssr,}user_command.StructuralSearchAndReplace'Open structural search and replace view' ( open_ssr )return { 'cshuaimin/ssr.nvim', opts = { border = vim.g.border_style, min_width = 69, min_height = 42, max_width = 3 * 69, max_height = 3 * 42, adjust_window = true, keymaps = { close = 'q', next_match = 'n', prev_match = 'N', replace_confirm = '<cr>', replace_all = '<c-cr>', }, },}deleted file mode 100644+0 / −14 text lines
local map = require 'std.map'map.normal { description = 'Toggle background transparency.', category = 'ui', keys = '<leader>tb', command = '<cmd>TransparentToggle<cr>',}return { 'xiyaowong/transparent.nvim', cmd = { 'TransparentEnable', 'TransparentDisable', 'TransparentToggle', }, config = true,}+26 / −57 text lines
require 'nvim-treesitter.install'.update { with_sync = true, } require 'nvim-treesitter.install'.update { with_sync = true } -- 'nvim-treesitter/playground', -- FIXME: move nvim-treesitter modules out into normal config to prepare for main branch 'nvim-treesitter/nvim-treesitter-context', install.compilers = { 'zig cc', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC', } install.compilers = { 'zig cc', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' } ---@diagnostic disable-next-line: undefined-field -- FIXME: not too happy with these binds. but i dont feel better ones right now. indent = { enable = true, disable = should_disable, }, indent = { enable = true, disable = should_disable }, ['al'] = { query = '@loop.outer', desc = 'outer loop', }, ['il'] = { query = '@loop.inner', desc = 'inner loop', }, ['aa'] = { query = '@parameter.outer', desc = 'outer parameter', }, ['ia'] = { query = '@parameter.inner', desc = 'inner parameter', }, ['agc'] = { query = '@comment.outer', desc = 'outer comment', }, ['igc'] = { query = '@comment.inner', desc = 'inner comment', }, [']f'] = { query = '@call.outer', desc = 'Goto next function call', }, [']m'] = { query = '@function.outer', desc = 'Goto next function definition', }, [']c'] = { query = '@class.outer', desc = 'Goto next class', }, [']o'] = { query = '@conditional.outer', desc = 'Goto next conditional', }, [']p'] = { query = '@parameter.outer', desc = 'Goto next parameter', }, [']m'] = { query = '@function.outer', desc = 'Goto next function definition' }, ['[f'] = { query = '@call.outer', desc = 'Goto previous function call', }, ['[m'] = { query = '@function.outer', desc = 'Goto previous function definition', }, ['[c'] = { query = '@class.outer', desc = 'goto previous class', }, ['[o'] = { query = '@conditional.outer', desc = 'Goto previous conditional', }, ['[p'] = { query = '@parameter.outer', desc = 'Goto previous parameter', }, ['[m'] = { query = '@function.outer', desc = 'Goto previous function definition' }, require 'treesitter-context'.setup { enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) disable = should_disable, max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. line_numbers = true, multiline_threshold = 10, -- Maximum number of lines to show for a single context trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' mode = 'topline', -- Line used to calculate context. Choices: 'cursor', 'topline' -- Separator between context and content. Should be a single character string, like '-'. -- When separator is set, the context will only show up when there are at least 2 lines above cursorline. separator = '-', zindex = 20, -- The Z-index of the context window on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching }+2 / −3 text lines
dependencies = { { 'folke/twilight.nvim', opts = { dimming = { inactive = true, }, }, }, }, dependencies = { { 'folke/twilight.nvim', opts = { dimming = { inactive = false, }, }, }, },+112 / −112 text lines
+1 / −0 text lines
+40 / −40 text lines
justnow = 'just now', minute = {singular = 'a minute ago', plural = 'minutes ago'}, hour = {singular = 'an hour ago', plural = 'hours ago'}, day = {singular = 'a day ago', plural = 'days ago'}, week = {singular = 'a week ago', plural = 'weeks ago'}, month = {singular = 'a month ago', plural = 'months ago'}, year = {singular = 'a year ago', plural = 'years ago'} justnow = 'now', minute = { singular = '1 mi', plural = 'mis', }, hour = { singular = '1 hr', plural = 'hrs', }, day = { singular = '1 dy', plural = 'dys', }, week = { singular = '1 wk', plural = 'wks', }, month = { singular = '1 mo', plural = 'mos', }, year = { singular = '1 yr', plural = 'yrs', },local function round(num) return math.floor(num + 0.5) endlocal function round( num ) return math.floor( num + 0.5 ) end+2 / −0 text lines
+12 / −2 text lines
new file mode 100755+23 / −0 text lines
# Installs my most used packages on fedora.# This mainly means devel packages for rust tools or tools in the repos.export def main [ --gui # install gui stuff] { # building c/c++ sudo dnf groupinstall "Development Tools" "Development Libraries" # deps of some rust crates i like to build sudo dnf install fontconfig-devel freetype-devel libX11-xcb libX11-devel libstdc++-static libstdc++-devel alsa-lib-devel libspatialaudio-devel pipewire-devel systemd-devel libseat-devel cairo-gobject-devel pango-devel libdisplay-info-devel libinput-devel mesa-libgbm-devel openssl-devel wayland-devel pipewire-devel pango-devel mesa-libgbm-devel libxkbcommon-devel libseat-devel libspatialaudio-devel # these seem to be deps of the openssl-sys crates build system sudo dnf install perl-File-Compare perl-File-Copy perl-FindBin perl-IPC-Cmd # my stuff sudo dnf install aerc llvm clang cmake unison rustup neovim mold java-latest-openjdk-devel java-latest-openjdk-src perl-Image-ExifTool # gui stuff if $gui { sudo dnf install gnome-tweaks zathura zathura-pdf-mudpf }}new file mode 100644+61 / −0 text lines
export def main [ --clear-cache --cache = "~/.cache/packages" --packages = "~/Tools/packages.csv" --prefix = "~/Tools"] { check_dependencies let prefix = $prefix | path expand let packages = $packages | path expand let packages = open --raw $packages | from csv --separator ';' --comment '#' --trim all let cache = $cache | path expand if $clear_cache { rm --recursive --trash --interactive-once $cache return } mkdir $cache print $"Downloading packages..." let $packages_file = mktemp --suffix _packages.txt --tmpdir XXX $packages | get url | save --force $packages_file run-external dlm '--maxConcurrentDownloads' 4 '--inputFile' $packages_file '--outputDir' $cache $packages | each { |package| # pipe through url parse for validation let base = $package.url | url parse | get path | path basename let cached = $cache | path join $base print $"Installing ($package.name)" if ($cached | is-archive) { print $"Decompressing ($package.name)..." run-external ouch decompress '--quiet' $cached '--dir' $prefix } else { error make { msg: $"The package ($package.name) does not seem to be an archive." } } print $"TODO: Symlinks" }}def is-archive [] { [ .zip .tar.gz .tar.bz2 .tar.xz .7z ] | any { |ext| $in | str ends-with $ext }}def remove-archive-extension [] { let uri = $in [ .zip .tar.gz .tar.bz2 .tar.xz .7z ] | reduce --fold $uri { |ext, acc| $acc | str replace $ext '' } | str trim}def check_dependencies [] { let missing = [ ouch dlm ] | any { which $in | is-empty } if $missing { error make { msg: 'Some dependency is missing!' } }}deleted file mode 100755+0 / −14 text lines
#!/usr/bin/env nu# building c/c++sudo dnf groupinstall "Development Tools" "Development Libraries"# deps of some rust crates i like to buildsudo dnf install fontconfig-devel freetype-devel libX11-xcb libX11-devel libstdc++-static libstdc++-devel alsa-lib-devel libspatialaudio-devel pipewire-devel systemd-devel libseat-devel cairo-gobject-devel pango-devel libdisplay-info-devel libinput-devel mesa-libgbm-devel openssl-devel wayland-devel pipewire-devel pango-devel mesa-libgbm-devel libxkbcommon-devel libseat-devel libspatialaudio-devel# these seem to be deps of the openssl-sys crates build systemsudo dnf install perl-File-Compare perl-File-Copy perl-FindBin perl-IPC-Cmd# my stuffsudo dnf install aerc llvm clang cmake unison rustup neovim mold java-latest-openjdk-devel java-latest-openjdk-src gnome-tweaks nasm+8 / −0 text lines
new file mode 100644+18 / −0 text lines
local wez = require 'wezterm'return { random = function () local font_names = {} local nerdfonts = io.open( wez.config_dir .. '/bugabinga/code_fonts', 'r' ) if nerdfonts then for font_name in nerdfonts:lines() do if not font_name:match '^#.*' then table.insert( font_names, font_name ) end end local random_font = font_names[math.random( #font_names )] return wez.font( random_font ) end return wez.font 'JetBrains Mono' end,}new file mode 100644+116 / −0 text lines
Anonymous ProAnonymous Pro MinusAurulent Sans MonoAverageMonoBPmonoBigBlue TerminalPlusBitstream Vera Sans MonoBrontCMU Typewriter TextCPMono_v07CamingoCodeCascadia CodeCode New RomanCodingFontTobiConsola MonoCourier Prime CodeCousineCrispCutive MonoD2CodingDejaVu Sans MonoDina ttf 10pxDroid Sans MonoEdloEnvy Code RFantasque Sans MonoFira CodeFira MonoFixedsys Excelsior 3.01FreeMonoGeist MonoGeneric Mono IIGohuFontHackHaskligHermit# IBM Plex MathIBM Plex Mono# IBM Plex Sans# IBM Plex Sans Condensed# IBM Plex SerifInconsolataInconsolata LGCInconsolata-dzInconsolata-gIntel One MonoIosevkaIosevka SlabJetBrains MonoJetBrains Mono NLKawkab MonoLatin Modern Mono LightLektonLiberation MonoLilexLinux Libertine MonoLuculentLuxi MonoM+ 1mM+ 1mnM+ 2mMartian MonoMenschMeslo LG M DZMetrickalMonaspace Argon VarMonaspace Krypton VarMonaspace Neon VarMonaspace Radon VarMonaspace Xenon VarMonoSpatialMonoidMonospaceMonospaceTypewriterMonteCarlo Fixed 12NanumGothic_CodingNimbus MonoNotCourierSansOffice Code ProOffice Code Pro DOxygen MonoPT MonoPanic SansPixelCarnageMonoTTPointfreeProFontWindowsProggyCleanTTProggyCleanTTSZProggySmallTTProggySquareTTProggySquareTTSZProggyTinyTTProggyTinyTTSZRec Mono CasualRec Mono LinearRoboto MonoSV Basic ManualShare Tech MonoShare-TechMonoTrueSmallTypeWritingSource Code ProSudoSymbols Nerd FontSymbols Nerd Font MonoTeX Gyre CursorTerminusUbuntu MonoVerily Serif MonoVictor MonoWhoisagaveiA Writer Mono VmonoOnemonofurmononokisaxMono+2 / −3 text lines
+2 / −2 text lines
+2 / −2 text lines
+10 / −0 text lines
deleted file mode 100644+0 / −18 text lines
local wez = require 'wezterm'return { random = function () local font_names = {} local nerdfonts = io.open( wez.config_dir .. '/bugabinga/nerdfonts', 'r' ) if nerdfonts then for font_name in nerdfonts:lines() do if not font_name:match '^#.*' then table.insert( font_names, font_name ) end end local random_font = font_names[math.random( #font_names )] return wez.font( random_font ) end return wez.font 'JetBrains Mono' end,}deleted file mode 100644+0 / −39 text lines
Bitstream Vera Sans Mono# TerminusAnonymous ProAurulent Sans Mono# BigBlueTerminalPlusCascadia CodeCousineD2CodingDejaVu Sans MonoDroid Sans MonoEnvy Code RFantasque Sans Mono# FiraCodeGeistMonoHackHaskligHermit# IBM 3270IBM Plex Mono# InconsolataIntel One MonoJetBrainsMonoLekton# Liberation MonoLilexMartianMonoMonaspace Argon VarMonaspace Krypton VarMonaspace Neon VarMonofurMonoidMononokiRec Mono CasualRec Mono LinearRobotoMonoShare Tech MonoSource Code ProVictorMonoiA Writer Mono V+11 / −0 text lines