Reformat to Student config
This commit is contained in:
1 parent
28ebd8999d
commit
94b73b6d67
91 files changed
+785
-6603
No files matched your search
@@ -1,3 +1,5 @@
|
|||||||
# Venomade's Dotfiles
|
# Venomade's Nix Dotfiles
|
||||||
|
|
||||||
These are my dotfiles managed with [Home Manager](https://nixos.wiki/wiki/Home_Manager).
|
These are my dotfiles managed with [Home Manager](https://nixos.wiki/wiki/Home_Manager).
|
||||||
|
|
||||||
|
**ALPHA VERSION** (Not everything is fully ported yet, this will be removed when it is complete)
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
[general]
|
|
||||||
import = ['~/.config/alacritty/modus-vivendi.toml']
|
|
||||||
|
|
||||||
[window]
|
|
||||||
padding = { x = 6, y = 6 }
|
|
||||||
dynamic_padding = true
|
|
||||||
title = 'Terminal'
|
|
||||||
|
|
||||||
[font]
|
|
||||||
normal = { family = 'AporeticSansMonoNerdFont', style = 'Regular' }
|
|
||||||
size = 12
|
|
||||||
|
|
||||||
[selection]
|
|
||||||
save_to_clipboard = true
|
|
||||||
|
|
||||||
[cursor]
|
|
||||||
style = { shape = 'Beam', blinking = 'On'}
|
|
||||||
|
|
||||||
[terminal]
|
|
||||||
shell = '/home/venomade/.nix-profile/bin/zsh'
|
|
||||||
|
|
||||||
[hints]
|
|
||||||
alphabet = 'neiotsradhwyfupl'
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
# Colors Modus-Vivendi
|
|
||||||
[colors.normal]
|
|
||||||
black = '#1e1e1e'
|
|
||||||
red = '#ff5f59'
|
|
||||||
green = '#44bc44'
|
|
||||||
yellow = '#d0bc00'
|
|
||||||
blue = '#2fafff'
|
|
||||||
magenta = '#feacd0'
|
|
||||||
cyan = '#00d3d0'
|
|
||||||
white = '#ffffff'
|
|
||||||
[colors.bright]
|
|
||||||
black = '#535353'
|
|
||||||
red = '#ff7f9f'
|
|
||||||
green = '#00c06f'
|
|
||||||
yellow = '#dfaf7a'
|
|
||||||
blue = '#00bcff'
|
|
||||||
magenta = '#b6a0ff'
|
|
||||||
cyan = '#6ae4b9'
|
|
||||||
white = '#989898'
|
|
||||||
[colors.cursor]
|
|
||||||
cursor = '#ffffff'
|
|
||||||
text = '#000000'
|
|
||||||
[colors.primary]
|
|
||||||
background = '#000000'
|
|
||||||
foreground = '#ffffff'
|
|
||||||
[colors.selection]
|
|
||||||
background = '#5a5a5a'
|
|
||||||
text = '#ffffff'
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
--theme="Catppuccin Mocha"
|
|
||||||
@@ -1,439 +0,0 @@
|
|||||||
<!-- Modus Themes for Bat -->
|
|
||||||
<!-- Auto generated with https://github.com/miikanissi/modus-themes.nvim/blob/master/lua/modus-themes/extras/bat.lua -->
|
|
||||||
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>modus_vivendi</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>background</key>
|
|
||||||
<string>#000000</string>
|
|
||||||
<key>caret</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#ffffff</string>
|
|
||||||
<key>invisibles</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
<key>lineHighlight</key>
|
|
||||||
<string>#2f3849</string>
|
|
||||||
<key>selection</key>
|
|
||||||
<string>#7030af</string>
|
|
||||||
<key>findHighlight</key>
|
|
||||||
<string>#7a6100</string>
|
|
||||||
<key>selectionBorder</key>
|
|
||||||
<string>#646464</string>
|
|
||||||
<key>gutterForeground</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Comment</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>comment</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>fontStyle</key>
|
|
||||||
<string>italic</string>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>String</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>string</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#79a8ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Number</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.numeric</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#82b0ec</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Built-in constant</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.language</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#6ae4b9</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>User-defined constant</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.character, constant.other</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#ffffff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Variable</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>variable</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>fontStyle</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Ruby's @variable</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>variable.other.readwrite.instance</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>String interpolation</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.character.escaped, constant.character.escape, string source, string source.ruby</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#d2b580</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Keyword</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>keyword</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>fontStyle</key>
|
|
||||||
<string>italic</string>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Storage</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>storage</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Storage type</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>storage.type</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Class name</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.name.class</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Inherited class</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.other.inherited-class</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Function name</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.name.function</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#feacd0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Function argument</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>variable.parameter</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Tag name</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.name.tag</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Tag attribute</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.other.attribute-name</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Library function</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>support.function</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#feacd0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Library constant</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>support.constant</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#6ae4b9</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Library class/type</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>support.type, support.class</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#6ae4b9</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Library variable</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>support.other.variable</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Invalid</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>invalid</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Invalid deprecated</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>invalid.deprecated</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>JSON String</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>meta.structure.dictionary.json string.quoted.double.json</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#79a8ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>diff.header</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>meta.diff, meta.diff.header</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#feacd0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>diff.deleted</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>markup.deleted</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>background</key>
|
|
||||||
<string>#4f1119</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>diff.inserted</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>markup.inserted</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>background</key>
|
|
||||||
<string>#00381f</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>diff.changed</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>markup.changed</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>background</key>
|
|
||||||
<string>#363300</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.numeric.line-number.find-in-files - match</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#82b0ec</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.name.filename</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#2fafff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>message.error</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>fontStyle</key>
|
|
||||||
<string>bold</string>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#ff7f9f</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>JSON Punctuation</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>punctuation.definition.string.begin.json - meta.structure.dictionary.value.json, punctuation.definition.string.end.json - meta.structure.dictionary.value.json</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#ffffff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>JSON Structure</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>meta.structure.dictionary.json string.quoted.double.json</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#79a8ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>JSON String</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>meta.structure.dictionary.value.json string.quoted.double.json</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#79a8ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Escape Characters</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.character.escape</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#d2b580</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Regular Expressions</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>string.regexp</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00c06f</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>uuid</key>
|
|
||||||
<string>09CE9B40-0137-442C-8512-7CEAFC78C153</string>
|
|
||||||
<key>colorSpaceName</key>
|
|
||||||
<string>sRGB</string>
|
|
||||||
<key>semanticClass</key>
|
|
||||||
<string>Modus Vivendi</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ nix-colors, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
nix-colors.homeManagerModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
colorScheme = {
|
||||||
|
slug = "ef-cyprus";
|
||||||
|
name = "ef-cyprus";
|
||||||
|
author = "Protesilaos Stavrou (https://protesilaos.com)";
|
||||||
|
palette = {
|
||||||
|
base00 = "FCF7EF";
|
||||||
|
base01 = "F0ECE0";
|
||||||
|
base02 = "E5E3D8";
|
||||||
|
base03 = "59786F";
|
||||||
|
base04 = "7F475A";
|
||||||
|
base05 = "242521";
|
||||||
|
base06 = "142010";
|
||||||
|
base07 = "C0DF6F";
|
||||||
|
base08 = "9F0D0F";
|
||||||
|
base09 = "BF4400";
|
||||||
|
base0A = "A7601F";
|
||||||
|
base0B = "006F00";
|
||||||
|
base0C = "1F70AF";
|
||||||
|
base0D = "375CC6";
|
||||||
|
base0E = "9A456F";
|
||||||
|
base0F = "8F6F4A";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
/url/cache
|
|
||||||
/.emacs.desktop
|
|
||||||
/auto-save-list
|
|
||||||
/network-security.data
|
|
||||||
/.session
|
|
||||||
/session.*
|
|
||||||
/custom.el
|
|
||||||
*.elc
|
|
||||||
CVS
|
|
||||||
.svn
|
|
||||||
*~
|
|
||||||
.cvsignore
|
|
||||||
.*.lock
|
|
||||||
/tramp
|
|
||||||
/TODO
|
|
||||||
/.org-id-locations
|
|
||||||
cookies
|
|
||||||
/newsticker
|
|
||||||
\#*
|
|
||||||
/tree-sitter
|
|
||||||
/elpa
|
|
||||||
/elpa-*
|
|
||||||
site-lisp/package/
|
|
||||||
/swank
|
|
||||||
/.mc-lists.el
|
|
||||||
/var
|
|
||||||
/.sqli_history
|
|
||||||
/frame-restore-parameters
|
|
||||||
/.achievements
|
|
||||||
/.bookmarks.el
|
|
||||||
/history
|
|
||||||
/helm-adaptive-history
|
|
||||||
/thumbs/
|
|
||||||
/emms/
|
|
||||||
/.smex-items
|
|
||||||
/image-dired/
|
|
||||||
/eshell
|
|
||||||
/.cask/
|
|
||||||
/.sx/
|
|
||||||
/org-clock-save.el
|
|
||||||
/ditaa*.jar
|
|
||||||
/ido.last
|
|
||||||
/recentf
|
|
||||||
/viper
|
|
||||||
/projectile-bookmarks.eld
|
|
||||||
/anaconda-mode/
|
|
||||||
/.historian
|
|
||||||
/.uptimes.el
|
|
||||||
/rake.cache
|
|
||||||
/plantuml.jar
|
|
||||||
/magithub
|
|
||||||
.cache/
|
|
||||||
/forge-database.sqlite
|
|
||||||
/transient
|
|
||||||
/.lsp-session-v1
|
|
||||||
/smex-items
|
|
||||||
/eln-cache/
|
|
||||||
/projects
|
|
||||||
/forge-*.sqlite
|
|
||||||
/projectile.cache
|
|
||||||
config.el
|
|
||||||
places
|
|
||||||
org-roam.db
|
|
||||||
elfeed/
|
|
||||||
ellama-sessions/
|
|
||||||
ollama-buddy-sessions/
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -1,9 +0,0 @@
|
|||||||
;; GC Perfomance Tweaks from DOOM Emacs
|
|
||||||
(setq gc-cons-threshold most-positive-fixnum
|
|
||||||
gc-cons-percentage 1.0)
|
|
||||||
(add-hook 'emacs-startup-hook
|
|
||||||
(lambda ()
|
|
||||||
(setq gc-cons-threshold (* 128 1024 1024) ;; 128MB
|
|
||||||
gc-cons-percentage 1.0)))
|
|
||||||
|
|
||||||
(setenv "LSP_USE_PLISTS" "true")
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
(setq vc-follow-symlinks t)
|
|
||||||
(org-babel-load-file
|
|
||||||
(expand-file-name
|
|
||||||
"config.org"
|
|
||||||
user-emacs-directory))
|
|
||||||
@@ -1,147 +0,0 @@
|
|||||||
# Modus Themes for eza
|
|
||||||
# Auto generated with https://github.com/miikanissi/modus-themes.nvim/blob/master/lua/modus-themes/extras/eza.lua
|
|
||||||
colourful: true
|
|
||||||
|
|
||||||
# base colors
|
|
||||||
define: &bg_main "#000000"
|
|
||||||
define: &bg_dim = "#1e1e1e"
|
|
||||||
define: &bg_alt = "#0f0f0f"
|
|
||||||
define: &fg_main = "#ffffff"
|
|
||||||
define: &fg_dim = "#989898"
|
|
||||||
define: &fg_alt = "#c6daff"
|
|
||||||
define: &border = "#646464"
|
|
||||||
define: &border_highlight = "#C4C4C4"
|
|
||||||
|
|
||||||
# foreground colors
|
|
||||||
define: &red "#ff5f59"
|
|
||||||
define: &red_warmer "#ff6b55"
|
|
||||||
define: &red_cooler "#ff7f9f"
|
|
||||||
define: &red_faint "#ff9580"
|
|
||||||
define: &green "#44bc44"
|
|
||||||
define: &green_warmer "#70b900"
|
|
||||||
define: &green_cooler "#00c06f"
|
|
||||||
define: &green_faint "#88ca9f"
|
|
||||||
define: &yellow "#d0bc00"
|
|
||||||
define: &yellow_warmer "#fec43f"
|
|
||||||
define: &yellow_cooler "#dfaf7a"
|
|
||||||
define: &yellow_faint "#d2b580"
|
|
||||||
define: &blue "#2fafff"
|
|
||||||
define: &blue_warmer "#79a8ff"
|
|
||||||
define: &blue_cooler "#00bcff"
|
|
||||||
define: &blue_faint "#82b0ec"
|
|
||||||
define: &magenta "#feacd0"
|
|
||||||
define: &magenta_warmer "#f78fe7"
|
|
||||||
define: &magenta_cooler "#b6a0ff"
|
|
||||||
define: &magenta_faint "#caa6df"
|
|
||||||
define: &cyan "#00d3d0"
|
|
||||||
define: &cyan_warmer "#4ae2f0"
|
|
||||||
define: &cyan_cooler "#6ae4b9"
|
|
||||||
define: &cyan_faint "#9ac8e0"
|
|
||||||
define: &rust "#db7b5f"
|
|
||||||
define: &gold "#c0965b"
|
|
||||||
define: &olive "#9cbd6f"
|
|
||||||
define: &slate "#76afbf"
|
|
||||||
define: &indigo "#9099d9"
|
|
||||||
define: &maroon "#cf7fa7"
|
|
||||||
define: &pink "#d09dc0"
|
|
||||||
|
|
||||||
filekinds:
|
|
||||||
normal: {foreground: *fg_main}
|
|
||||||
directory: {foreground: *blue_warmer}
|
|
||||||
symlink: {foreground: *blue}
|
|
||||||
pipe: {foreground: *fg_dim}
|
|
||||||
block_device: {foreground: *magenta_cooler}
|
|
||||||
char_device: {foreground: *yellow_warmer}
|
|
||||||
socket: {foreground: *magenta}
|
|
||||||
special: {foreground: *pink}
|
|
||||||
executable: {foreground: *green}
|
|
||||||
mount_point: {foreground: *cyan}
|
|
||||||
|
|
||||||
perms:
|
|
||||||
user_read: {foreground: *fg_dim}
|
|
||||||
user_write: {foreground: *red}
|
|
||||||
user_execute_file: {foreground: *green}
|
|
||||||
user_execute_other: {foreground: *green}
|
|
||||||
group_read: {foreground: *fg_dim}
|
|
||||||
group_write: {foreground: *red}
|
|
||||||
group_execute: {foreground: *green}
|
|
||||||
other_read: {foreground: *fg_dim}
|
|
||||||
other_write: {foreground: *red}
|
|
||||||
other_execute: {foreground: *green}
|
|
||||||
special_user_file: {foreground: *magenta_cooler}
|
|
||||||
special_other: {foreground: *red}
|
|
||||||
attribute: {foreground: *pink}
|
|
||||||
|
|
||||||
size:
|
|
||||||
major: {foreground: *fg_dim}
|
|
||||||
minor: {foreground: *blue_warmer}
|
|
||||||
number_byte: {foreground: *pink}
|
|
||||||
number_kilo: {foreground: *rust}
|
|
||||||
number_mega: {foreground: *blue_warmer}
|
|
||||||
number_giga: {foreground: *magenta_cooler}
|
|
||||||
number_huge: {foreground: *magenta}
|
|
||||||
unit_byte: {foreground: *pink}
|
|
||||||
unit_kilo: {foreground: *rust}
|
|
||||||
unit_mega: {foreground: *blue_warmer}
|
|
||||||
unit_giga: {foreground: *magenta_cooler}
|
|
||||||
unit_huge: {foreground: *magenta}
|
|
||||||
|
|
||||||
users:
|
|
||||||
user_you: {foreground: *yellow_warmer}
|
|
||||||
user_root: {foreground: *red}
|
|
||||||
user_other: {foreground: *magenta_cooler}
|
|
||||||
group_yours: {foreground: *pink}
|
|
||||||
group_other: {foreground: *fg_dim}
|
|
||||||
group_root: {foreground: *red}
|
|
||||||
|
|
||||||
links:
|
|
||||||
normal: {foreground: *blue}
|
|
||||||
multi_link_file: {foreground: *cyan}
|
|
||||||
|
|
||||||
git:
|
|
||||||
new: {foreground: *green}
|
|
||||||
modified: {foreground: *yellow_warmer}
|
|
||||||
deleted: {foreground: *red}
|
|
||||||
renamed: {foreground: *cyan}
|
|
||||||
typechange: {foreground: *magenta_cooler}
|
|
||||||
ignored: {foreground: *pink}
|
|
||||||
conflicted: {foreground: *magenta}
|
|
||||||
|
|
||||||
git_repo:
|
|
||||||
branch_main: {foreground: *fg_dim}
|
|
||||||
branch_other: {foreground: *magenta_cooler}
|
|
||||||
git_clean: {foreground: *green}
|
|
||||||
git_dirty: {foreground: *red}
|
|
||||||
|
|
||||||
security_context:
|
|
||||||
colon: {foreground: *fg_dim}
|
|
||||||
user: {foreground: *blue_warmer}
|
|
||||||
role: {foreground: *magenta_cooler}
|
|
||||||
typ: {foreground: *pink}
|
|
||||||
range: {foreground: *magenta_cooler}
|
|
||||||
|
|
||||||
file_type:
|
|
||||||
image: {foreground: *yellow_warmer}
|
|
||||||
video: {foreground: *magenta}
|
|
||||||
music: {foreground: *blue_warmer}
|
|
||||||
lossless: {foreground: *cyan}
|
|
||||||
crypto: {foreground: *pink}
|
|
||||||
document: {foreground: *fg_dim}
|
|
||||||
compressed: {foreground: *magenta_cooler}
|
|
||||||
temp: {foreground: *yellow_warmer}
|
|
||||||
compiled: {foreground: *cyan}
|
|
||||||
build: {foreground: *pink}
|
|
||||||
source: {foreground: *green}
|
|
||||||
|
|
||||||
punctuation: {foreground: *pink}
|
|
||||||
date: {foreground: *cyan}
|
|
||||||
inode: {foreground: *fg_dim}
|
|
||||||
blocks: {foreground: *pink}
|
|
||||||
header: {foreground: *fg_dim}
|
|
||||||
octal: {foreground: *blue_warmer}
|
|
||||||
flags: {foreground: *magenta_cooler}
|
|
||||||
|
|
||||||
symlink_path: {foreground: *blue}
|
|
||||||
control_char: {foreground: *cyan}
|
|
||||||
broken_symlink: {foreground: *red}
|
|
||||||
broken_path_overlay: {foreground: *pink}
|
|
||||||
Submodule config/kak/autoload/auto-pairs deleted from e812ee6006.
Submodule config/kak/autoload/fzf.kak deleted from 8fcce0c9fc.
Submodule config/kak/autoload/kak-ansi deleted from 14feefb470.
Submodule config/kak/autoload/kak-harpoon deleted from 28e2019d4a.
Submodule config/kak/autoload/kakboard deleted from 5759dcc5af.
Submodule config/kak/autoload/kakoune-focus deleted from d39ee2f1dc.
Submodule config/kak/autoload/kakoune-state-save deleted from e8b6c269ac.
Submodule config/kak/autoload/kakoune-sudo-write deleted from ec0d6d26ce.
Submodule config/kak/autoload/kakpipe deleted from 7f29ee36b2.
Submodule config/kak/autoload/nanoline.kak deleted from a7c5773e59.
@@ -1 +0,0 @@
|
|||||||
/nix/store/kr84jgb3bfca47m0njizy2pi61adh2wk-kakoune-2025.06.03/share/kak/rc
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
# Black Mocha
|
|
||||||
|
|
||||||
evaluate-commands %sh{
|
|
||||||
rosewater='rgb:f5e0dc'
|
|
||||||
flamingo='rgb:f2cdcd'
|
|
||||||
pink='rgb:f5c2e7'
|
|
||||||
mauve='rgb:cba6f7'
|
|
||||||
red='rgb:f38ba8'
|
|
||||||
maroon='rgb:eba0ac'
|
|
||||||
peach='rgb:fab387'
|
|
||||||
yellow='rgb:f9e2af'
|
|
||||||
green='rgb:a6e3a1'
|
|
||||||
teal='rgb:94e2d5'
|
|
||||||
sky='rgb:89dceb'
|
|
||||||
sapphire='rgb:74c7ec'
|
|
||||||
blue='rgb:89b4fa'
|
|
||||||
lavender='rgb:b4befe'
|
|
||||||
text='rgb:cdd6f4'
|
|
||||||
subtext1='rgb:bac2de'
|
|
||||||
subtext0='rgb:a6adc8'
|
|
||||||
overlay2='rgb:9399b2'
|
|
||||||
overlay1='rgb:7f849c'
|
|
||||||
overlay0='rgb:6c7086'
|
|
||||||
surface2='rgb:585b70'
|
|
||||||
surface1='rgb:45475a'
|
|
||||||
surface0='rgb:313244'
|
|
||||||
base='rgb:000000'
|
|
||||||
mantle='rgb:181825'
|
|
||||||
crust='rgb:11111b'
|
|
||||||
|
|
||||||
echo "
|
|
||||||
set-face global title ${text}+b
|
|
||||||
set-face global header ${subtext0}+b
|
|
||||||
set-face global bold ${maroon}+b
|
|
||||||
set-face global italic ${maroon}+i
|
|
||||||
set-face global mono ${green}
|
|
||||||
set-face global block ${sapphire}
|
|
||||||
set-face global link ${blue}
|
|
||||||
set-face global bullet ${peach}
|
|
||||||
set-face global list ${peach}
|
|
||||||
|
|
||||||
set-face global Default ${text},${base}
|
|
||||||
set-face global PrimarySelection ${text},${surface2}
|
|
||||||
set-face global SecondarySelection ${text},${surface2}
|
|
||||||
set-face global PrimaryCursor ${crust},${rosewater}
|
|
||||||
set-face global SecondaryCursor ${text},${overlay0}
|
|
||||||
set-face global PrimaryCursorEol ${surface2},${lavender}
|
|
||||||
set-face global SecondaryCursorEol ${surface2},${overlay1}
|
|
||||||
set-face global LineNumbers ${overlay1},${base}
|
|
||||||
set-face global LineNumbersWrapped ${base},${base}
|
|
||||||
set-face global LineNumberCursor ${lavender},${base}+b
|
|
||||||
set-face global MenuForeground ${text},${surface1}+b
|
|
||||||
set-face global MenuBackground ${text},${surface0}
|
|
||||||
set-face global MenuInfo ${crust},${teal}
|
|
||||||
set-face global Information ${crust},${teal}
|
|
||||||
set-face global Error ${crust},${red}
|
|
||||||
set-face global StatusLine ${text},${mantle}
|
|
||||||
set-face global StatusLineMode ${crust},${yellow}
|
|
||||||
set-face global StatusLineInfo ${crust},${teal}
|
|
||||||
set-face global StatusLineValue ${crust},${yellow}
|
|
||||||
set-face global StatusCursor ${crust},${rosewater}
|
|
||||||
set-face global Prompt ${teal},${base}+b
|
|
||||||
set-face global MatchingChar ${maroon},${base}
|
|
||||||
set-face global Whitespace ${overlay1},${base}+f
|
|
||||||
set-face global WrapMarker Whitespace
|
|
||||||
set-face global BufferPadding ${base},${base}
|
|
||||||
|
|
||||||
set-face global value ${peach}
|
|
||||||
set-face global type ${blue}
|
|
||||||
set-face global variable ${text}
|
|
||||||
set-face global module ${maroon}
|
|
||||||
set-face global function ${blue}
|
|
||||||
set-face global string ${green}
|
|
||||||
set-face global keyword ${mauve}
|
|
||||||
set-face global operator ${sky}
|
|
||||||
set-face global attribute ${green}
|
|
||||||
set-face global comment ${overlay0}
|
|
||||||
set-face global documentation comment
|
|
||||||
set-face global meta ${yellow}
|
|
||||||
set-face global builtin ${red}
|
|
||||||
"
|
|
||||||
}
|
|
||||||
@@ -1,210 +0,0 @@
|
|||||||
# Modus-Vivendi theme for Kakoune
|
|
||||||
|
|
||||||
# Color palette
|
|
||||||
# declare-option str black default
|
|
||||||
declare-option str bg_main 'default'
|
|
||||||
declare-option str bg_terminal_main 'rgb:000000'
|
|
||||||
declare-option str fg_main 'rgb:ffffff'
|
|
||||||
declare-option str bg_dim 'rgb:1e1e1e'
|
|
||||||
declare-option str fg_dim 'rgb:989898'
|
|
||||||
declare-option str bg_alt 'rgb:000000'
|
|
||||||
declare-option str fg_alt 'rgb:c6daff'
|
|
||||||
declare-option str bg_active 'rgb:535353'
|
|
||||||
declare-option str bg_inactive 'rgb:303030'
|
|
||||||
declare-option str red 'rgb:ff5f59'
|
|
||||||
declare-option str red_bright 'rgb:ff7f86'
|
|
||||||
declare-option str green 'rgb:44bc44'
|
|
||||||
declare-option str green_bright 'rgb:00c06f'
|
|
||||||
declare-option str yellow 'rgb:d0bc00'
|
|
||||||
declare-option str yellow_bright 'rgb:dfaf7a'
|
|
||||||
declare-option str blue 'rgb:2fafff'
|
|
||||||
declare-option str blue_bright 'rgb:00bcff'
|
|
||||||
declare-option str purple 'rgb:feacd0'
|
|
||||||
declare-option str purple_bright 'rgb:b6a0ff'
|
|
||||||
declare-option str bg_mode_line 'rgb:000000'
|
|
||||||
declare-option str fg_mode_line 'rgb:cdd6f4'
|
|
||||||
declare-option str cursor 'rgb:ffffff'
|
|
||||||
declare-option str bg_hl_line 'rgb:2f3849'
|
|
||||||
declare-option str fg_space 'rgb:646464'
|
|
||||||
declare-option str magenta_warmer 'rgb:f78fe7'
|
|
||||||
declare-option str blue_warmer 'rgb:79a8ff'
|
|
||||||
declare-option str cyan 'rgb:00d3d0'
|
|
||||||
declare-option str cyan_warmer 'rgb:4ae2f0'
|
|
||||||
declare-option str cyan_cooler 'rgb:6ae4b9'
|
|
||||||
declare-option str red_faint 'rgb:ff9580'
|
|
||||||
declare-option str green_faint 'rgb:88ca9f'
|
|
||||||
declare-option str yellow_faint 'rgb:d2b580'
|
|
||||||
declare-option str blue_faint 'rgb:82b0ec'
|
|
||||||
declare-option str magenta_faint 'rgb:caa6df'
|
|
||||||
declare-option str cyan_faint 'rgb:9ac8e0'
|
|
||||||
declare-option str fg_link 'rgb:79a8ff'
|
|
||||||
declare-option str fg_prose_code 'rgb:6ae4b9'
|
|
||||||
|
|
||||||
declare-option str psel 'rgb:5a5a5a'
|
|
||||||
declare-option str ssel 'rgb:2f3849'
|
|
||||||
|
|
||||||
# Reference
|
|
||||||
# https://github.com/mawww/kakoune/blob/master/colors/default.kak
|
|
||||||
# For code
|
|
||||||
set-face global value 'rgb:ffffff'
|
|
||||||
set-face global type 'rgb:6ae4b9'
|
|
||||||
set-face global variable 'rgb:00d3d0'
|
|
||||||
set-face global keyword 'rgb:b6a0ff'
|
|
||||||
set-face global module 'rgb:ffffff'
|
|
||||||
set-face global function 'rgb:feacd0'
|
|
||||||
set-face global string 'rgb:79a8ff'
|
|
||||||
set-face global builtin 'rgb:f78fe7'
|
|
||||||
set-face global constant 'rgb:00bcff'
|
|
||||||
set-face global comment 'rgb:989898'
|
|
||||||
set-face global meta 'rgb:ff7f86'
|
|
||||||
|
|
||||||
set-face global operator 'rgb:ffffff'
|
|
||||||
set-face global comma 'rgb:ffffff'
|
|
||||||
set-face global bracket 'rgb:2f7f9f'
|
|
||||||
|
|
||||||
# For markup
|
|
||||||
set-face global title "%opt{fg_main}+b"
|
|
||||||
set-face global header "%opt{fg_main}+b"
|
|
||||||
set-face global bold "%opt{fg_main}+b"
|
|
||||||
set-face global italic "%opt{fg_main}+i"
|
|
||||||
set-face global mono "%opt{fg_prose_code}"
|
|
||||||
set-face global block "%opt{fg_dim}"
|
|
||||||
set-face global link "%opt{fg_link}+u"
|
|
||||||
set-face global bullet "%opt{fg_dim}"
|
|
||||||
set-face global list "%opt{fg_main}"
|
|
||||||
|
|
||||||
# Builtin faces
|
|
||||||
#set-face global Default "%opt{fg_main},%opt{bg_main}"
|
|
||||||
set-face global Default "%opt{fg_main},default"
|
|
||||||
set-face global PrimarySelection "default,%opt{psel}"
|
|
||||||
set-face global SecondarySelection "default,%opt{ssel}"
|
|
||||||
set-face global PrimaryCursor "%opt{bg_terminal_main},%opt{cursor}"
|
|
||||||
set-face global SecondaryCursor "%opt{bg_terminal_main},%opt{fg_alt}"
|
|
||||||
set-face global PrimaryCursorEol "%opt{bg_terminal_main},%opt{red_bright}"
|
|
||||||
set-face global SecondaryCursorEol "%opt{bg_terminal_main},%opt{blue}"
|
|
||||||
set-face global LineNumbers "%opt{fg_dim},%opt{bg_main}"
|
|
||||||
set-face global LineNumberCursor "%opt{fg_alt},%opt{bg_main}+b"
|
|
||||||
set-face global LineNumbersWrapped "%opt{bg_dim},%opt{bg_main}+i"
|
|
||||||
set-face global MenuForeground "%opt{bg_terminal_main},%opt{fg_main}+b"
|
|
||||||
set-face global MenuBackground "%opt{fg_main},%opt{bg_alt}"
|
|
||||||
set-face global MenuInfo "%opt{fg_alt},%opt{bg_alt}"
|
|
||||||
set-face global Information "%opt{fg_mode_line},%opt{bg_mode_line}"
|
|
||||||
set-face global Error "%opt{red},%opt{bg_mode_line}"
|
|
||||||
set-face global StatusLine "%opt{fg_mode_line},%opt{bg_mode_line}"
|
|
||||||
set-face global StatusLineMode "%opt{fg_mode_line},%opt{bg_mode_line}"
|
|
||||||
set-face global StatusLineInfo "%opt{fg_mode_line},%opt{bg_mode_line}"
|
|
||||||
set-face global StatusLineValue "%opt{fg_mode_line},%opt{bg_mode_line}"
|
|
||||||
set-face global StatusCursor "%opt{fg_main},%opt{blue}"
|
|
||||||
set-face global Prompt "%opt{fg_mode_line},%opt{bg_mode_line}"
|
|
||||||
set-face global MatchingChar "%opt{blue},%opt{bg_main}"
|
|
||||||
set-face global Whitespace "%opt{fg_space},%opt{bg_main}+f"
|
|
||||||
set-face global WrapMarker Whitespace
|
|
||||||
set-face global BufferPadding "%opt{bg_terminal_main},%opt{bg_main}"
|
|
||||||
|
|
||||||
# For tree-sitter (kak-tree-sitter)
|
|
||||||
# -- Keywords --
|
|
||||||
set-face global ts_keyword "%opt{purple_bright}"
|
|
||||||
set-face global ts_keyword_conditional "%opt{purple_bright}+i"
|
|
||||||
set-face global ts_keyword_control_conditional "%opt{purple_bright}+i"
|
|
||||||
set-face global ts_keyword_control_import "%opt{purple_bright}+i"
|
|
||||||
set-face global ts_keyword_directive "%opt{red_bright}+i"
|
|
||||||
set-face global ts_keyword_storage "%opt{purple_bright}"
|
|
||||||
set-face global ts_keyword_storage_modifier "%opt{purple_bright}"
|
|
||||||
set-face global ts_keyword_storage_modifier_mut "%opt{purple_bright}"
|
|
||||||
set-face global ts_keyword_storage_modifier_ref "%opt{cyan_cooler}"
|
|
||||||
|
|
||||||
# -- Functions --
|
|
||||||
set-face global ts_function "%opt{purple}"
|
|
||||||
set-face global ts_function_builtin "%opt{magenta_warmer}+i"
|
|
||||||
set-face global ts_function_macro "%opt{red_bright}"
|
|
||||||
set-face global ts_function_method "%opt{purple}"
|
|
||||||
|
|
||||||
# -- Types --
|
|
||||||
set-face global ts_type "%opt{cyan_cooler}"
|
|
||||||
set-face global ts_type_builtin "%opt{cyan_cooler}"
|
|
||||||
set-face global ts_type_enum_variant "%opt{cyan_warmer}"
|
|
||||||
set-face global ts_type_parameter "%opt{cyan}+i"
|
|
||||||
set-face global ts_constructor "%opt{cyan_cooler}"
|
|
||||||
|
|
||||||
# -- Strings --
|
|
||||||
set-face global ts_string "%opt{blue_warmer}"
|
|
||||||
set-face global ts_string_regexp "%opt{green_bright}"
|
|
||||||
set-face global ts_string_escape "%opt{purple}"
|
|
||||||
set-face global ts_string_special "%opt{blue}"
|
|
||||||
set-face global ts_string_special_path "%opt{green_bright}"
|
|
||||||
set-face global ts_string_special_symbol "%opt{purple_bright}"
|
|
||||||
set-face global ts_string_symbol "%opt{red_bright}"
|
|
||||||
|
|
||||||
# -- Constants --
|
|
||||||
set-face global ts_constant "%opt{blue_bright}"
|
|
||||||
set-face global ts_constant_builtin "%opt{blue_bright}"
|
|
||||||
set-face global ts_constant_builtin_boolean "%opt{blue_bright}"
|
|
||||||
set-face global ts_constant_character "%opt{blue_bright}"
|
|
||||||
set-face global ts_constant_macro "%opt{red_bright}"
|
|
||||||
set-face global ts_constant_numeric "%opt{fg_main}"
|
|
||||||
|
|
||||||
# -- Variables --
|
|
||||||
set-face global ts_variable "%opt{cyan}"
|
|
||||||
set-face global ts_variable_builtin "%opt{purple_bright}"
|
|
||||||
set-face global ts_variable_other_member "%opt{cyan_warmer}"
|
|
||||||
set-face global ts_variable_parameter "%opt{cyan}+i"
|
|
||||||
|
|
||||||
# -- Comments & operators --
|
|
||||||
set-face global ts_comment "%opt{fg_dim}"
|
|
||||||
set-face global ts_comment_unused "%opt{fg_dim}+s"
|
|
||||||
set-face global ts_operator "%opt{fg_main}"
|
|
||||||
set-face global ts_punctuation "%opt{fg_main}"
|
|
||||||
set-face global ts_punctuation_special "%opt{purple_bright}"
|
|
||||||
|
|
||||||
# -- Properties, namespaces, labels --
|
|
||||||
set-face global ts_property "%opt{cyan}"
|
|
||||||
set-face global ts_namespace "%opt{cyan}+i"
|
|
||||||
set-face global ts_label "%opt{cyan}+i"
|
|
||||||
set-face global ts_attribute "%opt{red_bright}"
|
|
||||||
|
|
||||||
# -- Markup --
|
|
||||||
set-face global ts_markup_bold "%opt{fg_main}+b"
|
|
||||||
set-face global ts_markup_italic "%opt{fg_main}+i"
|
|
||||||
set-face global ts_markup_strikethrough "%opt{fg_dim}+s"
|
|
||||||
set-face global ts_markup_heading "%opt{fg_main}+b"
|
|
||||||
set-face global ts_markup_heading_1 "%opt{fg_main}+b"
|
|
||||||
set-face global ts_markup_heading_2 "%opt{yellow_faint}+b"
|
|
||||||
set-face global ts_markup_heading_3 "%opt{blue_faint}+b"
|
|
||||||
set-face global ts_markup_heading_4 "%opt{purple}+b"
|
|
||||||
set-face global ts_markup_heading_5 "%opt{green_faint}+b"
|
|
||||||
set-face global ts_markup_heading_6 "%opt{red_faint}+b"
|
|
||||||
set-face global ts_markup_heading_marker "%opt{fg_dim}"
|
|
||||||
set-face global ts_markup_list_checked "%opt{fg_dim}"
|
|
||||||
set-face global ts_markup_list_numbered "%opt{fg_dim}"
|
|
||||||
set-face global ts_markup_list_unchecked "%opt{fg_dim}"
|
|
||||||
set-face global ts_markup_list_unnumbered "%opt{fg_dim}"
|
|
||||||
set-face global ts_markup_link_label "%opt{fg_link}"
|
|
||||||
set-face global ts_markup_link_url "%opt{fg_alt}"
|
|
||||||
set-face global ts_markup_link_uri "%opt{fg_alt}"
|
|
||||||
set-face global ts_markup_link_text "%opt{fg_link}+u"
|
|
||||||
set-face global ts_markup_quote "%opt{fg_main}+i"
|
|
||||||
set-face global ts_markup_raw "%opt{fg_prose_code}"
|
|
||||||
|
|
||||||
# -- Diff --
|
|
||||||
set-face global ts_diff_plus "%opt{green}"
|
|
||||||
set-face global ts_diff_minus "%opt{red}"
|
|
||||||
set-face global ts_diff_delta "%opt{blue}"
|
|
||||||
set-face global ts_diff_delta_moved "%opt{purple_bright}"
|
|
||||||
|
|
||||||
# -- Diagnostics --
|
|
||||||
set-face global ts_error "%opt{red}+b"
|
|
||||||
set-face global ts_warning "%opt{yellow}+b"
|
|
||||||
set-face global ts_hint "%opt{blue}+b"
|
|
||||||
set-face global ts_info "%opt{green}+b"
|
|
||||||
|
|
||||||
# -- Others --
|
|
||||||
set-face global ts_embedded "%opt{purple_bright}"
|
|
||||||
set-face global ts_include "%opt{purple_bright}"
|
|
||||||
set-face global ts_load "%opt{purple_bright}"
|
|
||||||
set-face global ts_tag "%opt{purple_bright}"
|
|
||||||
set-face global ts_tag_error "%opt{red}"
|
|
||||||
set-face global ts_text "%opt{fg_main}"
|
|
||||||
set-face global ts_text_title "%opt{fg_main}+b"
|
|
||||||
set-face global ts_conceal "%opt{fg_dim}+i"
|
|
||||||
set-face global ts_special "%opt{blue}"
|
|
||||||
set-face global ts_spell "%opt{fg_main}"
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
# Requires kakpipe and unbuffer
|
|
||||||
|
|
||||||
declare-option -docstring "The last command ran in compilation-mode
|
|
||||||
"\
|
|
||||||
str compile_last_command ""
|
|
||||||
|
|
||||||
declare-option -docstring "How the compile buffer should be displayed
|
|
||||||
Options:
|
|
||||||
'default': Create a new buffer in the current kakoune window
|
|
||||||
'new': Create a new window via ':terminal'
|
|
||||||
'tmux_vertical': Create a tmux vertical split
|
|
||||||
'tmux_horizontal': Create a tmux horizontal split
|
|
||||||
'tmux_popup': Create a tmux popup window
|
|
||||||
"\
|
|
||||||
str compile_run_mode "default"
|
|
||||||
|
|
||||||
define-command -hidden -params 1.. compile-exec %{
|
|
||||||
evaluate-commands %sh{
|
|
||||||
case "$kak_opt_compile_run_mode" in
|
|
||||||
default)
|
|
||||||
exec kakpipe fifo -s "$kak_session" -- unbuffer "$@"
|
|
||||||
;;
|
|
||||||
new)
|
|
||||||
printf 'terminal kak -e "set-option global compile_run_mode default; compile %s"\n' "$*"
|
|
||||||
;;
|
|
||||||
tmux_vertical|tmux_horizontal|tmux_popup)
|
|
||||||
if [ -z "$kak_client_env_TMUX" ]; then
|
|
||||||
echo 'fail "tmux is not running"'
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
case "$kak_opt_compile_run_mode" in
|
|
||||||
tmux_vertical)
|
|
||||||
tmux_args="split-window -t '${kak_client_env_TMUX_PANE}' -v"
|
|
||||||
;;
|
|
||||||
tmux_horizontal)
|
|
||||||
tmux_args="split-window -t '${kak_client_env_TMUX_PANE}' -h"
|
|
||||||
;;
|
|
||||||
tmux_popup)
|
|
||||||
tmux_args="popup -E -t '${kak_client_env_TMUX_PANE}'"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
printf "nop %%sh{ tmux %s kak -e 'set-option global compile_run_mode default; compile %s' }\n" "$tmux_args" "$*"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
define-command -docstring "Compile: run a command in a fifo buffer" compile -params 1.. %{
|
|
||||||
set-option global compile_last_command "%arg{@}"
|
|
||||||
compile-exec %arg{@}
|
|
||||||
}
|
|
||||||
|
|
||||||
define-command -docstring "Recompile: re-run the last compile command" recompile %{
|
|
||||||
evaluate-commands %sh{
|
|
||||||
if [ -z "$kak_opt_compile_last_command" ]; then
|
|
||||||
echo 'fail "No previous compile command"'
|
|
||||||
else
|
|
||||||
echo "compile-exec $kak_opt_compile_last_command"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Requires kakpipe and unbuffer
|
|
||||||
|
|
||||||
declare-option str compile_last_command ""
|
|
||||||
|
|
||||||
define-command -docstring "Compile: run a command in a fifo buffer" compile -params 1.. %{
|
|
||||||
set-option global compile_last_command "%arg{@}"
|
|
||||||
evaluate-commands %sh{ exec kakpipe fifo -s $kak_session -- unbuffer "$@" }
|
|
||||||
}
|
|
||||||
|
|
||||||
define-command -docstring "Recompile: re-run the last compile command" recompile %{
|
|
||||||
evaluate-commands %sh{
|
|
||||||
if [ -z "$kak_opt_compile_last_command" ]; then
|
|
||||||
echo 'fail "No previous compile command"'
|
|
||||||
else
|
|
||||||
exec kakpipe fifo -s $kak_session -- unbuffer $kak_opt_compile_last_command
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,357 +0,0 @@
|
|||||||
# Venomade's kakrc
|
|
||||||
|
|
||||||
|
|
||||||
# ------
|
|
||||||
# SOURCE
|
|
||||||
# ------
|
|
||||||
|
|
||||||
# Use Colemak keybinds
|
|
||||||
source ~/.config/kak/colemak.kak
|
|
||||||
source ~/.config/kak/compilation-mode.kak
|
|
||||||
|
|
||||||
|
|
||||||
# -------
|
|
||||||
# OPTIONS
|
|
||||||
# -------
|
|
||||||
|
|
||||||
# Set tab width
|
|
||||||
set-option global tabstop 2
|
|
||||||
set-option global indentwidth 2
|
|
||||||
|
|
||||||
# Display line numbers
|
|
||||||
add-highlighter global/ number-lines -hlcursor
|
|
||||||
|
|
||||||
# Softwrap long lines
|
|
||||||
add-highlighter global/ wrap -word -indent
|
|
||||||
|
|
||||||
# Set the colorscheme
|
|
||||||
colorscheme 'modus-vivendi'
|
|
||||||
|
|
||||||
# Move the modeline to the top of the screen
|
|
||||||
set-option global ui_options terminal_status_on_top=yes
|
|
||||||
|
|
||||||
# Don't show changelog at startup
|
|
||||||
set-option global startup_info_version 10000000000000
|
|
||||||
|
|
||||||
# Add scroll margin
|
|
||||||
set-option global scrolloff 5,5
|
|
||||||
|
|
||||||
# Use ripgrep instead of grep
|
|
||||||
set-option global grepcmd 'rg -HUn --no-heading --sort path --vimgrep'
|
|
||||||
|
|
||||||
# Remove trailing whitespace on save
|
|
||||||
hook -group auto-trim-whitespace global BufWritePre .* %{ try %{ execute-keys -draft \%s\h+$<ret>d } }
|
|
||||||
|
|
||||||
# Disable Clippy
|
|
||||||
set-option -add global ui_options terminal_assistant=none
|
|
||||||
|
|
||||||
# Disable word completion
|
|
||||||
set-option global completers filename
|
|
||||||
|
|
||||||
# --------
|
|
||||||
# KEYBINDS
|
|
||||||
# --------
|
|
||||||
|
|
||||||
# Buffer Keybinds
|
|
||||||
declare-user-mode buffer-mode
|
|
||||||
map global user b ':enter-user-mode buffer-mode<ret>' -docstring 'buffer...'
|
|
||||||
map global buffer-mode d ':delete-buffer<ret>' -docstring 'delete buffer'
|
|
||||||
map global buffer-mode k ':delete-buffer!<ret>' -docstring 'kill buffer'
|
|
||||||
map global buffer-mode n ':buffer-next<ret>' -docstring 'next buffer'
|
|
||||||
map global buffer-mode p ':buffer-previous<ret>' -docstring 'previous buffer'
|
|
||||||
|
|
||||||
# map global buffer-mode b '<esc>:prompt -buffer-completion buffer: %{ buffer %val{text} }<ret>' -docstring 'switch buffer'
|
|
||||||
|
|
||||||
# Comment line
|
|
||||||
map global normal "#" ":comment-line<ret>"
|
|
||||||
|
|
||||||
# File Keybinds
|
|
||||||
declare-user-mode file-mode
|
|
||||||
map global user f ':enter-user-mode file-mode<ret>' -docstring 'file...'
|
|
||||||
# map global file-mode f '<esc>:prompt -shell-script-candidates %{ fd --type f } file: %{ edit %val{text} }<ret>' -docstring "find file"
|
|
||||||
map global file-mode c ':e ~/.config/kak/kakrc<ret>' -docstring 'open config'
|
|
||||||
map global file-mode t ':e ~/Documents/Notes/TODO.md<ret>' -docstring 'open todo'
|
|
||||||
|
|
||||||
# Search case-insensitive by default
|
|
||||||
map global normal "/" "/(?Si)"
|
|
||||||
map global normal "?" "?(?Si)"
|
|
||||||
map global normal "<a-/>" "<a-/>(?Si)"
|
|
||||||
map global normal "<a-?>" "<a-?>(?Si)"
|
|
||||||
|
|
||||||
# Select inner line
|
|
||||||
map global normal X x_
|
|
||||||
|
|
||||||
# Use tab for autocomplete
|
|
||||||
# hook global InsertCompletionShow .* %{
|
|
||||||
# try %{
|
|
||||||
# execute-keys -draft 'h<a-K>\h<ret>'
|
|
||||||
# map window insert <tab> <c-n>
|
|
||||||
# map window insert <s-tab> <c-p>
|
|
||||||
# hook -once -always window InsertCompletionHide .* %{
|
|
||||||
# unmap window insert <tab> <c-n>
|
|
||||||
# unmap window insert <s-tab> <c-p>
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
|
|
||||||
# Tab jumps to next snippet placeholder by default in insert mode
|
|
||||||
map global insert <tab> '<esc>: lsp-snippets-select-next-placeholders<ret>i'
|
|
||||||
map global insert <s-tab> '<esc>: lsp-snippets-select-next-placeholders<ret>i' # optional reverse
|
|
||||||
|
|
||||||
# When completion menu shows, remap tab to cycle completions — but only if not in a snippet
|
|
||||||
hook global InsertCompletionShow .* %{
|
|
||||||
try %{
|
|
||||||
execute-keys -draft 'h<a-K>\h<ret>'
|
|
||||||
try %{
|
|
||||||
eval %sh{ [ -n "${kak_opt_lsp_snippets_placeholder_groups}" ] && echo "fail" }
|
|
||||||
map window insert <tab> <c-n>
|
|
||||||
map window insert <s-tab> <c-p>
|
|
||||||
hook -once -always window InsertCompletionHide .* %{
|
|
||||||
unmap window insert <tab> <c-n>
|
|
||||||
unmap window insert <s-tab> <c-p>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Map tab and shift-tab to indent and dedent in normal mode
|
|
||||||
map global normal <tab> '>'
|
|
||||||
map global normal <s-tab> '<'
|
|
||||||
|
|
||||||
# Terminal related bindings
|
|
||||||
declare-user-mode terminal-mode
|
|
||||||
map global user t ':enter-user-mode terminal-mode<ret>' -docstring 'terminal...'
|
|
||||||
map global terminal-mode t ':terminal zsh<ret>' -docstring 'open terminal'
|
|
||||||
map global terminal-mode s ':tmux-repl-horizontal <ret>' -docstring 'open terminal split (H)'
|
|
||||||
map global terminal-mode v ':tmux-repl-vertical<ret>' -docstring 'open terminal split (V)'
|
|
||||||
|
|
||||||
define-command smart-gh \
|
|
||||||
-docstring "Smart goto line start." \
|
|
||||||
%{
|
|
||||||
set-register c %val{cursor_column}
|
|
||||||
|
|
||||||
execute-keys gi
|
|
||||||
|
|
||||||
evaluate-commands %sh{
|
|
||||||
orig_col="${kak_reg_c}"
|
|
||||||
indent_col="${kak_cursor_column}"
|
|
||||||
|
|
||||||
if [ "${orig_col}" -le "${indent_col}" ]; then
|
|
||||||
echo "execute-keys gh"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
map global goto h <esc>:smart-gh<ret> -docstring 'line begin (smart)'
|
|
||||||
|
|
||||||
# Window Management
|
|
||||||
declare-user-mode window-mode
|
|
||||||
map global user w ':enter-user-mode window-mode<ret>' -docstring 'window...'
|
|
||||||
map global window-mode s ':tmux-terminal-horizontal kak -c %val{session}<ret>' -docstring 'open window split (H)'
|
|
||||||
map global window-mode v ':tmux-terminal-vertical kak -c %val{session}<ret>' -docstring 'open window split (V)'
|
|
||||||
|
|
||||||
|
|
||||||
# -------
|
|
||||||
# PLUGINS
|
|
||||||
# -------
|
|
||||||
|
|
||||||
# Nanoline is a cleaner alternative to the default modeline
|
|
||||||
set-option global nanoline_rw_face_dark rgb:11111b,rgb:b4befe
|
|
||||||
nanoline dark
|
|
||||||
nanoline-format
|
|
||||||
|
|
||||||
# Use auto-pairs
|
|
||||||
enable-auto-pairs
|
|
||||||
|
|
||||||
# Enable Copy-Paste with kakboard
|
|
||||||
hook global WinCreate .* %{ kakboard-enable }
|
|
||||||
|
|
||||||
# Load LSP
|
|
||||||
eval %sh{kak-lsp}
|
|
||||||
|
|
||||||
set-option global modelinefmt "%opt{lsp_modeline} %opt{modelinefmt}"
|
|
||||||
|
|
||||||
map global user l ':enter-user-mode lsp<ret>' -docstring 'lsp...'
|
|
||||||
|
|
||||||
map global goto d <esc>:lsp-definition<ret> -docstring 'LSP definition'
|
|
||||||
map global goto r <esc>:lsp-references<ret> -docstring 'LSP references'
|
|
||||||
map global goto y <esc>:lsp-type-definition<ret> -docstring 'LSP type definition'
|
|
||||||
|
|
||||||
map global insert <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder'
|
|
||||||
|
|
||||||
map global object a '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
|
||||||
map global object <a-a> '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
|
||||||
map global object f '<a-semicolon>lsp-object Function Method<ret>' -docstring 'LSP function or method'
|
|
||||||
map global object t '<a-semicolon>lsp-object Class Interface Module Namespace Struct<ret>' -docstring 'LSP class or module'
|
|
||||||
map global object d '<a-semicolon>lsp-diagnostic-object error warning<ret>' -docstring 'LSP errors and warnings'
|
|
||||||
map global object D '<a-semicolon>lsp-diagnostic-object error<ret>' -docstring 'LSP errors'
|
|
||||||
|
|
||||||
hook global WinSetOption lsp_code_action_indicator=.* %{
|
|
||||||
set-option window lsp_code_action_indicator "[A]"
|
|
||||||
}
|
|
||||||
|
|
||||||
hook global WinSetOption lsp_progress_indicator=.* %{
|
|
||||||
set-option window lsp_progress_indicator "[P]"
|
|
||||||
}
|
|
||||||
|
|
||||||
hook global GlobalSetOption lsp_modeline_message_requests=.* %{
|
|
||||||
evaluate-commands %sh{
|
|
||||||
if [ -n "$kak_hook_param_capture_0" ]; then
|
|
||||||
echo "set-option global lsp_modeline_message_requests '[M]'"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Save with formatting with :W
|
|
||||||
define-command W %{
|
|
||||||
lsp-formatting-sync
|
|
||||||
w
|
|
||||||
}
|
|
||||||
|
|
||||||
set-face global InlayDiagnosticHint 'rgb:444444'
|
|
||||||
|
|
||||||
# FZF
|
|
||||||
|
|
||||||
require-module fzf
|
|
||||||
set-option global fzf_tmux_popup true
|
|
||||||
set-option global fzf_tmux_popup_width '80%'
|
|
||||||
set-option global fzf_default_opts '--color=base16'
|
|
||||||
set-option global fzf_highlight_command 'bat'
|
|
||||||
require-module fzf-file
|
|
||||||
set-option global fzf_file_command 'fd'
|
|
||||||
require-module fzf-grep
|
|
||||||
set-option global fzf_grep_command 'rg'
|
|
||||||
|
|
||||||
map global file-mode f ':require-module fzf-file; fzf-file<ret>' -docstring 'find file'
|
|
||||||
map global file-mode p ':require-module fzf-file; fzf-file buffile-dir<ret>' -docstring 'find file at path'
|
|
||||||
map global file-mode g ':require-module fzf-grep; fzf-grep<ret>' -docstring 'grep files'
|
|
||||||
map global file-mode d ':require-module fzf-cd; fzf-cd<ret>' -docstring 'change directory'
|
|
||||||
map global file-mode / ':require-module fzf-search; fzf-buffer-search<ret>' -docstring 'search current file'
|
|
||||||
|
|
||||||
map global buffer-mode b ':require-module fzf-buffer; fzf-buffer<ret>' -docstring 'switch buffer'
|
|
||||||
|
|
||||||
# map global user F ':fzf-mode<ret>' -docstring 'fzf...'
|
|
||||||
|
|
||||||
# Harpoon
|
|
||||||
harpoon-add-bindings
|
|
||||||
|
|
||||||
# Kakpipe
|
|
||||||
require-module kakpipe
|
|
||||||
|
|
||||||
set-option global compile_run_mode 'tmux_horizontal'
|
|
||||||
|
|
||||||
declare-user-mode compile-mode
|
|
||||||
map global user c ':enter-user-mode compile-mode<ret>' -docstring 'compile...'
|
|
||||||
map global compile-mode c '<esc>:prompt -shell-completion "compile: " %{ evaluate-commands %sh{ echo "compile $kak_text" } }<ret>' -docstring 'compile'
|
|
||||||
map global compile-mode r ':recompile<ret>' -docstring 'recompile'
|
|
||||||
|
|
||||||
# Kakoune Focus
|
|
||||||
declare-user-mode selection-mode
|
|
||||||
map global user s ':enter-user-mode selection-mode<ret>' -docstring 'selection...'
|
|
||||||
map global selection-mode f ':focus-toggle<ret>' -docstring "toggle selections focus"
|
|
||||||
|
|
||||||
define-command focus-live-enable %{
|
|
||||||
focus-selections
|
|
||||||
hook -group focus window NormalIdle .* %{ focus-extend }
|
|
||||||
}
|
|
||||||
define-command focus-live-disable %{
|
|
||||||
remove-hooks window focus
|
|
||||||
focus-clear
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# ---------
|
|
||||||
# FILETYPES
|
|
||||||
# ---------
|
|
||||||
|
|
||||||
# Lua
|
|
||||||
hook global BufSetOption filetype=lua %{
|
|
||||||
set-option buffer lsp_servers %exp{
|
|
||||||
# Minimal setup for luals (Lua doesn't really work with LSP, I've tried)
|
|
||||||
[luals]
|
|
||||||
filetypes = ["lua"]
|
|
||||||
root_globs = [".git/", ".luarc.json", ".luarc.jsonc", ".editorconfig", ".kakrc"]
|
|
||||||
command = "lua-language-server"
|
|
||||||
|
|
||||||
[luals.settings.Lua]
|
|
||||||
codeLens.enable = false
|
|
||||||
completion.autoRequire = false # afaik not supported by kakoune
|
|
||||||
completion.enable = true
|
|
||||||
completion.callSnippet = "Replace"
|
|
||||||
completion.showWord = "Disable"
|
|
||||||
completion.postfix = "@"
|
|
||||||
diagnostics.enable = true
|
|
||||||
diagnostics.disable = [
|
|
||||||
"lowercase-global",
|
|
||||||
"spell-check",
|
|
||||||
]
|
|
||||||
format.enable = true
|
|
||||||
hint.enable = true
|
|
||||||
hint.paramName = "Disable"
|
|
||||||
hint.paramType = false
|
|
||||||
hover.enable = true
|
|
||||||
runtime.path = [
|
|
||||||
"?.lua",
|
|
||||||
"?/init.lua",
|
|
||||||
]
|
|
||||||
runtime.version = "Lua 5.4"
|
|
||||||
semantic.enable = false
|
|
||||||
|
|
||||||
[luals.settings.Lua.diagnostics.severity]
|
|
||||||
undefined-field = "Warning"
|
|
||||||
undefined-global = "Warning"
|
|
||||||
|
|
||||||
# [emmylua_ls]
|
|
||||||
# filetypes = ["lua"]
|
|
||||||
# root_globs = [".git/", ".luarc.json", ".editorconfig", ".kakrc", ".emmyrc.json"]
|
|
||||||
# command = "emmylua_ls"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
hook global WinSetOption filetype=lua %{
|
|
||||||
add-highlighter window/emmylua_direct regex "---\s*(@(?:alias|as|class|enum|generic|return|type|overload))\s+([^\n]*)" 1:attribute 2:type
|
|
||||||
add-highlighter window/emmylua_labeled regex "---\s*(@(?:alias|cast|field|param))\s+([a-zA-Z0-9_\?]*) ([^\n]*)" 1:attribute 2:variable 3:type
|
|
||||||
add-highlighter window/emmylua_enum_variant regex '---\s*\|\s*("[^\n]*")' 1:string
|
|
||||||
}
|
|
||||||
|
|
||||||
# Markdown
|
|
||||||
hook global BufSetOption filetype=markdown %{
|
|
||||||
set-option buffer lsp_servers %exp{
|
|
||||||
[zk_lsp]
|
|
||||||
filetypes = ["markdown"]
|
|
||||||
root_globs = [".git/", ".zk/", ".kakrc"]
|
|
||||||
command = "zk"
|
|
||||||
args = ["lsp"]
|
|
||||||
[harper]
|
|
||||||
filetypes = ["markdown"]
|
|
||||||
root_globs = [".git/", ".zk/", ".kakrc"]
|
|
||||||
command = "harper-ls"
|
|
||||||
args = ["--stdio"]
|
|
||||||
settings_section = "_"
|
|
||||||
[harper.settings._.harper-ls]
|
|
||||||
#isolateEnglish = true # Currently very buggy
|
|
||||||
dialect = "British"
|
|
||||||
[harper.settings._.harper-ls.markdown]
|
|
||||||
IgnoreLinkTitle = true }
|
|
||||||
}
|
|
||||||
|
|
||||||
# ----
|
|
||||||
# MISC
|
|
||||||
# ----
|
|
||||||
|
|
||||||
# TODO: Fix this TODO Highlighter
|
|
||||||
hook -group todohighlight global BufCreate .* %{
|
|
||||||
add-highlighter buffer/todo-highlight regex "%opt{comment_line}[ \t]*\b(TODO|FIXME|HACK)\b" 1:default+bu@comment
|
|
||||||
}
|
|
||||||
|
|
||||||
# Enable LSP (Must come just before settings, after everything else lsp)
|
|
||||||
lsp-enable
|
|
||||||
|
|
||||||
lsp-diagnostic-lines-disable global
|
|
||||||
lsp-inlay-diagnostics-enable global
|
|
||||||
# lsp-inlay-code-lenses-enable global
|
|
||||||
lsp-inlay-hints-enable global
|
|
||||||
set-option global lsp_hover_anchor true
|
|
||||||
# lsp-auto-hover-enable
|
|
||||||
lsp-auto-signature-help-enable
|
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
# ~~~~~~~
|
||||||
|
# COLEMAK
|
||||||
|
# ~~~~~~~
|
||||||
|
|
||||||
map global normal n j
|
map global normal n j
|
||||||
map global normal <a-n> <a-j>
|
map global normal <a-n> <a-j>
|
||||||
map global normal <a-N> <a-J>
|
map global normal <a-N> <a-J>
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
c = config.colorScheme.palette;
|
||||||
|
rgb = hex: "rgb:${lib.toLower hex}";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
xdg.configFile."kak/colors/nix-colorscheme.kak".text = ''
|
||||||
|
declare-option str bg_main '${rgb c.base00}'
|
||||||
|
declare-option str fg_main '${rgb c.base05}'
|
||||||
|
declare-option str bg_dim '${rgb c.base01}'
|
||||||
|
declare-option str fg_dim '${rgb c.base03}'
|
||||||
|
declare-option str bg_alt '${rgb c.base02}'
|
||||||
|
declare-option str fg_alt '${rgb c.base04}'
|
||||||
|
declare-option str bg_active '${rgb c.base02}'
|
||||||
|
declare-option str bg_inactive '${rgb c.base01}'
|
||||||
|
declare-option str red '${rgb c.base08}'
|
||||||
|
declare-option str red_bright '${rgb c.base08}'
|
||||||
|
declare-option str green '${rgb c.base0B}'
|
||||||
|
declare-option str green_bright '${rgb c.base0B}'
|
||||||
|
declare-option str yellow '${rgb c.base0A}'
|
||||||
|
declare-option str yellow_bright '${rgb c.base0A}'
|
||||||
|
declare-option str blue '${rgb c.base0D}'
|
||||||
|
declare-option str blue_bright '${rgb c.base0D}'
|
||||||
|
declare-option str purple '${rgb c.base0E}'
|
||||||
|
declare-option str purple_bright '${rgb c.base0E}'
|
||||||
|
declare-option str bg_mode_line '${rgb c.base07}'
|
||||||
|
declare-option str fg_mode_line '${rgb c.base06}'
|
||||||
|
declare-option str cursor '${rgb c.base0B}'
|
||||||
|
declare-option str bg_hl_line '${rgb c.base01}'
|
||||||
|
declare-option str fg_space '${rgb c.base03}'
|
||||||
|
declare-option str psel '${rgb c.base02}'
|
||||||
|
declare-option str ssel '${rgb c.base01}'
|
||||||
|
|
||||||
|
# For code
|
||||||
|
set-face global value '${rgb c.base05}'
|
||||||
|
set-face global type '${rgb c.base0D}'
|
||||||
|
set-face global variable '${rgb c.base0C}'
|
||||||
|
set-face global keyword '${rgb c.base0B}'
|
||||||
|
set-face global module '${rgb c.base05}'
|
||||||
|
set-face global function '${rgb c.base0A}'
|
||||||
|
set-face global string '${rgb c.base08}'
|
||||||
|
set-face global builtin '${rgb c.base0B}'
|
||||||
|
set-face global constant '${rgb c.base0B}'
|
||||||
|
set-face global comment '${rgb c.base0F}'
|
||||||
|
set-face global meta '${rgb c.base08}'
|
||||||
|
set-face global operator '${rgb c.base05}'
|
||||||
|
set-face global comma '${rgb c.base05}'
|
||||||
|
set-face global bracket '${rgb c.base0C}'
|
||||||
|
|
||||||
|
# For markup
|
||||||
|
set-face global title "%opt{purple}"
|
||||||
|
set-face global header "%opt{yellow_bright}"
|
||||||
|
set-face global bold "%opt{purple}"
|
||||||
|
set-face global italic "%opt{purple_bright}"
|
||||||
|
set-face global mono "%opt{green}"
|
||||||
|
set-face global block "%opt{blue_bright}"
|
||||||
|
set-face global link "%opt{green}"
|
||||||
|
set-face global bullet "%opt{green}"
|
||||||
|
set-face global list "%opt{fg_main}"
|
||||||
|
|
||||||
|
# Builtin faces
|
||||||
|
set-face global Default "%opt{fg_main},%opt{bg_main}"
|
||||||
|
set-face global PrimarySelection "default,%opt{psel}"
|
||||||
|
set-face global SecondarySelection "default,%opt{ssel}"
|
||||||
|
set-face global PrimaryCursor "%opt{bg_main},%opt{cursor}"
|
||||||
|
set-face global SecondaryCursor "%opt{bg_main},%opt{fg_alt}"
|
||||||
|
set-face global PrimaryCursorEol "%opt{bg_main},%opt{red_bright}"
|
||||||
|
set-face global SecondaryCursorEol "%opt{bg_main},%opt{blue}"
|
||||||
|
set-face global LineNumbers "%opt{fg_dim},%opt{bg_main}"
|
||||||
|
set-face global LineNumberCursor "%opt{fg_alt},%opt{bg_main}+b"
|
||||||
|
set-face global LineNumbersWrapped "%opt{bg_dim},%opt{bg_main}+i"
|
||||||
|
set-face global MenuForeground "%opt{bg_main},%opt{fg_main}+b"
|
||||||
|
set-face global MenuBackground "%opt{fg_main},%opt{bg_alt}"
|
||||||
|
set-face global MenuInfo "%opt{fg_alt},%opt{bg_alt}"
|
||||||
|
set-face global Information "%opt{fg_mode_line},%opt{bg_mode_line}"
|
||||||
|
set-face global Error "%opt{red},%opt{bg_mode_line}"
|
||||||
|
set-face global StatusLine "%opt{fg_mode_line},%opt{bg_mode_line}"
|
||||||
|
set-face global StatusLineMode "%opt{fg_mode_line},%opt{bg_mode_line}"
|
||||||
|
set-face global StatusLineInfo "%opt{fg_mode_line},%opt{bg_mode_line}"
|
||||||
|
set-face global StatusLineValue "%opt{fg_mode_line},%opt{bg_mode_line}"
|
||||||
|
set-face global StatusCursor "%opt{fg_main},%opt{blue}"
|
||||||
|
set-face global Prompt "%opt{fg_mode_line},%opt{bg_mode_line}"
|
||||||
|
set-face global MatchingChar "%opt{blue},%opt{bg_main}"
|
||||||
|
set-face global Whitespace "%opt{fg_space},%opt{bg_main}+f"
|
||||||
|
set-face global WrapMarker Whitespace
|
||||||
|
set-face global BufferPadding "%opt{bg_main},%opt{bg_main}"
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,235 @@
|
|||||||
|
|
||||||
|
# ~~~~~~~
|
||||||
|
# OPTIONS
|
||||||
|
# ~~~~~~~
|
||||||
|
|
||||||
|
# Set Colorscheme to nix
|
||||||
|
colorscheme nix-colorscheme
|
||||||
|
|
||||||
|
# Set tab width
|
||||||
|
set-option global tabstop 2
|
||||||
|
set-option global indentwidth 2
|
||||||
|
|
||||||
|
# Display line numbers
|
||||||
|
add-highlighter global/ number-lines -hlcursor
|
||||||
|
|
||||||
|
# Softwrap long lines
|
||||||
|
add-highlighter global/ wrap -word -indent
|
||||||
|
|
||||||
|
# Don't show changelog at startup
|
||||||
|
set-option global startup_info_version 9999
|
||||||
|
|
||||||
|
# Add scroll margin
|
||||||
|
set-option global scrolloff 5,5
|
||||||
|
|
||||||
|
# Use ripgrep instead of grep
|
||||||
|
require-module grep
|
||||||
|
set-option global grepcmd 'rg -HUn --no-heading --sort path --vimgrep'
|
||||||
|
|
||||||
|
# Remove trailing whitespace on save
|
||||||
|
hook -group auto-trim-whitespace global BufWritePre .* %{ try %{ execute-keys -draft \%s\h+$<ret>d } }
|
||||||
|
|
||||||
|
# Disable Clippy
|
||||||
|
set-option -add global ui_options terminal_assistant=none
|
||||||
|
|
||||||
|
# Disable word completions (reduce completer functions to just filenames)
|
||||||
|
set-option global completers filename
|
||||||
|
|
||||||
|
# ~~~~~~~
|
||||||
|
# KEYBIND
|
||||||
|
# ~~~~~~~
|
||||||
|
|
||||||
|
# Buffer Keybinds
|
||||||
|
declare-user-mode buffer-mode
|
||||||
|
map global user b ':enter-user-mode buffer-mode<ret>' -docstring 'buffer...'
|
||||||
|
map global buffer-mode d ':delete-buffer<ret>' -docstring 'delete buffer'
|
||||||
|
map global buffer-mode k ':delete-buffer!<ret>' -docstring 'kill buffer'
|
||||||
|
map global buffer-mode n ':buffer-next<ret>' -docstring 'next buffer'
|
||||||
|
map global buffer-mode p ':buffer-previous<ret>' -docstring 'previous buffer'
|
||||||
|
|
||||||
|
# Comment Line
|
||||||
|
map global normal '#' ':comment-line<ret>'
|
||||||
|
|
||||||
|
# File Keybinds
|
||||||
|
declare-user-mode file-mode
|
||||||
|
map global user f ':enter-user-mode file-mode<ret>' -docstring 'file...'
|
||||||
|
map global file-mode f '<esc>:prompt -shell-script-candidates %{ fd --type f } file: %{ edit %val{text} }<ret>' -docstring 'find file'
|
||||||
|
map global file-mode c ':e ~/.config/kak/kakrc<ret>' -docstring 'open config'
|
||||||
|
map global file-mode t ':e ~/Documents/Notes/TODO.md<ret>' -docstring 'open todo'
|
||||||
|
map global file-mode a ':e ~/.config/almoxarife.yaml' -docstring 'open alconf'
|
||||||
|
|
||||||
|
# Search case-insensitive by default
|
||||||
|
map global normal '/' '/(?Si)'
|
||||||
|
map global normal '?' '?(?Si)'
|
||||||
|
map global normal '<a-/>' '<a-/>(?Si)'
|
||||||
|
map global normal '<a-?>' '<a-?>(?Si)'
|
||||||
|
|
||||||
|
# Select inner line
|
||||||
|
map global normal X x_
|
||||||
|
|
||||||
|
# Tab jumps to next snippet entry by default in insert mode
|
||||||
|
map global insert <tab> '<esc>:lsp-snippets-select-next-placeholders<ret>i'
|
||||||
|
map global insert <s-tab> '<esc>:lsp-snippets-select-next-placeholders<ret>i'
|
||||||
|
|
||||||
|
# When completion menu shows, remap tab to cycle completions — but only if not in a snippet
|
||||||
|
hook global InsertCompletionShow .* %{
|
||||||
|
try %{
|
||||||
|
execute-keys -draft 'h<a-K>\h<ret>'
|
||||||
|
try %{
|
||||||
|
eval %sh{ [ -n '${kak_opt_lsp_snippets_placeholder_groups}' ] && echo 'fail' }
|
||||||
|
map window insert <tab> <c-n>
|
||||||
|
map window insert <s-tab> <c-p>
|
||||||
|
hook -once -always window InsertCompletionHide .* %{
|
||||||
|
unmap window insert <tab> <c-n>
|
||||||
|
unmap window insert <s-tab> <c-p>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Map tab and shift-tab to indent and dedent in normal mode
|
||||||
|
map global normal <tab> '>'
|
||||||
|
map global normal <s-tab> '<'
|
||||||
|
|
||||||
|
define-command smart-gh -docstring 'smart goto line start' \
|
||||||
|
%{
|
||||||
|
set-register c %val{cursor_column}
|
||||||
|
execute-keys gi
|
||||||
|
evaluate-commands %sh{
|
||||||
|
origin='${kak_reg_c}'
|
||||||
|
indent='${kak_cursor_column}'
|
||||||
|
if [ '${origin}' -le '${indent}' ]; then
|
||||||
|
echo 'execute-keys gh'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
map global goto h '<esc>:smart-gh<ret>' -docstring 'line begin (smart)'
|
||||||
|
|
||||||
|
# Window Management
|
||||||
|
declare-user-mode window-mode
|
||||||
|
map global user w ':enter-user-mode window-mode<ret>' -docstring 'window...'
|
||||||
|
map global window-mode c ':kitty-terminal-window kak -c %val{session}<ret>' -docstring 'create new window'
|
||||||
|
|
||||||
|
# ~~~
|
||||||
|
# LSP
|
||||||
|
# ~~~
|
||||||
|
|
||||||
|
eval %sh{kak-lsp}
|
||||||
|
|
||||||
|
set-option global modelinefmt "%opt{lsp_modeline} %opt{modelinefmt}"
|
||||||
|
|
||||||
|
map global user l ':enter-user-mode lsp<ret>' -docstring 'lsp...'
|
||||||
|
|
||||||
|
map global goto d <esc>:lsp-definition<ret> -docstring 'LSP definition'
|
||||||
|
map global goto r <esc>:lsp-references<ret> -docstring 'LSP references'
|
||||||
|
map global goto y <esc>:lsp-type-definition<ret> -docstring 'LSP type definition'
|
||||||
|
|
||||||
|
map global insert <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder'
|
||||||
|
|
||||||
|
map global object a '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
||||||
|
map global object <a-a> '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
|
||||||
|
map global object f '<a-semicolon>lsp-object Function Method<ret>' -docstring 'LSP function or method'
|
||||||
|
map global object t '<a-semicolon>lsp-object Class Interface Module Namespace Struct<ret>' -docstring 'LSP class or module'
|
||||||
|
map global object d '<a-semicolon>lsp-diagnostic-object error warning<ret>' -docstring 'LSP errors and warnings'
|
||||||
|
map global object D '<a-semicolon>lsp-diagnostic-object error<ret>' -docstring 'LSP errors'
|
||||||
|
|
||||||
|
hook global WinSetOption lsp_code_action_indicator=.* %{
|
||||||
|
set-option window lsp_code_action_indicator "[A]"
|
||||||
|
}
|
||||||
|
|
||||||
|
hook global WinSetOption lsp_progress_indicator=.* %{
|
||||||
|
set-option window lsp_progress_indicator "[P]"
|
||||||
|
}
|
||||||
|
|
||||||
|
hook global GlobalSetOption lsp_modeline_message_requests=.* %{
|
||||||
|
evaluate-commands %sh{
|
||||||
|
if [ -n "$kak_hook_param_capture_0" ]; then
|
||||||
|
echo "set-option global lsp_modeline_message_requests '[M]'"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Save with formatting with :W
|
||||||
|
define-command W %{
|
||||||
|
lsp-formatting-sync
|
||||||
|
w
|
||||||
|
}
|
||||||
|
|
||||||
|
# LSP language configs
|
||||||
|
# Lua
|
||||||
|
#
|
||||||
|
#
|
||||||
|
hook global BufSetOption filetype=lua %{
|
||||||
|
set-option buffer lsp_servers %exp{
|
||||||
|
# Minimal setup for luals (Lua doesn't really work with LSP, I've tried)
|
||||||
|
[luals]
|
||||||
|
filetypes = ["lua"]
|
||||||
|
root_globs = [".git/", ".luarc.json", ".luarc.jsonc", ".editorconfig", ".kakrc"]
|
||||||
|
command = "lua-language-server"
|
||||||
|
|
||||||
|
[luals.settings.Lua]
|
||||||
|
codeLens.enable = false
|
||||||
|
completion.autoRequire = false # afaik not supported by kakoune
|
||||||
|
completion.enable = true
|
||||||
|
completion.callSnippet = "Replace"
|
||||||
|
completion.showWord = "Disable"
|
||||||
|
completion.postfix = "@"
|
||||||
|
diagnostics.enable = true
|
||||||
|
diagnostics.disable = [
|
||||||
|
"lowercase-global",
|
||||||
|
"spell-check",
|
||||||
|
]
|
||||||
|
format.enable = true
|
||||||
|
hint.enable = true
|
||||||
|
hint.paramName = "Disable"
|
||||||
|
hint.paramType = false
|
||||||
|
hover.enable = true
|
||||||
|
runtime.path = [
|
||||||
|
"?.lua",
|
||||||
|
"?/init.lua",
|
||||||
|
]
|
||||||
|
runtime.version = "Lua 5.4"
|
||||||
|
semantic.enable = false
|
||||||
|
|
||||||
|
[luals.settings.Lua.diagnostics.severity]
|
||||||
|
undefined-field = "Warning"
|
||||||
|
undefined-global = "Warning"
|
||||||
|
|
||||||
|
# [emmylua_ls]
|
||||||
|
# filetypes = ["lua"]
|
||||||
|
# root_globs = [".git/", ".luarc.json", ".editorconfig", ".kakrc", ".emmyrc.json"]
|
||||||
|
# command = "emmylua_ls"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hook global WinSetOption filetype=lua %{
|
||||||
|
add-highlighter window/emmylua_direct regex "---\s*(@(?:alias|as|class|enum|generic|return|type|overload))\s+([^\n]*)" 1:attribute 2:type
|
||||||
|
add-highlighter window/emmylua_labeled regex "---\s*(@(?:alias|cast|field|param))\s+([a-zA-Z0-9_\?]*) ([^\n]*)" 1:attribute 2:variable 3:type
|
||||||
|
add-highlighter window/emmylua_enum_variant regex '---\s*\|\s*("[^\n]*")' 1:string
|
||||||
|
}
|
||||||
|
|
||||||
|
# Typst
|
||||||
|
hook global BufSetOption filetype=typst %{
|
||||||
|
set-option buffer lsp_servers %exp{
|
||||||
|
[tinymist]
|
||||||
|
filetypes = ["typst"]
|
||||||
|
root_globs = ["*.typ"]
|
||||||
|
command = "tinymist"
|
||||||
|
[tinymist.settings]
|
||||||
|
exportPdf = "onType"
|
||||||
|
outputPath = "$root/target/$dir/$name"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Enable LSP (Must come just before settings, after everything else lsp)
|
||||||
|
lsp-enable
|
||||||
|
|
||||||
|
# LSP Settings
|
||||||
|
lsp-diagnostic-lines-disable global
|
||||||
|
lsp-inlay-diagnostics-enable global
|
||||||
|
# lsp-inlay-code-lenses-enable global
|
||||||
|
lsp-inlay-hints-enable global
|
||||||
|
set-option global lsp_hover_anchor true
|
||||||
|
# lsp-auto-hover-enable
|
||||||
|
lsp-auto-signature-help-enable
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./colors.nix ];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
fzf
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
kakoune-lsp
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.kakoune = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
|
||||||
|
extraConfig = lib.concatStringsSep "\n" [
|
||||||
|
"# Venomade's kakrc - my quest for a faster editor"
|
||||||
|
(builtins.readFile ./colemak.kak)
|
||||||
|
(builtins.readFile ./config.kak)
|
||||||
|
(builtins.readFile ./plugins.kak)
|
||||||
|
];
|
||||||
|
|
||||||
|
plugins = import ./plugins.nix { inherit pkgs lib; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
# auto-pairs:
|
||||||
|
# location: https://github.com/alexherbo2/auto-pairs.kak
|
||||||
|
enable-auto-pairs
|
||||||
|
|
||||||
|
# nanoline:
|
||||||
|
# location: https://github.com/ftonneau/nanoline.kak
|
||||||
|
set-option global nanoline_rw_face_light rgb:000000,rgb:b1bd91
|
||||||
|
nanoline light
|
||||||
|
nanoline-format
|
||||||
|
|
||||||
|
# kakboard:
|
||||||
|
# location: https://github.com/lePerdu/kakboard
|
||||||
|
hook global WinCreate .* %{ kakboard-enable }
|
||||||
|
|
||||||
|
# state-save:
|
||||||
|
# location: https://gitlab.com/Screwtapello/kakoune-state-save
|
||||||
|
|
||||||
|
# harpoon:
|
||||||
|
# location: https://codeberg.org/raiguard/kak-harpoon
|
||||||
|
harpoon-add-bindings
|
||||||
|
|
||||||
|
# focus:
|
||||||
|
# location: https://github.com/caksoylar/kakoune-focus
|
||||||
|
map global user s ':focus-toggle<ret>' -docstring "toggle selections focus"
|
||||||
|
define-command focus-live-enable %{
|
||||||
|
focus-selections
|
||||||
|
hook -group focus window NormalIdle .* %{ focus-extend }
|
||||||
|
}
|
||||||
|
define-command focus-live-disable %{
|
||||||
|
remove-hooks window focus
|
||||||
|
focus-clear
|
||||||
|
}
|
||||||
|
|
||||||
|
# fzf:
|
||||||
|
# location: https://github.com/andreyorst/fzf.kak
|
||||||
|
require-module fzf
|
||||||
|
# map global file-mode f ':fzf-mode<ret>' -docstring 'fzf'
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
|
[
|
||||||
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
|
pname = "auto-pairs-kak";
|
||||||
|
version = "master";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "alexherbo2";
|
||||||
|
repo = "auto-pairs.kak";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-V8++6qZFsUOQsg0GCC+5PpPgAHsR9mCKB4YDnNBL/QQ=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
|
pname = "nanoline-kak";
|
||||||
|
version = "master";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "ftonneau";
|
||||||
|
repo = "nanoline.kak";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-cIxMVS1ADJciFBpQNvGICujq3q+fZ3dQCoSoLc1ev54=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
|
pname = "kakboard";
|
||||||
|
version = "master";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "lePerdu";
|
||||||
|
repo = "kakboard";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-cH+OmkqWiNjerC/joVSJ1D17FXM/NLki3U5/22YGGD0=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
|
pname = "kakoune-state-save";
|
||||||
|
version = "master";
|
||||||
|
src = pkgs.fetchFromGitLab {
|
||||||
|
owner = "Screwtapello";
|
||||||
|
repo = "kakoune-state-save";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-Eknn0dTDg5DYzKbG6WykPCeaQc87JW1rwGIAphRa4oU=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
|
pname = "kak-harpoon";
|
||||||
|
version = "trunk";
|
||||||
|
src = pkgs.fetchFromCodeberg {
|
||||||
|
owner = "raiguard";
|
||||||
|
repo = "kak-harpoon";
|
||||||
|
rev = "trunk";
|
||||||
|
hash = "sha256-jO9ceZ4MKM+yBwhXPl4duKeSJMnPRMGL/4+/UxwM8Og=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
|
pname = "kakoune-focus";
|
||||||
|
version = "master";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "caksoylar";
|
||||||
|
repo = "kakoune-focus";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-VmDSGPnsuxmhiPjacH+hUBAm6hBdfoIFtW/NQx836f4=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(pkgs.kakouneUtils.buildKakounePluginFrom2Nix {
|
||||||
|
pname = "kak-fzf";
|
||||||
|
version = "master";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "andreyorst";
|
||||||
|
repo = "fzf.kak";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-3aj39UW5wsDpjpDJm7HDFkCGjx6+VHrBTkEC0sjyKkI=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
]
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
#|
|
|
||||||
This minimal config changes Caps Lock to act as Caps Lock on quick tap, but
|
|
||||||
if held, it will act as Left Ctrl. It also changes the backtick/grave key to
|
|
||||||
act as backtick/grave on quick tap, but change ijkl keys to arrow keys on hold.
|
|
||||||
|
|
||||||
This text between the two pipe+octothorpe sequences is a multi-line comment.
|
|
||||||
|#
|
|
||||||
|
|
||||||
;; Text after double-semicolons are single-line comments.
|
|
||||||
|
|
||||||
#|
|
|
||||||
One defcfg entry may be added, which is used for configuration key-pairs. These
|
|
||||||
configurations change kanata's behaviour at a more global level than the other
|
|
||||||
configuration entries.
|
|
||||||
|#
|
|
||||||
|
|
||||||
(defcfg
|
|
||||||
#|
|
|
||||||
This configuration will process all keys pressed inside of kanata, even if
|
|
||||||
they are not mapped in defsrc. This is so that certain actions can activate
|
|
||||||
at the right time for certain input sequences. By default, unmapped keys are
|
|
||||||
not processed through kanata due to a Windows issue related to AltGr. If you
|
|
||||||
use AltGr in your keyboard, you will likely want to follow the simple.kbd
|
|
||||||
file while unmapping lctl and ralt from defsrc.
|
|
||||||
|#
|
|
||||||
process-unmapped-keys yes
|
|
||||||
)
|
|
||||||
|
|
||||||
(defsrc
|
|
||||||
caps
|
|
||||||
)
|
|
||||||
|
|
||||||
(deflayer default
|
|
||||||
@cap
|
|
||||||
)
|
|
||||||
|
|
||||||
(defalias
|
|
||||||
cap (tap-hold 200 200 esc lctl)
|
|
||||||
)
|
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
c = config.colorScheme.palette;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
font = {
|
||||||
|
name = "Aporetic Serif Mono";
|
||||||
|
package = pkgs.aporetic-bin;
|
||||||
|
size = 16;
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
shell = "${config.home.homeDirectory}/.nix-profile/bin/bash";
|
||||||
|
cursor_shape = "beam";
|
||||||
|
cursor_shape_unfocused = "unchanged";
|
||||||
|
cursor_stop_blinking_after = 0;
|
||||||
|
url_style = "straight";
|
||||||
|
paste_actions = "quote-urls-at-prompt";
|
||||||
|
strip_trailing_spaces = "smart";
|
||||||
|
copy_on_select = "clipboard";
|
||||||
|
enable_audio_bell = false;
|
||||||
|
single_window_padding_width = 14;
|
||||||
|
window_margin_width = 7;
|
||||||
|
window_border_width = 0;
|
||||||
|
tab_bar_style = "separator";
|
||||||
|
tab_bar_align = "center";
|
||||||
|
tab_separator = " | ";
|
||||||
|
active_tab_background = "#${c.base08}";
|
||||||
|
active_tab_font_style = "bold";
|
||||||
|
inactive_tab_foreground = "#${c.base06}";
|
||||||
|
inactive_tab_background = "#${c.base07}";
|
||||||
|
tab_bar_background = "#${c.base07}";
|
||||||
|
tab_bar_margin_width = 24;
|
||||||
|
tab_bar_margin_height = "14 0";
|
||||||
|
notify_on_cmd_finish = "unfocused 60";
|
||||||
|
allow_remote_control = true;
|
||||||
|
listen_on = "unix:/tmp/mykitty";
|
||||||
|
wayland_titlebar_color = "background";
|
||||||
|
macos_titlebar_color = "background";
|
||||||
|
macos_show_window_title_in = "menubar";
|
||||||
|
|
||||||
|
background = "#${c.base00}";
|
||||||
|
foreground = "#${c.base05}";
|
||||||
|
|
||||||
|
cursor = "#${c.base0B}";
|
||||||
|
|
||||||
|
selection_background = "#${c.base02}";
|
||||||
|
selection_foreground = "#${c.base05}";
|
||||||
|
|
||||||
|
color0 = "#${c.base00}";
|
||||||
|
color1 = "#${c.base08}";
|
||||||
|
color2 = "#${c.base0B}";
|
||||||
|
color3 = "#${c.base0A}";
|
||||||
|
color4 = "#${c.base0D}";
|
||||||
|
color5 = "#${c.base0E}";
|
||||||
|
color6 = "#${c.base0C}";
|
||||||
|
color7 = "#${c.base05}";
|
||||||
|
|
||||||
|
color8 = "#${c.base03}";
|
||||||
|
color9 = "#${c.base08}";
|
||||||
|
color10 = "#${c.base0B}";
|
||||||
|
color11 = "#${c.base0A}";
|
||||||
|
color12 = "#${c.base0D}";
|
||||||
|
color13 = "#${c.base0E}";
|
||||||
|
color14 = "#${c.base0C}";
|
||||||
|
color15 = "#${c.base04}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1 +0,0 @@
|
|||||||
state.yml
|
|
||||||
@@ -1,182 +0,0 @@
|
|||||||
gui:
|
|
||||||
border: single
|
|
||||||
|
|
||||||
keybinding:
|
|
||||||
universal:
|
|
||||||
quit: q
|
|
||||||
quit-alt1: <c-c>
|
|
||||||
suspendApp: <c-z>
|
|
||||||
return: <esc>
|
|
||||||
quitWithoutChangingDirectory: Q
|
|
||||||
togglePanel: <tab>
|
|
||||||
prevItem: <up>
|
|
||||||
nextItem: <down>
|
|
||||||
prevItem-alt: e
|
|
||||||
nextItem-alt: n
|
|
||||||
prevPage: ','
|
|
||||||
nextPage: .
|
|
||||||
scrollLeft: H
|
|
||||||
scrollRight: I
|
|
||||||
gotoTop: <
|
|
||||||
gotoBottom: '>'
|
|
||||||
gotoTop-alt: <home>
|
|
||||||
gotoBottom-alt: <end>
|
|
||||||
toggleRangeSelect: v
|
|
||||||
rangeSelectDown: <s-down>
|
|
||||||
rangeSelectUp: <s-up>
|
|
||||||
prevBlock: <left>
|
|
||||||
nextBlock: <right>
|
|
||||||
prevBlock-alt: h
|
|
||||||
nextBlock-alt: i
|
|
||||||
nextBlock-alt2: <tab>
|
|
||||||
prevBlock-alt2: <backtab>
|
|
||||||
jumpToBlock:
|
|
||||||
- "1"
|
|
||||||
- "2"
|
|
||||||
- "3"
|
|
||||||
- "4"
|
|
||||||
- "5"
|
|
||||||
focusMainView: "0"
|
|
||||||
nextMatch: "k"
|
|
||||||
prevMatch: "K"
|
|
||||||
startSearch: /
|
|
||||||
optionMenu: <disabled>
|
|
||||||
optionMenu-alt1: '?'
|
|
||||||
select: <space>
|
|
||||||
goInto: <enter>
|
|
||||||
confirm: <enter>
|
|
||||||
confirmMenu: <enter>
|
|
||||||
confirmSuggestion: <enter>
|
|
||||||
confirmInEditor: <a-enter>
|
|
||||||
confirmInEditor-alt: <c-s>
|
|
||||||
remove: d
|
|
||||||
new: "n"
|
|
||||||
edit: j
|
|
||||||
openFile: o
|
|
||||||
scrollUpMain: <pgup>
|
|
||||||
scrollDownMain: <pgdown>
|
|
||||||
scrollUpMain-alt1: E
|
|
||||||
scrollDownMain-alt1: N
|
|
||||||
scrollUpMain-alt2: <c-u>
|
|
||||||
scrollDownMain-alt2: <c-d>
|
|
||||||
executeShellCommand: ':'
|
|
||||||
createRebaseOptionsMenu: m
|
|
||||||
|
|
||||||
# 'Files' appended for legacy reasons
|
|
||||||
pushFiles: P
|
|
||||||
|
|
||||||
# 'Files' appended for legacy reasons
|
|
||||||
pullFiles: p
|
|
||||||
refresh: R
|
|
||||||
createPatchOptionsMenu: <c-p>
|
|
||||||
nextTab: ']'
|
|
||||||
prevTab: '['
|
|
||||||
nextScreenMode: +
|
|
||||||
prevScreenMode: _
|
|
||||||
cyclePagers: '|'
|
|
||||||
undo: z
|
|
||||||
redo: Z
|
|
||||||
filteringMenu: <c-s>
|
|
||||||
diffingMenu: W
|
|
||||||
diffingMenu-alt: <c-j>
|
|
||||||
copyToClipboard: <c-o>
|
|
||||||
openRecentRepos: <c-r>
|
|
||||||
submitEditorText: <enter>
|
|
||||||
extrasMenu: '@'
|
|
||||||
toggleWhitespaceInDiffView: <c-w>
|
|
||||||
increaseContextInDiffView: '}'
|
|
||||||
decreaseContextInDiffView: '{'
|
|
||||||
increaseRenameSimilarityThreshold: )
|
|
||||||
decreaseRenameSimilarityThreshold: (
|
|
||||||
openDiffTool: <c-t>
|
|
||||||
status:
|
|
||||||
checkForUpdate: u
|
|
||||||
recentRepos: <enter>
|
|
||||||
allBranchesLogGraph: a
|
|
||||||
files:
|
|
||||||
commitChanges: c
|
|
||||||
commitChangesWithoutHook: w
|
|
||||||
amendLastCommit: A
|
|
||||||
commitChangesWithEditor: C
|
|
||||||
findBaseCommitForFixup: <c-f>
|
|
||||||
confirmDiscard: x
|
|
||||||
ignoreFile: l
|
|
||||||
refreshFiles: r
|
|
||||||
stashAllChanges: s
|
|
||||||
viewStashOptions: S
|
|
||||||
toggleStagedAll: a
|
|
||||||
viewResetOptions: D
|
|
||||||
fetch: f
|
|
||||||
toggleTreeView: '`'
|
|
||||||
openMergeOptions: M
|
|
||||||
openStatusFilter: <c-b>
|
|
||||||
copyFileInfoToClipboard: "y"
|
|
||||||
collapseAll: '-'
|
|
||||||
expandAll: =
|
|
||||||
branches:
|
|
||||||
createPullRequest: o
|
|
||||||
viewPullRequestOptions: O
|
|
||||||
copyPullRequestURL: <c-y>
|
|
||||||
checkoutBranchByName: c
|
|
||||||
forceCheckoutBranch: F
|
|
||||||
checkoutPreviousBranch: '-'
|
|
||||||
rebaseBranch: r
|
|
||||||
renameBranch: R
|
|
||||||
mergeIntoCurrentBranch: M
|
|
||||||
moveCommitsToNewBranch: "K"
|
|
||||||
viewGitFlowOptions: l
|
|
||||||
fastForward: f
|
|
||||||
createTag: T
|
|
||||||
pushTag: P
|
|
||||||
setUpstream: u
|
|
||||||
fetchRemote: f
|
|
||||||
addForkRemote: F
|
|
||||||
sortOrder: s
|
|
||||||
worktrees:
|
|
||||||
viewWorktreeOptions: w
|
|
||||||
commits:
|
|
||||||
squashDown: s
|
|
||||||
renameCommit: r
|
|
||||||
renameCommitWithEditor: R
|
|
||||||
viewResetOptions: g
|
|
||||||
markCommitAsFixup: f
|
|
||||||
setFixupMessage: c
|
|
||||||
createFixupCommit: F
|
|
||||||
squashAboveCommits: S
|
|
||||||
moveDownCommit: <c-n>
|
|
||||||
moveUpCommit: <c-e>
|
|
||||||
amendToCommit: A
|
|
||||||
resetCommitAuthor: a
|
|
||||||
pickCommit: p
|
|
||||||
revertCommit: t
|
|
||||||
cherryPickCopy: C
|
|
||||||
pasteCommits: V
|
|
||||||
markCommitAsBaseForRebase: B
|
|
||||||
tagCommit: T
|
|
||||||
checkoutCommit: <space>
|
|
||||||
resetCherryPick: <c-R>
|
|
||||||
copyCommitAttributeToClipboard: "y"
|
|
||||||
openLogMenu: <c-l>
|
|
||||||
openInBrowser: o
|
|
||||||
viewBisectOptions: b
|
|
||||||
startInteractiveRebase: l
|
|
||||||
selectCommitsOfCurrentBranch: '*'
|
|
||||||
amendAttribute:
|
|
||||||
resetAuthor: a
|
|
||||||
setAuthor: A
|
|
||||||
addCoAuthor: c
|
|
||||||
stash:
|
|
||||||
popStash: g
|
|
||||||
renameStash: r
|
|
||||||
commitFiles:
|
|
||||||
checkoutCommitFile: c
|
|
||||||
main:
|
|
||||||
toggleSelectHunk: a
|
|
||||||
pickBothHunks: b
|
|
||||||
editSelectHunk: J
|
|
||||||
submodules:
|
|
||||||
init: l
|
|
||||||
update: u
|
|
||||||
bulkMenu: b
|
|
||||||
commitMessage:
|
|
||||||
commitMenu: <c-o>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
lazy-lock.json
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
|
|
||||||
"Lua.runtime.version": "LuaJIT",
|
|
||||||
"workspace.checkThirdParty": false,
|
|
||||||
"workspace.library": [
|
|
||||||
"$VIMRUNTIME"
|
|
||||||
],
|
|
||||||
"Lua.diagnostics.enable": true,
|
|
||||||
"Lua.format.defaultConfig": {
|
|
||||||
"indent_style": "space",
|
|
||||||
"indent_size": "2"
|
|
||||||
},
|
|
||||||
"typeFormat.config": false,
|
|
||||||
"completion.callSnippet": "Replace",
|
|
||||||
"completion.showWord": "Disable",
|
|
||||||
"completion.workspaceWord": false
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
vim.keymap.set('n', 'n', 'gj', { buffer = true, noremap = true })
|
|
||||||
vim.keymap.set('n', 'e', 'gk', { buffer = true, noremap = true })
|
|
||||||
|
|
||||||
vim.opt_local.wrap = true
|
|
||||||
vim.opt_local.linebreak = true
|
|
||||||
|
|
||||||
vim.opt_local.number = false
|
|
||||||
vim.opt_local.relativenumber = false
|
|
||||||
|
|
||||||
vim.treesitter.start(vim.api.nvim_get_current_buf(), 'markdown')
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
-- Setup Config
|
|
||||||
require("config.colemak")
|
|
||||||
require("config.options")
|
|
||||||
require("config.keymaps")
|
|
||||||
|
|
||||||
-- Setup Lazy Plugin Manager
|
|
||||||
require("manager")
|
|
||||||
|
|
||||||
-- Test Script
|
|
||||||
require("scripts")
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
local function map(mode, lhs, rhs, opts)
|
|
||||||
local options = { noremap = true, silent = true }
|
|
||||||
if opts then
|
|
||||||
options = vim.tbl_extend("force", options, opts)
|
|
||||||
end
|
|
||||||
vim.keymap.set(mode, lhs, rhs, options)
|
|
||||||
end
|
|
||||||
|
|
||||||
map("", "n", "j")
|
|
||||||
map("", "e", "k")
|
|
||||||
map("", "i", "l")
|
|
||||||
map("", "j", "n")
|
|
||||||
map("", "k", "e")
|
|
||||||
map("", "l", "i")
|
|
||||||
map("", "K", "E")
|
|
||||||
map("", "N", "J")
|
|
||||||
map("", "E", "K") -- As in 'Explore' documentation
|
|
||||||
map("", "L", "I")
|
|
||||||
map("", "I", "L")
|
|
||||||
map("", "J", "N")
|
|
||||||
|
|
||||||
map("n", "<c-w>h", "<c-w>h")
|
|
||||||
map("n", "<c-w>n", "<c-w>j")
|
|
||||||
map("n", "<c-w>e", "<c-w>k")
|
|
||||||
map("n", "<C-w>i", "<c-w>l")
|
|
||||||
|
|
||||||
map ("", "gn", "gj")
|
|
||||||
map ("", "ge", "gk")
|
|
||||||
|
|
||||||
-- Kakoune Holdover
|
|
||||||
map ("", "gh", "0")
|
|
||||||
map ("", "gi", "$")
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
vim.g.mapleader = " "
|
|
||||||
vim.keymap.set("n", "<leader>bk", vim.cmd.bdelete,
|
|
||||||
{ desc = "Kill Buffer" })
|
|
||||||
vim.keymap.set("n", "<leader>bn", vim.cmd.bnext,
|
|
||||||
{ desc = "Next Buffer" })
|
|
||||||
vim.keymap.set("n", "<leader>bp", vim.cmd.bprev,
|
|
||||||
{ desc = "Previous Buffer" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "E", vim.lsp.buf.hover)
|
|
||||||
vim.keymap.set("n", "<C-e>", vim.diagnostic.open_float)
|
|
||||||
vim.keymap.set("n", "<leader>ld", vim.lsp.buf.definition,
|
|
||||||
{ desc = "Go to Definition" })
|
|
||||||
vim.keymap.set("n", "<leader>lt", vim.lsp.buf.type_definition,
|
|
||||||
{ desc = "Go to Type Definition"} )
|
|
||||||
vim.keymap.set("n", "<leader>li", vim.lsp.buf.implementation,
|
|
||||||
{ desc = "Go to Implementation" })
|
|
||||||
vim.keymap.set("n", "<leader>la", vim.lsp.buf.code_action,
|
|
||||||
{ desc = "Show Code Actions" })
|
|
||||||
vim.keymap.set("n", "<leader>lf", vim.lsp.buf.format,
|
|
||||||
{ desc = "Format Document" })
|
|
||||||
vim.keymap.set("n", "<leader>lr", vim.lsp.buf.rename,
|
|
||||||
{ desc = "Rename" })
|
|
||||||
vim.keymap.set("n", "<leader>lk", function()
|
|
||||||
vim.diagnostic.jump({ count = 1, float = true })
|
|
||||||
end,
|
|
||||||
{ desc = "Next Error" })
|
|
||||||
-- vim.keymap.set("n", "<leader>lh", vim.lsp.buf.hover,
|
|
||||||
-- { desc = "Hover Diagnostics" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>wh", vim.cmd.split,
|
|
||||||
{ desc = "Split Window Horizontally" })
|
|
||||||
vim.keymap.set("n", "<leader>wv", vim.cmd.vsplit,
|
|
||||||
{ desc = "Split Window Vertically" })
|
|
||||||
vim.keymap.set("n", "<leader>wc", "<C-w>q",
|
|
||||||
{ desc = "Close Window" })
|
|
||||||
vim.keymap.set("n", "<leader>ww", "<C-w>w",
|
|
||||||
{ desc = "Next Window" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>foc", function()
|
|
||||||
vim.cmd('edit ~/.config/nvim/init.lua')
|
|
||||||
end, { desc = "Open Config File" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>fot", function()
|
|
||||||
vim.cmd('edit ~/Documents/TODO.org')
|
|
||||||
end, { desc = "Open Todo File" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>fon", function()
|
|
||||||
vim.cmd('edit ~/Documents/Notes.org')
|
|
||||||
end, { desc = "Open Notes File" })
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<Tab>', '==', { noremap = true, silent = true })
|
|
||||||
|
|
||||||
vim.keymap.set('n', 'q:', ':q<CR>', { noremap = true })
|
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
vim.opt.nu = true
|
|
||||||
vim.opt.rnu = true
|
|
||||||
|
|
||||||
vim.opt.tabstop = 2
|
|
||||||
vim.opt.softtabstop = 2
|
|
||||||
vim.opt.shiftwidth = 2
|
|
||||||
vim.opt.expandtab = true
|
|
||||||
vim.opt.autoindent = true
|
|
||||||
|
|
||||||
vim.opt.smartindent = true
|
|
||||||
|
|
||||||
vim.opt.wrap = false
|
|
||||||
|
|
||||||
vim.opt.swapfile = false
|
|
||||||
vim.opt.backup = false
|
|
||||||
vim.opt.undodir = os.getenv("HOME") .. "/.nvim/undodir"
|
|
||||||
vim.opt.undofile = true
|
|
||||||
|
|
||||||
vim.opt.hlsearch = false
|
|
||||||
vim.opt.incsearch = true
|
|
||||||
|
|
||||||
vim.opt.termguicolors = true
|
|
||||||
|
|
||||||
vim.opt.scrolloff = 12
|
|
||||||
|
|
||||||
vim.opt.updatetime = 50
|
|
||||||
|
|
||||||
vim.opt.splitbelow = true
|
|
||||||
vim.opt.splitright = true
|
|
||||||
|
|
||||||
vim.opt.encoding = "utf-8"
|
|
||||||
|
|
||||||
vim.opt.shell = "zsh"
|
|
||||||
|
|
||||||
vim.opt.mouse = "a"
|
|
||||||
|
|
||||||
vim.opt.ignorecase = true
|
|
||||||
vim.opt.smartcase = true
|
|
||||||
vim.opt.incsearch = true
|
|
||||||
|
|
||||||
-- vim.opt.cursorline = true
|
|
||||||
|
|
||||||
vim.opt.title = true
|
|
||||||
|
|
||||||
vim.opt.clipboard = "unnamedplus"
|
|
||||||
|
|
||||||
-- vim.opt.colorcolumn = "80"
|
|
||||||
|
|
||||||
vim.opt.signcolumn = 'no'
|
|
||||||
|
|
||||||
vim.cmd "set showtabline=0 | set laststatus=0"
|
|
||||||
|
|
||||||
vim.wo.fillchars='eob: '
|
|
||||||
|
|
||||||
vim.opt.conceallevel = 3
|
|
||||||
|
|
||||||
-- Window Borders
|
|
||||||
vim.o.winborder = 'rounded'
|
|
||||||
|
|
||||||
-- Remove Whitespaces on File Save
|
|
||||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
|
||||||
pattern = { "*" },
|
|
||||||
command = [[%s/\s\+$//e]],
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Define highlight groups for line numbers with diagnostics
|
|
||||||
vim.api.nvim_set_hl(0, "LineNrDiagnosticError", { bg = "#3f1d1d", fg = "#ff6c6b" })
|
|
||||||
vim.api.nvim_set_hl(0, "LineNrDiagnosticWarn", { bg = "#3f311d", fg = "#ECBE7B" })
|
|
||||||
vim.api.nvim_set_hl(0, "LineNrDiagnosticInfo", { bg = "#1d2d3f", fg = "#51afef" })
|
|
||||||
vim.api.nvim_set_hl(0, "LineNrDiagnosticHint", { bg = "#1d3f2d", fg = "#98be65" })
|
|
||||||
|
|
||||||
local function set_line_number_highlight()
|
|
||||||
-- Clear existing highlights
|
|
||||||
vim.fn.sign_unplace("LineNrDiagnostics")
|
|
||||||
|
|
||||||
-- Get diagnostics per buffer
|
|
||||||
for _, diag in ipairs(vim.diagnostic.get(0)) do
|
|
||||||
local hl_group = nil
|
|
||||||
if diag.severity == vim.diagnostic.severity.ERROR then
|
|
||||||
hl_group = "LineNrDiagnosticError"
|
|
||||||
elseif diag.severity == vim.diagnostic.severity.WARN then
|
|
||||||
hl_group = "LineNrDiagnosticWarn"
|
|
||||||
elseif diag.severity == vim.diagnostic.severity.INFO then
|
|
||||||
hl_group = "LineNrDiagnosticInfo"
|
|
||||||
elseif diag.severity == vim.diagnostic.severity.HINT then
|
|
||||||
hl_group = "LineNrDiagnosticHint"
|
|
||||||
end
|
|
||||||
|
|
||||||
if hl_group then
|
|
||||||
vim.fn.sign_place(0, "LineNrDiagnostics", hl_group, vim.api.nvim_get_current_buf(), {
|
|
||||||
lnum = diag.lnum + 1, -- diagnostics are 0-indexed
|
|
||||||
priority = 10,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Create the sign definitions
|
|
||||||
vim.fn.sign_define("LineNrDiagnosticError", { text = "", texthl = "LineNrDiagnosticError", numhl = "LineNrDiagnosticError" })
|
|
||||||
vim.fn.sign_define("LineNrDiagnosticWarn", { text = "", texthl = "LineNrDiagnosticWarn", numhl = "LineNrDiagnosticWarn" })
|
|
||||||
vim.fn.sign_define("LineNrDiagnosticInfo", { text = "", texthl = "LineNrDiagnosticInfo", numhl = "LineNrDiagnosticInfo" })
|
|
||||||
vim.fn.sign_define("LineNrDiagnosticHint", { text = "", texthl = "LineNrDiagnosticHint", numhl = "LineNrDiagnosticHint" })
|
|
||||||
|
|
||||||
-- Update line numbers when diagnostics change
|
|
||||||
vim.api.nvim_create_autocmd({ "DiagnosticChanged", "BufEnter", "CursorHold" }, {
|
|
||||||
callback = set_line_number_highlight,
|
|
||||||
})
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
|
||||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
|
||||||
if vim.v.shell_error ~= 0 then
|
|
||||||
vim.api.nvim_echo({
|
|
||||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
|
||||||
{ out, "WarningMsg" },
|
|
||||||
{ "\nPress any key to exit..." },
|
|
||||||
}, true, {})
|
|
||||||
vim.fn.getchar()
|
|
||||||
os.exit(1)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
|
||||||
vim.g.maplocalleader = "\\"
|
|
||||||
|
|
||||||
require("lazy").setup({
|
|
||||||
spec = {
|
|
||||||
{ import = "plugins" },
|
|
||||||
},
|
|
||||||
install = { colorscheme = { "modus" } },
|
|
||||||
checker = { enabled = true, notify = false },
|
|
||||||
})
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
config = function()
|
|
||||||
require("nvim-autopairs").setup({
|
|
||||||
disable_filetype = { "TelescopePrompt" , "vim" }
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
return {
|
|
||||||
'catppuccin/nvim',
|
|
||||||
name = 'catppuccin',
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
require('catppuccin').setup({
|
|
||||||
flavour = 'mocha',
|
|
||||||
transparent_background = true,
|
|
||||||
float = {
|
|
||||||
transparent = true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
vim.cmd.colorscheme('catppuccin')
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
return {
|
|
||||||
'hrsh7th/nvim-cmp',
|
|
||||||
dependencies = {
|
|
||||||
'neovim/nvim-lspconfig',
|
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
|
||||||
'hrsh7th/cmp-buffer',
|
|
||||||
'hrsh7th/cmp-path',
|
|
||||||
'lukas-reineke/cmp-rg',
|
|
||||||
'onsails/lspkind.nvim'
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local cmp = require('cmp')
|
|
||||||
local lspkind = require('lspkind')
|
|
||||||
cmp.setup({
|
|
||||||
-- preselect = cmp.PreselectMode.None,
|
|
||||||
completion = {
|
|
||||||
completeopt = "menu,menuone,noinsert",
|
|
||||||
callSnippet = "Replace",
|
|
||||||
keywordSnippet = "Replace",
|
|
||||||
},
|
|
||||||
window = {
|
|
||||||
completion = cmp.config.window.bordered({}),
|
|
||||||
documentation = cmp.config.window.bordered({}),
|
|
||||||
},
|
|
||||||
snippet = {
|
|
||||||
expand = function(arg)
|
|
||||||
vim.snippet.expand(arg.body)
|
|
||||||
end
|
|
||||||
},
|
|
||||||
mapping = cmp.mapping.preset.insert({
|
|
||||||
['<Tab>'] = cmp.mapping.confirm({ select = true }),
|
|
||||||
['<C-n>'] = cmp.mapping.select_next_item(),
|
|
||||||
['<C-p>'] = cmp.mapping.select_prev_item(),
|
|
||||||
['<C-g>'] = cmp.mapping.abort(),
|
|
||||||
}),
|
|
||||||
sources = cmp.config.sources(
|
|
||||||
{
|
|
||||||
{ name = 'nvim_lsp' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
{ name = 'path' },
|
|
||||||
}
|
|
||||||
-- {
|
|
||||||
-- { name = 'buffer' },
|
|
||||||
-- { name = 'rg', keyword_length = 3 }
|
|
||||||
-- }
|
|
||||||
),
|
|
||||||
formatting = {
|
|
||||||
format = lspkind.cmp_format({
|
|
||||||
mode = 'symbol'
|
|
||||||
})
|
|
||||||
},
|
|
||||||
-- view = {
|
|
||||||
-- entries = 'native'
|
|
||||||
-- },
|
|
||||||
})
|
|
||||||
|
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
|
||||||
vim.lsp.config('lua_ls', {
|
|
||||||
-- cmd = { '/home/venomade/.local/share/lua-language-server/bin/lua-language-server' },
|
|
||||||
capabilities = capabilities,
|
|
||||||
root_markers = {
|
|
||||||
".luarc.json",
|
|
||||||
".luarc.jsonc",
|
|
||||||
".git",
|
|
||||||
},
|
|
||||||
settings = {
|
|
||||||
Lua = {
|
|
||||||
runtime = {
|
|
||||||
version = 'Lua 5.4',
|
|
||||||
path = vim.list_extend(
|
|
||||||
vim.split(package.path, ';'),
|
|
||||||
{
|
|
||||||
'?.lua',
|
|
||||||
'?/init.lua',
|
|
||||||
'./stubs/?.lua',
|
|
||||||
'./stubs/?/init.lua'
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
workspace = {
|
|
||||||
library = {
|
|
||||||
vim.env.HOME .. '/.luarocks/share/lua/5.4',
|
|
||||||
'./stubs'
|
|
||||||
},
|
|
||||||
},
|
|
||||||
diagnostics = {
|
|
||||||
enable = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.lsp.enable('lua_ls')
|
|
||||||
vim.lsp.config('clangd', {
|
|
||||||
capabilities = capabilities
|
|
||||||
})
|
|
||||||
vim.lsp.enable('clangd')
|
|
||||||
end
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
return {
|
|
||||||
'norcalli/nvim-colorizer.lua',
|
|
||||||
config = function()
|
|
||||||
require("colorizer").setup({ "*" }, {
|
|
||||||
RGB = true,
|
|
||||||
RRGGBB = true,
|
|
||||||
names = false,
|
|
||||||
RRGGBBAA = true,
|
|
||||||
rgb_fn = true,
|
|
||||||
hsl_fn = true,
|
|
||||||
css = false,
|
|
||||||
css_fn = false,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
return {
|
|
||||||
"ej-shafran/compile-mode.nvim",
|
|
||||||
branch = "latest",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
vim.g.compile_mode = {}
|
|
||||||
|
|
||||||
local compile_mode = require("compile-mode")
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>cc", compile_mode.compile,
|
|
||||||
{ desc = "Compile" })
|
|
||||||
vim.keymap.set("n", "<leader>cr", compile_mode.recompile,
|
|
||||||
{ desc = "Recompile" })
|
|
||||||
vim.keymap.set("n", "<leader>cq", compile_mode.interrupt,
|
|
||||||
{ desc = "Quit Compile (Interrupt)" })
|
|
||||||
|
|
||||||
end
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
return {
|
|
||||||
'3rd/image.nvim',
|
|
||||||
config = function()
|
|
||||||
require("image").setup({
|
|
||||||
backend = "sixel",
|
|
||||||
processor = "magick_cli",
|
|
||||||
integrations = {
|
|
||||||
markdown = {
|
|
||||||
enabled = true,
|
|
||||||
only_render_image_at_cursor = true,
|
|
||||||
only_render_image_at_cursor_mode = "popup", -- or "inline"
|
|
||||||
floating_windows = true, -- if true, images will be rendered in floating markdown windows
|
|
||||||
},
|
|
||||||
},
|
|
||||||
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs" },
|
|
||||||
editor_only_render_when_focused = true, -- auto show/hide images when the editor gains/looses focus
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
build = false,
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
return {
|
|
||||||
"kdheepak/lazygit.nvim",
|
|
||||||
lazy = true,
|
|
||||||
cmd = {
|
|
||||||
"LazyGit",
|
|
||||||
"LazyGitConfig",
|
|
||||||
"LazyGitCurrentFile",
|
|
||||||
"LazyGitFilter",
|
|
||||||
"LazyGitFilterCurrentFile",
|
|
||||||
},
|
|
||||||
-- optional for floating window border decoration
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
},
|
|
||||||
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
|
||||||
-- order to load the plugin when the command is run for the first time
|
|
||||||
keys = {
|
|
||||||
{ "<leader>g", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
return {
|
|
||||||
"nvim-lualine/lualine.nvim",
|
|
||||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
|
||||||
config = function()
|
|
||||||
require("lualine").setup({
|
|
||||||
options = {
|
|
||||||
icons_enabled = true,
|
|
||||||
component_separators = { left = '|', right = '|'},
|
|
||||||
section_separators = { left = '', right = ''},
|
|
||||||
theme = {
|
|
||||||
normal = {
|
|
||||||
a = { bg = '#000000' },
|
|
||||||
b = { bg = '#000000' },
|
|
||||||
c = { bg = '#000000' },
|
|
||||||
},
|
|
||||||
inactive = {
|
|
||||||
a = { bg = '#000000' },
|
|
||||||
b = { bg = '#000000' },
|
|
||||||
c = { bg = '#000000' },
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sections = {
|
|
||||||
lualine_a = {"mode", {
|
|
||||||
"filetype",
|
|
||||||
icon_only = true,
|
|
||||||
separator = "",
|
|
||||||
padding = { right = 0, left = 1 },
|
|
||||||
}, "filename" },
|
|
||||||
lualine_b = {},
|
|
||||||
lualine_c = {},
|
|
||||||
lualine_x = {"diagnostics"},
|
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = {}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
return {
|
|
||||||
'stevearc/oil.nvim',
|
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
||||||
config = function()
|
|
||||||
|
|
||||||
function _G.get_oil_winbar()
|
|
||||||
local bufnr = vim.api.nvim_win_get_buf(vim.g.statusline_winid)
|
|
||||||
local dir = require("oil").get_current_dir(bufnr)
|
|
||||||
if dir then
|
|
||||||
return vim.fn.fnamemodify(dir, ":~")
|
|
||||||
else
|
|
||||||
-- If there is no current directory (e.g. over ssh), just show the buffer name
|
|
||||||
return vim.api.nvim_buf_get_name(0)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
require('oil').setup({
|
|
||||||
win_options = {
|
|
||||||
winbar = "%!v:lua.get_oil_winbar()",
|
|
||||||
},
|
|
||||||
view_options = {
|
|
||||||
show_hidden = true
|
|
||||||
}
|
|
||||||
})
|
|
||||||
vim.keymap.set('n', '-', '<CMD>Oil<CR>', {desc = "Open Dir in Oil"})
|
|
||||||
end,
|
|
||||||
lazy = false,
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
return {
|
|
||||||
"hiphish/rainbow-delimiters.nvim",
|
|
||||||
config = function()
|
|
||||||
require('rainbow-delimiters.setup').setup({})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
return {
|
|
||||||
'vladdoster/remember.nvim',
|
|
||||||
config = function()
|
|
||||||
require'remember'.setup({})
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,114 +0,0 @@
|
|||||||
return {
|
|
||||||
'MeanderingProgrammer/render-markdown.nvim',
|
|
||||||
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' },
|
|
||||||
config = function()
|
|
||||||
require('render-markdown').setup({
|
|
||||||
link = {
|
|
||||||
enabled = true,
|
|
||||||
render_modes = false,
|
|
||||||
footnote = {
|
|
||||||
enabled = true,
|
|
||||||
superscript = true,
|
|
||||||
prefix = '',
|
|
||||||
suffix = '',
|
|
||||||
},
|
|
||||||
image = ' ',
|
|
||||||
email = ' ',
|
|
||||||
hyperlink = ' ',
|
|
||||||
highlight = 'RenderMarkdownLink',
|
|
||||||
wiki = {
|
|
||||||
icon = ' ',
|
|
||||||
body = function()
|
|
||||||
return nil
|
|
||||||
end,
|
|
||||||
highlight = 'RenderMarkdownWikiLink',
|
|
||||||
},
|
|
||||||
custom = {
|
|
||||||
web = { pattern = '^http', icon = ' ' },
|
|
||||||
github = { pattern = 'github%.com', icon = ' ' },
|
|
||||||
stackoverflow = { pattern = 'stackoverflow%.com', icon = ' ' },
|
|
||||||
wikipedia = { pattern = 'wikipedia%.org', icon = ' ' },
|
|
||||||
youtube = { pattern = 'youtube%.com', icon = ' ' },
|
|
||||||
reddit = { pattern = 'reddit%.com', icon = ' ' },
|
|
||||||
old_reddit = { pattern = 'old.reddit%.com', icon = ' ' },
|
|
||||||
gvc = { pattern = 'git%.venomade%.com', icon = ' ' },
|
|
||||||
catechism = { pattern = 'ccc%.directory', icon = ' ' },
|
|
||||||
bible = { pattern = 'biblenow%.net', icon = ' ' },
|
|
||||||
luarocks = { pattern = 'luarocks%.org', icon = ' ' },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
callout = {
|
|
||||||
note = { raw = '[!NOTE]', rendered = ' Note', highlight = 'RenderMarkdownInfo' },
|
|
||||||
tip = { raw = '[!TIP]', rendered = ' Tip', highlight = 'RenderMarkdownSuccess' },
|
|
||||||
important = { raw = '[!IMPORTANT]', rendered = ' Important', highlight = 'RenderMarkdownHint' },
|
|
||||||
warning = { raw = '[!WARNING]', rendered = ' Warning', highlight = 'RenderMarkdownWarn' },
|
|
||||||
caution = { raw = '[!CAUTION]', rendered = ' Caution', highlight = 'RenderMarkdownError' },
|
|
||||||
abstract = { raw = '[!ABSTRACT]', rendered = ' Abstract', highlight = 'RenderMarkdownInfo' },
|
|
||||||
summary = { raw = '[!SUMMARY]', rendered = ' Summary', highlight = 'RenderMarkdownInfo' },
|
|
||||||
tldr = { raw = '[!TLDR]', rendered = ' Tldr', highlight = 'RenderMarkdownInfo' },
|
|
||||||
info = { raw = '[!INFO]', rendered = ' Info', highlight = 'RenderMarkdownInfo' },
|
|
||||||
todo = { raw = '[!TODO]', rendered = ' Todo', highlight = 'RenderMarkdownInfo' },
|
|
||||||
hint = { raw = '[!HINT]', rendered = ' Hint', highlight = 'RenderMarkdownSuccess' },
|
|
||||||
success = { raw = '[!SUCCESS]', rendered = ' Success', highlight = 'RenderMarkdownSuccess' },
|
|
||||||
check = { raw = '[!CHECK]', rendered = ' Check', highlight = 'RenderMarkdownSuccess' },
|
|
||||||
done = { raw = '[!DONE]', rendered = ' Done', highlight = 'RenderMarkdownSuccess' },
|
|
||||||
question = { raw = '[!QUESTION]', rendered = ' Question', highlight = 'RenderMarkdownWarn' },
|
|
||||||
help = { raw = '[!HELP]', rendered = ' Help', highlight = 'RenderMarkdownWarn' },
|
|
||||||
faq = { raw = '[!FAQ]', rendered = ' Faq', highlight = 'RenderMarkdownWarn' },
|
|
||||||
attention = { raw = '[!ATTENTION]', rendered = ' Attention', highlight = 'RenderMarkdownWarn' },
|
|
||||||
failure = { raw = '[!FAILURE]', rendered = ' Failure', highlight = 'RenderMarkdownError' },
|
|
||||||
fail = { raw = '[!FAIL]', rendered = ' Fail', highlight = 'RenderMarkdownError' },
|
|
||||||
missing = { raw = '[!MISSING]', rendered = ' Missing', highlight = 'RenderMarkdownError' },
|
|
||||||
danger = { raw = '[!DANGER]', rendered = ' Danger', highlight = 'RenderMarkdownError' },
|
|
||||||
error = { raw = '[!ERROR]', rendered = ' Error', highlight = 'RenderMarkdownError' },
|
|
||||||
bug = { raw = '[!BUG]', rendered = ' Bug', highlight = 'RenderMarkdownError' },
|
|
||||||
example = { raw = '[!EXAMPLE]', rendered = ' Example', highlight = 'RenderMarkdownHint' },
|
|
||||||
quote = { raw = '[!QUOTE]', rendered = ' Quote', highlight = 'RenderMarkdownQuote' },
|
|
||||||
cite = { raw = '[!CITE]', rendered = ' Cite', highlight = 'RenderMarkdownQuote' },
|
|
||||||
},
|
|
||||||
checkbox = {
|
|
||||||
enabled = true,
|
|
||||||
render_modes = false,
|
|
||||||
bullet = false,
|
|
||||||
right_pad = 1,
|
|
||||||
unchecked = {
|
|
||||||
icon = ' ',
|
|
||||||
highlight = 'RenderMarkdownUnchecked',
|
|
||||||
scope_highlight = nil,
|
|
||||||
},
|
|
||||||
checked = {
|
|
||||||
icon = ' ',
|
|
||||||
highlight = 'RenderMarkdownChecked',
|
|
||||||
scope_highlight = nil,
|
|
||||||
},
|
|
||||||
custom = {
|
|
||||||
todo = { raw = '[-]', rendered = ' ', highlight = 'RenderMarkdownTodo', scope_highlight = nil },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
bullet = {
|
|
||||||
enabled = true,
|
|
||||||
render_modes = false,
|
|
||||||
icons = { '●', '○', '◆', '◇' },
|
|
||||||
ordered_icons = function(ctx)
|
|
||||||
local value = vim.trim(ctx.value)
|
|
||||||
local index = tonumber(value:sub(1, #value - 1))
|
|
||||||
return ('%d.'):format(index > 1 and index or ctx.index)
|
|
||||||
end,
|
|
||||||
left_pad = 0,
|
|
||||||
right_pad = 0,
|
|
||||||
highlight = 'RenderMarkdownBullet',
|
|
||||||
scope_highlight = {},
|
|
||||||
},
|
|
||||||
quote = { icon = '▋' },
|
|
||||||
anti_conceal = {
|
|
||||||
enabled = false,
|
|
||||||
},
|
|
||||||
heading = {
|
|
||||||
icons = { ' ', ' ', ' ', ' ', ' ', ' ' },
|
|
||||||
backgrounds = {},
|
|
||||||
},
|
|
||||||
nested = false,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
return {
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = function()
|
|
||||||
require("telescope").setup({
|
|
||||||
-- defaults = {
|
|
||||||
-- borderchars = { "─", "│", "─", "│", "┌", "┐", "┘", "└" },
|
|
||||||
-- },
|
|
||||||
})
|
|
||||||
|
|
||||||
local tscope = require('telescope.builtin')
|
|
||||||
vim.keymap.set("n", "<leader>ff", function()
|
|
||||||
local cwd
|
|
||||||
if vim.bo.filetype == "oil" then
|
|
||||||
cwd = require("oil").get_current_dir()
|
|
||||||
else
|
|
||||||
cwd = vim.fn.expand("%:p:h")
|
|
||||||
end
|
|
||||||
tscope.find_files({ cwd = cwd })
|
|
||||||
end, { desc = "Find File" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>fp", function()
|
|
||||||
tscope.find_files({
|
|
||||||
cwd = vim.loop.cwd(),
|
|
||||||
})
|
|
||||||
end, { desc = "Find Project File" })
|
|
||||||
vim.keymap.set('n', '<leader>bb', tscope.buffers,
|
|
||||||
{ desc = "Find Buffer" })
|
|
||||||
vim.keymap.set('n', '<leader>fh', tscope.help_tags,
|
|
||||||
{ desc = "Find Help" })
|
|
||||||
vim.keymap.set('n', '<leader>fg', tscope.live_grep,
|
|
||||||
{ desc = "Find by Grep" })
|
|
||||||
vim.keymap.set('n', '<leader>fr', tscope.oldfiles,
|
|
||||||
{ desc = "Find Recent Files" })
|
|
||||||
vim.keymap.set('n', '<leader>lw', tscope.diagnostics,
|
|
||||||
{ desc = "Search Diagnostics" })
|
|
||||||
vim.keymap.set('n', '<leader>lg', tscope.lsp_references,
|
|
||||||
{ desc = "Search References" })
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/todo-comments.nvim",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
opts = {
|
|
||||||
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require('todo-comments').setup({})
|
|
||||||
vim.keymap.set('n', '<leader>ft', function()
|
|
||||||
vim.cmd('TodoTelescope')
|
|
||||||
end,
|
|
||||||
{ desc = "Find Buffer" })
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
return {
|
|
||||||
"OXY2DEV/ui.nvim",
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
require("ui").setup({
|
|
||||||
cmdline = {
|
|
||||||
enable = true,
|
|
||||||
row_offset = 0,
|
|
||||||
},
|
|
||||||
messages = {
|
|
||||||
enable = true,
|
|
||||||
},
|
|
||||||
popupmenu = {
|
|
||||||
enable = false,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
local spec = require("ui.spec")
|
|
||||||
|
|
||||||
spec.config.message.showcmd.modifier = function(_, lines)
|
|
||||||
return {
|
|
||||||
lines = { "" },
|
|
||||||
extmarks = { {} },
|
|
||||||
}
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
};
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
return {
|
|
||||||
'folke/which-key.nvim',
|
|
||||||
event = 'VeryLazy',
|
|
||||||
opts = {
|
|
||||||
icons = { mappings = false },
|
|
||||||
delay = 1000
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
'<leader>?',
|
|
||||||
function()
|
|
||||||
require('which-key').show({ global = false })
|
|
||||||
end,
|
|
||||||
desc = 'Buffer Local Keymaps',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
return {
|
|
||||||
"zk-org/zk-nvim",
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
require("zk").setup({
|
|
||||||
picker = "telescope",
|
|
||||||
lsp = {
|
|
||||||
config = {
|
|
||||||
name = "zk",
|
|
||||||
cmd = { "zk", "lsp" },
|
|
||||||
filetypes = { "markdown" },
|
|
||||||
},
|
|
||||||
auto_attach = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
keys = {
|
|
||||||
{ "<leader>zz", "<cmd>ZkNotes<cr>", desc = "Notes" },
|
|
||||||
{ "<leader>zl", "<cmd>ZkLinks<cr>", desc = "Links" },
|
|
||||||
{ "<leader>zb", "<cmd>ZkBacklinks<cr>", desc = "Backlinks" },
|
|
||||||
{ "<leader>zi", "<cmd>ZkInsertLink<cr>", desc = "Insert Link" },
|
|
||||||
{ "<leader>zd", "<cmd>ZkCd<cr>", desc = "Enter Directory" },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,760 +0,0 @@
|
|||||||
--[[
|
|
||||||
*Fancy* diagnostics for `Neovim`.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
```lua
|
|
||||||
require("diagnostics").setup();
|
|
||||||
```
|
|
||||||
|
|
||||||
You can then hit `D` to show diagnostics for the current line.
|
|
||||||
|
|
||||||
## Highlight groups
|
|
||||||
|
|
||||||
This script uses highlight groups provided by [highlights.lua](https://github.com/OXY2DEV/nvim/blob/main/lua/scripts/highlights.lua).
|
|
||||||
|
|
||||||
The used groups are,
|
|
||||||
- `FancyDiagnostic`, Default group for diagnostics.
|
|
||||||
- `FancyDiagnosticIcon`, Default group for the icons of diagnostics.
|
|
||||||
- `FancyDiagnosticInfo`, Group for `information` diagnostics.
|
|
||||||
- `FancyDiagnosticInfoIcon`, Group for the icons of `information` diagnostics.
|
|
||||||
- `FancyDiagnosticHint`, Group for `hint` diagnostics.
|
|
||||||
- `FancyDiagnosticHintIcon`, Group for the icons of `hint` diagnostics.
|
|
||||||
- `FancyDiagnosticWarn`, Group for `warning` diagnostics.
|
|
||||||
- `FancyDiagnosticWarnIcon`, Group for the icons of `warning` diagnostics.
|
|
||||||
- `FancyDiagnosticError`, Group for `error` diagnostics.
|
|
||||||
- `FancyDiagnosticErrorIcon`, Group for the icons of `error` diagnostics.
|
|
||||||
|
|
||||||
## Dependencies
|
|
||||||
|
|
||||||
- [beacon.lua](https://github.com/OXY2DEV/nvim/blob/main/lua/scripts/beacon.lua), For highlighting cursor.
|
|
||||||
- [highlights.lua](https://github.com/OXY2DEV/nvim/blob/main/lua/scripts/highlights.lua), For highlight groups.
|
|
||||||
- [types/diagnostics.lua](https://github.com/OXY2DEV/nvim/blob/main/lua/scripts/types/diagnostics.lua), For type definition.
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
Use `setup()` for setting configuration. See [types/diagnostics.lua#diagnostics.config](https://github.com/OXY2DEV/nvim/blob/main/lua/scripts/types/diagnostics.lua#L3-L19) for the type definition.
|
|
||||||
]]
|
|
||||||
local diagnostics = {};
|
|
||||||
|
|
||||||
---@param level string
|
|
||||||
---@param icon string
|
|
||||||
---@return table
|
|
||||||
local function handle_diagnostic_level (level, icon)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
local default = string.format("FancyDiagnostic%s", "Default");
|
|
||||||
local default_icon_hl = string.format("FancyDiagnostic%sIcon", "Default");
|
|
||||||
|
|
||||||
local bg = string.format("FancyDiagnostic%s", level);
|
|
||||||
local icon_hl = string.format("FancyDiagnostic%sIcon", level);
|
|
||||||
|
|
||||||
return {
|
|
||||||
width = 3,
|
|
||||||
|
|
||||||
line_hl_group = function (_, current)
|
|
||||||
return current and bg or default;
|
|
||||||
end,
|
|
||||||
icon = function (_, current)
|
|
||||||
return {
|
|
||||||
{ "▌", current and icon_hl or default_icon_hl },
|
|
||||||
{ icon, current and icon_hl or default_icon_hl },
|
|
||||||
{ " ", current and bg or default },
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
padding = function (_, current)
|
|
||||||
return {
|
|
||||||
{ "▌", current and icon_hl or default_icon_hl },
|
|
||||||
{ " ", current and icon_hl or default_icon_hl },
|
|
||||||
{ " ", current and bg or default },
|
|
||||||
}
|
|
||||||
end
|
|
||||||
};
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
---@class diagnostics.config
|
|
||||||
diagnostics.config = {
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
keymap = "D",
|
|
||||||
|
|
||||||
decoration_width = 4,
|
|
||||||
width = function (items)
|
|
||||||
local max = math.floor(vim.o.columns * 0.4);
|
|
||||||
local use = 1
|
|
||||||
|
|
||||||
for _, item in ipairs(items) do
|
|
||||||
local width = vim.fn.strdisplaywidth(item.message or "");
|
|
||||||
|
|
||||||
use = math.min(
|
|
||||||
math.max(width, 0),
|
|
||||||
max
|
|
||||||
);
|
|
||||||
end
|
|
||||||
|
|
||||||
return use;
|
|
||||||
end,
|
|
||||||
|
|
||||||
max_height = function ()
|
|
||||||
return math.floor(vim.o.lines * 0.4);
|
|
||||||
end,
|
|
||||||
|
|
||||||
beacon = {
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
default = {
|
|
||||||
from = function ()
|
|
||||||
local fg = vim.api.nvim_get_hl(0, { name = "@comment", link = false }).fg;
|
|
||||||
return fg and string.format("#%06x", fg) or "#9399b2";
|
|
||||||
end,
|
|
||||||
to = function ()
|
|
||||||
local bg = vim.api.nvim_get_hl(0, { name = vim.o.statusline and "Cursorline" or "Normal", link = false }).bg;
|
|
||||||
return bg and string.format("#%06x", bg) or "#1e1e2e";
|
|
||||||
end,
|
|
||||||
|
|
||||||
steps = 10,
|
|
||||||
interval = 100,
|
|
||||||
},
|
|
||||||
|
|
||||||
[vim.diagnostic.severity.INFO] = {
|
|
||||||
from = function ()
|
|
||||||
local fg = vim.api.nvim_get_hl(0, { name = "FancyDiagnosticInfoIcon", link = false }).fg;
|
|
||||||
return fg and string.format("#%06x", fg) or "#94e2d5";
|
|
||||||
end
|
|
||||||
},
|
|
||||||
[vim.diagnostic.severity.HINT] = {
|
|
||||||
from = function ()
|
|
||||||
local fg = vim.api.nvim_get_hl(0, { name = "FancyDiagnosticHintIcon", link = false }).fg;
|
|
||||||
return fg and string.format("#%06x", fg) or "#94e2d5";
|
|
||||||
end
|
|
||||||
},
|
|
||||||
[vim.diagnostic.severity.WARN] = {
|
|
||||||
from = function ()
|
|
||||||
local fg = vim.api.nvim_get_hl(0, { name = "FancyDiagnosticWarnIcon", link = false }).fg;
|
|
||||||
return fg and string.format("#%06x", fg) or "#f9e2af";
|
|
||||||
end
|
|
||||||
},
|
|
||||||
[vim.diagnostic.severity.ERROR] = {
|
|
||||||
from = function ()
|
|
||||||
local fg = vim.api.nvim_get_hl(0, { name = "FancyDiagnosticErrorIcon", link = false }).fg;
|
|
||||||
return fg and string.format("#%06x", fg) or "#f38ba8";
|
|
||||||
end
|
|
||||||
},
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
},
|
|
||||||
|
|
||||||
decorations = {
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
[vim.diagnostic.severity.INFO] = handle_diagnostic_level("Info", " "),
|
|
||||||
[vim.diagnostic.severity.HINT] = handle_diagnostic_level("Hint", " "),
|
|
||||||
[vim.diagnostic.severity.WARN] = handle_diagnostic_level("Warn", " "),
|
|
||||||
[vim.diagnostic.severity.ERROR] = handle_diagnostic_level("Error", " "),
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
},
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
};
|
|
||||||
|
|
||||||
--[[ Evaluates `val`. ]]
|
|
||||||
---@param val any
|
|
||||||
---@param ... any
|
|
||||||
---@return any
|
|
||||||
local function eval(val, ...)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
if type(val) ~= "function" then
|
|
||||||
return val;
|
|
||||||
else
|
|
||||||
local can_call, new_val = pcall(val, ...);
|
|
||||||
|
|
||||||
if can_call and new_val ~= nil then
|
|
||||||
return new_val;
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
--[[ Gets diagnostic item `decoration`. ]]
|
|
||||||
---@param level vim.diagnostic.Severity | "default" Diagnostic severity.
|
|
||||||
---@param ... any Extra arguments to be used for value evaluation.
|
|
||||||
---@return diagnostics.decorations__static decoration Static version of the diagnostic item's decoration.
|
|
||||||
local function get_decorations (level, ...)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
local output = {};
|
|
||||||
|
|
||||||
for k, v in pairs(diagnostics.config.decorations[level]) do
|
|
||||||
output[k] = eval(v, ...);
|
|
||||||
end
|
|
||||||
|
|
||||||
return output;
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
--[[ Gets `beacon` configuration. ]]
|
|
||||||
---@param level? vim.diagnostic.Severity | "default" Diagnostic level.
|
|
||||||
---@param ... any Extra arguments to be used for value evaluation.
|
|
||||||
---@return table?
|
|
||||||
local function get_beacon_config (level, ...)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
if not level or not diagnostics.config.beacon then
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
local output = {};
|
|
||||||
|
|
||||||
for k, v in pairs(diagnostics.config.beacon[level]) do
|
|
||||||
output[k] = eval(v, ...);
|
|
||||||
end
|
|
||||||
|
|
||||||
return output;
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
--[[ Turns given **virtual text** into **format string** for the statusline. ]]
|
|
||||||
---@param virt_text diagnostics.decoration_fragment[] Virtual text.
|
|
||||||
---@return string sign Virtual text as a sign(use in `statuscolumn`, `statusline`, `tabline` or `winbar`)
|
|
||||||
local function virt_text_to_sign (virt_text)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
local output = "";
|
|
||||||
|
|
||||||
for _, item in ipairs(virt_text) do
|
|
||||||
if type(item[2]) == "string" then
|
|
||||||
output = output .. string.format("%%#%s#%s", item[2], item[1]) .. "%#Normal#";
|
|
||||||
else
|
|
||||||
output = output .. item[1];
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return output;
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
---@type integer Decoration namespace.
|
|
||||||
diagnostics.ns = vim.api.nvim_create_namespace("fancy_diagnostics");
|
|
||||||
|
|
||||||
---@type integer, integer Diagnostics buffer & window.
|
|
||||||
diagnostics.buffer, diagnostics.window = nil, nil;
|
|
||||||
|
|
||||||
--[[ Which *quadrant* the diagnostics window is currently using? ]]
|
|
||||||
---@type
|
|
||||||
---| "top_left"
|
|
||||||
---| "top_right"
|
|
||||||
---| "bottom_left"
|
|
||||||
---| "bottom_right"
|
|
||||||
---| "center"
|
|
||||||
diagnostics.quad = nil;
|
|
||||||
|
|
||||||
---@type diagnostics.signs.entry[]
|
|
||||||
diagnostics.sign_data = {};
|
|
||||||
|
|
||||||
--[[ Prepares the buffer for the diagnostics window. ]]
|
|
||||||
diagnostics.__prepare = function ()
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
if not diagnostics.buffer or not vim.api.nvim_buf_is_valid(diagnostics.buffer) then
|
|
||||||
diagnostics.buffer = vim.api.nvim_create_buf(false, true);
|
|
||||||
end
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
--[[ Updates the *quadrant* which is being used by the diagnostics window. ]]
|
|
||||||
---@param quad
|
|
||||||
---| "top_left"
|
|
||||||
---| "top_right"
|
|
||||||
---| "bottom_left"
|
|
||||||
---| "bottom_right"
|
|
||||||
---| "center"
|
|
||||||
---@param state boolean
|
|
||||||
diagnostics.update_quad = function (quad, state)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
if not _G.__used_quads then
|
|
||||||
-- NIT: Should this set a default state value?
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
_G.__used_quads[quad] = state;
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
--[[ Returns `{opts}` for `nvim_open_win()` based on the parameters. ]]
|
|
||||||
---@param window integer Window ID.
|
|
||||||
---@param w integer Window width.
|
|
||||||
---@param h integer Window height.
|
|
||||||
---@return string | string[] border Window border.
|
|
||||||
---@return "editor" | "cursor" relative Relative position for floating window.
|
|
||||||
---@return "NE" | "NW" | "SE" | "SW" anchor Anchor position.
|
|
||||||
---@return integer row Window position in Y-axis.
|
|
||||||
---@return integer col Window position in X-axis.
|
|
||||||
diagnostics.__win_args = function (window, w, h)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
---@type [ integer, integer ]
|
|
||||||
local cursor = vim.api.nvim_win_get_cursor(window);
|
|
||||||
---@type table<string, integer>
|
|
||||||
local screenpos = vim.fn.screenpos(window, cursor[1], cursor[2]);
|
|
||||||
|
|
||||||
local screen_width = vim.o.columns - 2;
|
|
||||||
local screen_height = vim.o.lines - vim.o.cmdheight - 2;
|
|
||||||
|
|
||||||
local quad_pref = { "bottom_right", "top_right", "bottom_left", "top_left" };
|
|
||||||
local quads = {
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
center = {
|
|
||||||
relative = "editor",
|
|
||||||
anchor = "NW",
|
|
||||||
|
|
||||||
row = math.ceil((vim.o.lines - h) / 2),
|
|
||||||
col = math.ceil((vim.o.columns - w) / 2),
|
|
||||||
border = "rounded"
|
|
||||||
},
|
|
||||||
|
|
||||||
top_left = {
|
|
||||||
condition = function ()
|
|
||||||
if h >= screenpos.row then
|
|
||||||
-- Not enough space above.
|
|
||||||
return false;
|
|
||||||
elseif screenpos.curscol <= w then
|
|
||||||
-- Not enough space before.
|
|
||||||
return false;
|
|
||||||
end
|
|
||||||
|
|
||||||
return true;
|
|
||||||
end,
|
|
||||||
|
|
||||||
relative = "cursor",
|
|
||||||
border = { "╭", "─", "╮", "│", "┤", "─", "╰", "│" },
|
|
||||||
anchor = "SE",
|
|
||||||
row = 0,
|
|
||||||
col = 1
|
|
||||||
},
|
|
||||||
top_right = {
|
|
||||||
condition = function ()
|
|
||||||
if h >= screenpos.row then
|
|
||||||
-- Not enough space above.
|
|
||||||
return false;
|
|
||||||
elseif screenpos.curscol + w > screen_width then
|
|
||||||
-- Not enough space after.
|
|
||||||
return false;
|
|
||||||
end
|
|
||||||
|
|
||||||
return true;
|
|
||||||
end,
|
|
||||||
|
|
||||||
relative = "cursor",
|
|
||||||
border = { "╭", "─", "╮", "│", "╯", "─", "├", "│" },
|
|
||||||
anchor = "SW",
|
|
||||||
row = 0,
|
|
||||||
col = 0
|
|
||||||
},
|
|
||||||
|
|
||||||
bottom_left = {
|
|
||||||
condition = function ()
|
|
||||||
if screenpos.row + h > screen_height then
|
|
||||||
-- Not enough space below.
|
|
||||||
return false;
|
|
||||||
elseif screenpos.curscol <= w then
|
|
||||||
-- Not enough space before.
|
|
||||||
return false;
|
|
||||||
end
|
|
||||||
|
|
||||||
return true;
|
|
||||||
end,
|
|
||||||
|
|
||||||
relative = "cursor",
|
|
||||||
border = { "╭", "─", "┤", "│", "╯", "─", "╰", "│" },
|
|
||||||
anchor = "NE",
|
|
||||||
row = 1,
|
|
||||||
col = 1
|
|
||||||
},
|
|
||||||
bottom_right = {
|
|
||||||
condition = function ()
|
|
||||||
if screenpos.row + h > screen_height then
|
|
||||||
-- Not enough space below.
|
|
||||||
return false;
|
|
||||||
elseif screenpos.curscol + w > screen_width then
|
|
||||||
-- Nor enough space after.
|
|
||||||
return false;
|
|
||||||
end
|
|
||||||
|
|
||||||
return true;
|
|
||||||
end,
|
|
||||||
|
|
||||||
relative = "cursor",
|
|
||||||
border = { "├", "─", "╮", "│", "╯", "─", "╰", "│" },
|
|
||||||
anchor = "NW",
|
|
||||||
row = 1,
|
|
||||||
col = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
};
|
|
||||||
|
|
||||||
for _, pref in ipairs(quad_pref) do
|
|
||||||
if _G.__used_quads and _G.__used_quads[pref] == true then
|
|
||||||
goto continue;
|
|
||||||
elseif not quads[pref] then
|
|
||||||
goto continue;
|
|
||||||
end
|
|
||||||
|
|
||||||
local quad = quads[pref];
|
|
||||||
local ran_cond, cond = pcall(quad.condition);
|
|
||||||
|
|
||||||
if ran_cond and cond then
|
|
||||||
diagnostics.quad = pref;
|
|
||||||
return quad.border, quad.cursor, quad.anchor, quad.row, quad.col;
|
|
||||||
end
|
|
||||||
|
|
||||||
::continue::
|
|
||||||
end
|
|
||||||
|
|
||||||
diagnostics.quad = "center";
|
|
||||||
|
|
||||||
local fallback = quads.center;
|
|
||||||
return fallback.border, fallback.cursor, fallback.anchor, fallback.row, fallback.col;
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
--[[ Closes diagnostics window. ]]
|
|
||||||
diagnostics.close = function ()
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
if diagnostics.window and vim.api.nvim_win_is_valid(diagnostics.window) then
|
|
||||||
pcall(vim.api.nvim_win_close, diagnostics.window, true);
|
|
||||||
diagnostics.window = nil;
|
|
||||||
|
|
||||||
if diagnostics.quad then
|
|
||||||
diagnostics.update_quad(diagnostics.quad, false);
|
|
||||||
diagnostics.quad = nil;
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
---@type beacon.instance Beacon instance to use for the Cursor.
|
|
||||||
diagnostics.__beacon = nil;
|
|
||||||
|
|
||||||
--[[ External integrations. ]]
|
|
||||||
---@param window integer Window Id.
|
|
||||||
---@param beacon_config beacon.instance.config Configuration for `beacon`.
|
|
||||||
diagnostics.__integration = function (window, beacon_config)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
-- Markdown rendering.
|
|
||||||
if package.loaded["markview"] then
|
|
||||||
package.loaded["markview"].render(diagnostics.buffer, {
|
|
||||||
enable = true,
|
|
||||||
hybrid_mode = false
|
|
||||||
}, {
|
|
||||||
markdown_inline = {
|
|
||||||
inline_codes = {
|
|
||||||
virtual = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Beacon.
|
|
||||||
if package.loaded["scripts.beacon"] then
|
|
||||||
if not diagnostics.__beacon then
|
|
||||||
diagnostics.__beacon = require("scripts.beacon").new(window, beacon_config);
|
|
||||||
else
|
|
||||||
diagnostics.__beacon:update(window, beacon_config);
|
|
||||||
end
|
|
||||||
|
|
||||||
diagnostics.__beacon:start();
|
|
||||||
end
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
--- Custom statuscolumn.
|
|
||||||
---@return string
|
|
||||||
_G.fancy_diagnostics_statuscolumn = function ()
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
if vim.tbl_isempty(diagnostics.sign_data) then
|
|
||||||
return "";
|
|
||||||
end
|
|
||||||
|
|
||||||
local lnum = vim.v.lnum;
|
|
||||||
|
|
||||||
local data = diagnostics.sign_data[lnum];
|
|
||||||
local start = data.start_row;
|
|
||||||
|
|
||||||
if not data then
|
|
||||||
return "";
|
|
||||||
elseif vim.v.virtnum == 0 and start == lnum then
|
|
||||||
return virt_text_to_sign(data.icon);
|
|
||||||
else
|
|
||||||
return virt_text_to_sign(data.padding or data.icon);
|
|
||||||
end
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
--- Hover function for diagnostics.
|
|
||||||
---@param window integer
|
|
||||||
diagnostics.hover = function (window)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
window = window or vim.api.nvim_get_current_win();
|
|
||||||
|
|
||||||
---@type integer Source buffer.
|
|
||||||
local buffer = vim.api.nvim_win_get_buf(window);
|
|
||||||
---@type [ integer, integer ]
|
|
||||||
local cursor = vim.api.nvim_win_get_cursor(window);
|
|
||||||
|
|
||||||
local items = vim.diagnostic.get(buffer, { lnum = cursor[1] - 1 });
|
|
||||||
|
|
||||||
---@type boolean Is the window already open?
|
|
||||||
local already_open = diagnostics.window and vim.api.nvim_win_is_valid(diagnostics.window);
|
|
||||||
|
|
||||||
if #items == 0 then
|
|
||||||
-- No diagnostics available.
|
|
||||||
diagnostics.close();
|
|
||||||
vim.api.nvim_echo({
|
|
||||||
{ " diagnostics.lua ", "DiagnosticVirtualTextWarn" },
|
|
||||||
{ ": ", "@comment" },
|
|
||||||
{ "No diagnostic under cursor", "@comment" },
|
|
||||||
}, true, {});
|
|
||||||
return;
|
|
||||||
elseif already_open then
|
|
||||||
vim.api.nvim_set_current_win(diagnostics.window);
|
|
||||||
return;
|
|
||||||
end
|
|
||||||
|
|
||||||
if diagnostics.quad then
|
|
||||||
-- If the old window's quadrant wasn't freed, we free it here.
|
|
||||||
diagnostics.update_quad(diagnostics.quad, false)
|
|
||||||
end
|
|
||||||
|
|
||||||
diagnostics.__prepare();
|
|
||||||
vim.bo[diagnostics.buffer].ft = "markdown";
|
|
||||||
|
|
||||||
-- Clear old decorations.
|
|
||||||
vim.api.nvim_buf_clear_namespace(diagnostics.buffer, diagnostics.ns, 0, -1);
|
|
||||||
vim.api.nvim_buf_set_lines(diagnostics.buffer, 0, -1, false, {});
|
|
||||||
|
|
||||||
local W = eval(diagnostics.config.width, items);
|
|
||||||
local D = eval(diagnostics.config.decoration_width, items);
|
|
||||||
|
|
||||||
---@type table Configuration used for calculating window height.
|
|
||||||
local height_calc_config = {
|
|
||||||
relative = "editor",
|
|
||||||
|
|
||||||
row = 0, col = 1,
|
|
||||||
width = W - D, height = 2,
|
|
||||||
|
|
||||||
style = "minimal",
|
|
||||||
hide = true,
|
|
||||||
};
|
|
||||||
|
|
||||||
if not diagnostics.window or not vim.api.nvim_win_is_valid(diagnostics.window) then
|
|
||||||
diagnostics.window = vim.api.nvim_open_win(diagnostics.buffer, false, height_calc_config);
|
|
||||||
else
|
|
||||||
vim.api.nvim_win_set_config(diagnostics.window, height_calc_config);
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.wo[diagnostics.window].wrap = true;
|
|
||||||
vim.wo[diagnostics.window].linebreak = true;
|
|
||||||
vim.wo[diagnostics.window].breakindent = true;
|
|
||||||
|
|
||||||
local diagnostic_lines = 0;
|
|
||||||
|
|
||||||
---@type integer Line where the cursor should be placed.
|
|
||||||
local cursor_y = 1;
|
|
||||||
local ranges = {};
|
|
||||||
|
|
||||||
local start_row = 1;
|
|
||||||
---@type vim.diagnostic.Severity | nil
|
|
||||||
local level;
|
|
||||||
|
|
||||||
diagnostics.sign_data = {};
|
|
||||||
|
|
||||||
for i, item in ipairs(items) do
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
local from = i == 1 and 0 or -1;
|
|
||||||
local lines = vim.split(item.message, "\n", { trimempty = true })
|
|
||||||
|
|
||||||
local start = item.col;
|
|
||||||
local stop = item.end_col;
|
|
||||||
|
|
||||||
local current = false;
|
|
||||||
|
|
||||||
if cursor[2] >= start and cursor[2] <= stop then
|
|
||||||
cursor_y = i;
|
|
||||||
current = true;
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_buf_set_lines(diagnostics.buffer, from, -1, false, lines);
|
|
||||||
local decorations = get_decorations(item.severity, item, current);
|
|
||||||
|
|
||||||
ranges[i] = { item.lnum, item.col };
|
|
||||||
|
|
||||||
vim.api.nvim_buf_set_extmark(diagnostics.buffer, diagnostics.ns, diagnostic_lines, 0, {
|
|
||||||
end_row = diagnostic_lines + #lines,
|
|
||||||
line_hl_group = decorations.line_hl_group,
|
|
||||||
});
|
|
||||||
|
|
||||||
diagnostic_lines = diagnostic_lines + #lines;
|
|
||||||
|
|
||||||
if current == true and ( not level or item.severity < level ) then
|
|
||||||
level = item.severity;
|
|
||||||
end
|
|
||||||
|
|
||||||
for _ = 1, #lines do
|
|
||||||
-- Signs
|
|
||||||
table.insert(diagnostics.sign_data, {
|
|
||||||
start_row = start_row,
|
|
||||||
|
|
||||||
current = current,
|
|
||||||
width = decorations.width,
|
|
||||||
|
|
||||||
icon = decorations.icon,
|
|
||||||
line_hl_group = decorations.line_hl_group,
|
|
||||||
padding = decorations.padding,
|
|
||||||
});
|
|
||||||
end
|
|
||||||
|
|
||||||
start_row = start_row + #lines;
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
local beacon_config = vim.tbl_extend("force",
|
|
||||||
get_beacon_config("default", {}, true),
|
|
||||||
get_beacon_config(level, {}, true) or {}
|
|
||||||
);
|
|
||||||
|
|
||||||
local H = vim.api.nvim_win_text_height(diagnostics.window, { start_row = 0, end_row = -1 }).all;
|
|
||||||
|
|
||||||
local _, relative, anchor, row, col = diagnostics.__win_args(window, W, H);
|
|
||||||
|
|
||||||
local win_config = {
|
|
||||||
relative = relative or "cursor",
|
|
||||||
|
|
||||||
row = row or 0, col = col or 0,
|
|
||||||
width = W, height = H,
|
|
||||||
|
|
||||||
anchor = anchor,
|
|
||||||
border = "none",
|
|
||||||
|
|
||||||
style = "minimal",
|
|
||||||
hide = false,
|
|
||||||
};
|
|
||||||
|
|
||||||
vim.api.nvim_win_set_config(diagnostics.window, win_config);
|
|
||||||
vim.api.nvim_win_set_cursor(diagnostics.window, { cursor_y, 0 });
|
|
||||||
|
|
||||||
-- Update quadrant state.
|
|
||||||
diagnostics.update_quad(diagnostics.quad, true);
|
|
||||||
|
|
||||||
-- Set necessary options.
|
|
||||||
vim.wo[diagnostics.window].signcolumn = "no";
|
|
||||||
vim.wo[diagnostics.window].statuscolumn = "%!v:lua.fancy_diagnostics_statuscolumn()";
|
|
||||||
|
|
||||||
vim.wo[diagnostics.window].conceallevel = 3;
|
|
||||||
vim.wo[diagnostics.window].concealcursor = "ncv";
|
|
||||||
|
|
||||||
vim.wo[diagnostics.window].winhl = "FloatBorder:@comment,Normal:Normal";
|
|
||||||
|
|
||||||
diagnostics.__integration(window, beacon_config);
|
|
||||||
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
|
|
||||||
vim.api.nvim_buf_set_keymap(diagnostics.buffer, "n", "<CR>", "", {
|
|
||||||
desc = "Go to diagnostic location",
|
|
||||||
callback = function ()
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
---@type [ integer, integer ] Selected item.
|
|
||||||
local _cursor = vim.api.nvim_win_get_cursor(diagnostics.window);
|
|
||||||
---@type [ integer, integer ]? Diagnostic location.
|
|
||||||
local location = ranges[_cursor[1]];
|
|
||||||
|
|
||||||
if location then
|
|
||||||
location[1] = location[1] + 1;
|
|
||||||
|
|
||||||
vim.api.nvim_win_set_cursor(window, location);
|
|
||||||
vim.api.nvim_set_current_win(window);
|
|
||||||
|
|
||||||
diagnostics.close();
|
|
||||||
end
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
});
|
|
||||||
|
|
||||||
vim.api.nvim_buf_set_keymap(diagnostics.buffer, "n", "q", "", {
|
|
||||||
desc = "Exit diagnostics window",
|
|
||||||
callback = function ()
|
|
||||||
pcall(vim.api.nvim_set_current_win, window);
|
|
||||||
diagnostics.close();
|
|
||||||
end
|
|
||||||
});
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
--- Configuration for the diagnostics module.
|
|
||||||
---@param config? diagnostics.config
|
|
||||||
diagnostics.setup = function (config)
|
|
||||||
---|fS
|
|
||||||
|
|
||||||
if type(config) == "table" then
|
|
||||||
diagnostics.config = vim.tbl_extend("force", diagnostics.config, config);
|
|
||||||
end
|
|
||||||
|
|
||||||
if diagnostics.config.keymap then
|
|
||||||
vim.api.nvim_set_keymap("n", diagnostics.config.keymap, "", {
|
|
||||||
callback = diagnostics.hover
|
|
||||||
});
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({
|
|
||||||
"CursorMoved", "CursorMovedI"
|
|
||||||
}, {
|
|
||||||
callback = function ()
|
|
||||||
local win = vim.api.nvim_get_current_win();
|
|
||||||
|
|
||||||
if diagnostics.window and win ~= diagnostics.window then
|
|
||||||
diagnostics.close();
|
|
||||||
|
|
||||||
if diagnostics.quad then
|
|
||||||
diagnostics.update_quad(diagnostics.quad, false);
|
|
||||||
diagnostics.quad = nil;
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
});
|
|
||||||
|
|
||||||
---|fE
|
|
||||||
end
|
|
||||||
|
|
||||||
return diagnostics;
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require("scripts.diagnostics").setup({
|
|
||||||
keymap = '<leader>le'
|
|
||||||
-- TODO: Find out how to which-key this
|
|
||||||
})
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
clang
|
||||||
|
clang-tools
|
||||||
|
bear
|
||||||
|
# valgrind # BROKEN on darwin
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./nix.nix
|
||||||
|
./git.nix
|
||||||
|
./lua.nix
|
||||||
|
./c.nix
|
||||||
|
./rust.nix
|
||||||
|
./typst.nix
|
||||||
|
./markdown.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
settings.user = {
|
||||||
|
name = "venomade";
|
||||||
|
email = "venomade@venomade.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
lua-language-server
|
||||||
|
lua5_4
|
||||||
|
luaPackages.fennel
|
||||||
|
fnlfmt
|
||||||
|
fennel-ls
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
zk
|
||||||
|
harper
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nixd
|
||||||
|
nixfmt
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
rustc
|
||||||
|
cargo
|
||||||
|
rust-analyzer
|
||||||
|
clippy
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
typst
|
||||||
|
typstyle
|
||||||
|
tinymist
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
alias rgf='rg --files | rg'
|
|
||||||
alias ls='eza --icons=auto'
|
|
||||||
alias md='mkdir'
|
|
||||||
alias cat='bat -pp'
|
|
||||||
alias man='batman'
|
|
||||||
alias diff='batdiff'
|
|
||||||
alias fzf="fzf --preview 'bat --style=numbers --color=always {}'"
|
|
||||||
alias vi="nvim"
|
|
||||||
alias vim="nvim"
|
|
||||||
alias em="emacs -nw"
|
|
||||||
alias et="emacsclient -t"
|
|
||||||
alias ec="emacsclient -c"
|
|
||||||
alias sbcl="ros run --"
|
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.bash.enable = true;
|
||||||
|
programs.bat = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs.bat-extras; [ batdiff batman ];
|
||||||
|
};
|
||||||
|
programs.eza = {
|
||||||
|
enable = true;
|
||||||
|
icons = null;
|
||||||
|
};
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
format = lib.concatStringsSep " " [
|
||||||
|
"$nix_shell"
|
||||||
|
"$directory"
|
||||||
|
"$git_branch"
|
||||||
|
"$git_status"
|
||||||
|
"$git_commit"
|
||||||
|
"$status"
|
||||||
|
"$fill"
|
||||||
|
"$lua"
|
||||||
|
"$rust"
|
||||||
|
"$golang"
|
||||||
|
"$haskell"
|
||||||
|
"$jobs"
|
||||||
|
"$cmd_duration"
|
||||||
|
"$line_break"
|
||||||
|
"$character"];
|
||||||
|
|
||||||
|
nix_shell.format = "[nix]($style)";
|
||||||
|
directory.truncation_length = 2;
|
||||||
|
git_branch = {
|
||||||
|
format = "[$branch(:$remote_branch)]($style)";
|
||||||
|
ignore_branches = ["master" "main"];
|
||||||
|
};
|
||||||
|
git_status.format = "([\\[$all_status$ahead_behind\\]]($style))";
|
||||||
|
git_commit.format = "[\\[#$hash$tag\\]]($style)";
|
||||||
|
status = {
|
||||||
|
format = "[\\[$status\\]]($style)";
|
||||||
|
disabled = false;
|
||||||
|
};
|
||||||
|
fill.symbol = " ";
|
||||||
|
lua = {
|
||||||
|
format = "[($version)]($style)";
|
||||||
|
version_format = "$major.$minor";
|
||||||
|
detect_files = [".lua-version" ".luarc.json"];
|
||||||
|
};
|
||||||
|
rust = {
|
||||||
|
format = "[($version)]($style)";
|
||||||
|
version_format = "$major.$minor";
|
||||||
|
};
|
||||||
|
haskell.format = "[($ghc_version)]($style)";
|
||||||
|
cmd_duration.format = "[$duration]($style) ";
|
||||||
|
character = {
|
||||||
|
success_symbol = "[>](bold #a6e3a1)";
|
||||||
|
error_symbol = "[>](bold #f38ba8)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
gvc() {
|
|
||||||
if [[ $1 == "clone" ]]; then
|
|
||||||
shift
|
|
||||||
git clone git@git.venomade.com:"$@"
|
|
||||||
else
|
|
||||||
ssh git@git.venomade.com "$@"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function y() {
|
|
||||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
|
||||||
command yazi "$@" --cwd-file="$tmp"
|
|
||||||
IFS= read -r -d '' cwd < "$tmp"
|
|
||||||
[ "$cwd" != "$PWD" ] && [ -d "$cwd" ] && builtin cd -- "$cwd"
|
|
||||||
rm -f -- "$tmp"
|
|
||||||
}
|
|
||||||
|
|
||||||
function pcd() {
|
|
||||||
cd "$(project)"
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
export EDITOR=kak
|
|
||||||
export ZK_NOTEBOOK_DIR=$HOME/Documents/Notes
|
|
||||||
export XDG_CONFIG_HOME=$HOME/.config
|
|
||||||
export GOPATH=$HOME/.go
|
|
||||||
export LIMA_SHELL=/bin/zsh
|
|
||||||
export LANGUAGE=en_GB
|
|
||||||
export CPATH=/usr/include
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
# Get editor completions based on the config schema
|
|
||||||
"$schema" = 'https://starship.rs/config-schema.json'
|
|
||||||
|
|
||||||
# Inserts a blank line between shell prompts
|
|
||||||
add_newline = true
|
|
||||||
|
|
||||||
format = """
|
|
||||||
$nix_shell\
|
|
||||||
$directory\
|
|
||||||
$git_branch\
|
|
||||||
$git_status\
|
|
||||||
$git_commit\
|
|
||||||
$status\
|
|
||||||
$fill\
|
|
||||||
$lua\
|
|
||||||
$rust\
|
|
||||||
$golang\
|
|
||||||
$haskell\
|
|
||||||
$jobs\
|
|
||||||
$cmd_duration\
|
|
||||||
$line_break\
|
|
||||||
$character"""
|
|
||||||
|
|
||||||
#[custom.linux]
|
|
||||||
#format = '[$symbol \[$output\]]($style) '
|
|
||||||
#symbol = ' '
|
|
||||||
#command = "cat /etc/os-release | grep '^ID=' | sed 's/ID=//' | sed 's/^./\\U&/'"
|
|
||||||
#os = 'linux'
|
|
||||||
#style = 'bold #f5e0dc'
|
|
||||||
#when = true
|
|
||||||
|
|
||||||
[nix_shell]
|
|
||||||
format = '[$symbol]($style) '
|
|
||||||
symbol = ' '
|
|
||||||
style = 'bold #74c7ec'
|
|
||||||
|
|
||||||
[directory]
|
|
||||||
style = '#b2bbfb'
|
|
||||||
truncation_length = 2
|
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
symbol = ' '
|
|
||||||
format = '[$symbol$branch(:$remote_branch)]($style) '
|
|
||||||
style = 'bold #eba0ac'
|
|
||||||
ignore_branches = ['master', 'main']
|
|
||||||
|
|
||||||
[git_status]
|
|
||||||
format = '([\[$all_status$ahead_behind\]]($style) )'
|
|
||||||
style = 'bold #89dceb'
|
|
||||||
|
|
||||||
[git_commit]
|
|
||||||
format = '[\[#$hash$tag\]]($style) '
|
|
||||||
style = 'bold #94e2d5'
|
|
||||||
|
|
||||||
[status]
|
|
||||||
format = '[\[$status\]]($style)'
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[fill]
|
|
||||||
symbol = ' '
|
|
||||||
|
|
||||||
[lua]
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '$major.$minor'
|
|
||||||
symbol = ' '
|
|
||||||
detect_files = ['.lua-version', '.luarc.json']
|
|
||||||
|
|
||||||
[rust]
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '$major.$minor'
|
|
||||||
symbol = ' '
|
|
||||||
style = 'bold #fab387'
|
|
||||||
|
|
||||||
[golang]
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '$major.$minor'
|
|
||||||
symbol = ' '
|
|
||||||
style = 'bold #94e2d5'
|
|
||||||
|
|
||||||
[haskell]
|
|
||||||
format = '[$symbol($ghc_version )]($style)'
|
|
||||||
symbol = ' '
|
|
||||||
style = 'bold #cba6f7'
|
|
||||||
|
|
||||||
[cmd_duration]
|
|
||||||
format = '[ $duration]($style) '
|
|
||||||
style = 'bold #f9e2af'
|
|
||||||
|
|
||||||
# Replace the '❯' symbol in the prompt with '➜'
|
|
||||||
[character] # The name of the module we are configuring is 'character'
|
|
||||||
success_symbol = '[](bold #a6e3a1)'
|
|
||||||
error_symbol = '[](bold #f38ba8)'
|
|
||||||
|
|
||||||
# TODO
|
|
||||||
# - [direnv]
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
set -a terminal-features "screen-256color:RGB"
|
|
||||||
set -ga terminal-overrides ",*col*:Tc"
|
|
||||||
set -g allow-passthrough all
|
|
||||||
set -ga update-environment TERM
|
|
||||||
set -ga update-environment TERM_PROGRAM
|
|
||||||
set -g prefix C-SPACE
|
|
||||||
set -g default-shell "~/.nix-profile/bin/zsh"
|
|
||||||
|
|
||||||
set -g base-index 1
|
|
||||||
setw -g pane-base-index 1
|
|
||||||
set -g renumber-windows on
|
|
||||||
|
|
||||||
set -g status-position top
|
|
||||||
set -g status-justify right
|
|
||||||
set -g status-style "bg=default"
|
|
||||||
set -g window-status-current-style "fg=#b4befe bold"
|
|
||||||
set -g message-style "bg=default fg=#b4befe bold"
|
|
||||||
set -g status-right ""
|
|
||||||
set -g status-left-length 40
|
|
||||||
set -g status-left "#S "
|
|
||||||
|
|
||||||
set -g mouse on
|
|
||||||
|
|
||||||
set-option -g set-titles on
|
|
||||||
set-option -g set-titles-string "#T"
|
|
||||||
|
|
||||||
set -g visual-activity off
|
|
||||||
set -g visual-bell off
|
|
||||||
set -g visual-silence off
|
|
||||||
setw -g monitor-activity off
|
|
||||||
set -g bell-action none
|
|
||||||
|
|
||||||
setw -g mode-style 'fg=#000000 bg=#cdd6f4 bold'
|
|
||||||
|
|
||||||
set -g window-style 'bg=#151515'
|
|
||||||
set -g window-active-style 'bg=#000000'
|
|
||||||
|
|
||||||
set -g pane-border-style 'fg=#a6adc8'
|
|
||||||
set -g pane-active-border-style 'fg=#b4befe'
|
|
||||||
|
|
||||||
bind s split-window -h -c "#{pane_current_path}"
|
|
||||||
bind v split-window -v -c "#{pane_current_path}"
|
|
||||||
unbind '"'
|
|
||||||
unbind %
|
|
||||||
|
|
||||||
bind-key Tab next-window
|
|
||||||
bind-key k confirm-before -p "kill window #W? (y/n)" kill-window
|
|
||||||
bind-key c new-window
|
|
||||||
|
|
||||||
bind-key t display-popup
|
|
||||||
|
|
||||||
bind-key h select-pane -L
|
|
||||||
bind-key i select-pane -R
|
|
||||||
bind-key e select-pane -U
|
|
||||||
bind-key n select-pane -D
|
|
||||||
|
|
||||||
bind -n M-Left select-pane -L
|
|
||||||
bind -n M-Right select-pane -R
|
|
||||||
bind -n M-Up select-pane -U
|
|
||||||
bind -n M-Down select-pane -D
|
|
||||||
|
|
||||||
bind r source-file "~/.config/tmux/tmux.conf" \; display-message "Config reloaded"
|
|
||||||
bind b set -g status
|
|
||||||
bind g neww -n "lazygit" lazygit
|
|
||||||
bind y new-window -n "yazi" yazi
|
|
||||||
bind E show-environment -g
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
:translate-shell "0.9.7"
|
|
||||||
:verbose false
|
|
||||||
:hl "en"
|
|
||||||
:tl "pt-br"
|
|
||||||
:user-agent "Mozilla/5.0 (X11; CrOS aarch64 15329.44.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
|
|
||||||
}
|
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
|
|
||||||
|
|
||||||
# Manager / File list layer
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "e" ]
|
|
||||||
run = "arrow -1"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "n" ]
|
|
||||||
run = "arrow 1"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "E" ]
|
|
||||||
run = "arrow -5"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "N" ]
|
|
||||||
run = "arrow 5"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "h" ]
|
|
||||||
run = "leave"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "i" ]
|
|
||||||
run = "enter"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "H" ]
|
|
||||||
run = "back"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "I" ]
|
|
||||||
run = "forward"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "<C-e>" ]
|
|
||||||
run = "seek -5"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "<C-n>" ]
|
|
||||||
run = "seek 5"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "k" ]
|
|
||||||
run = "link"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "K" ]
|
|
||||||
run = "link --relative"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "j" ]
|
|
||||||
run = "find_arrow"
|
|
||||||
|
|
||||||
[[mgr.prepend_keymap]]
|
|
||||||
on = [ "J" ]
|
|
||||||
run = "find_arrow --previous"
|
|
||||||
|
|
||||||
|
|
||||||
# Tasks layer
|
|
||||||
[[tasks.prepend_keymap]]
|
|
||||||
on = [ "W" ]
|
|
||||||
run = "close"
|
|
||||||
|
|
||||||
[[tasks.prepend_keymap]]
|
|
||||||
on = [ "e" ]
|
|
||||||
run = "arrow -1"
|
|
||||||
|
|
||||||
[[tasks.prepend_keymap]]
|
|
||||||
on = [ "n" ]
|
|
||||||
run = "arrow 1"
|
|
||||||
|
|
||||||
|
|
||||||
# Select layer (spot/picker remnants)
|
|
||||||
[[spot.prepend_keymap]]
|
|
||||||
on = [ "e" ]
|
|
||||||
run = "arrow -1"
|
|
||||||
|
|
||||||
[[spot.prepend_keymap]]
|
|
||||||
on = [ "n" ]
|
|
||||||
run = "arrow 1"
|
|
||||||
|
|
||||||
[[spot.prepend_keymap]]
|
|
||||||
on = [ "E" ]
|
|
||||||
run = "arrow -5"
|
|
||||||
|
|
||||||
[[spot.prepend_keymap]]
|
|
||||||
on = [ "N" ]
|
|
||||||
run = "arrow 5"
|
|
||||||
|
|
||||||
|
|
||||||
# Input layer
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "l" ]
|
|
||||||
run = "insert"
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "<C-h>" ]
|
|
||||||
run = [ "move -999", "insert" ]
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "<C-i>" ]
|
|
||||||
run = [ "move 999", "insert --append" ]
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "h" ]
|
|
||||||
run = "move -1"
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "i" ]
|
|
||||||
run = "move 1"
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "=" ]
|
|
||||||
run = "forward --end-of-word"
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "H" ]
|
|
||||||
run = "move -999"
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "I" ]
|
|
||||||
run = "move 999"
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "x" ]
|
|
||||||
run = [ "delete", "move 1 --in-operating" ]
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "u" ]
|
|
||||||
run = "undo"
|
|
||||||
|
|
||||||
[[input.prepend_keymap]]
|
|
||||||
on = [ "U" ]
|
|
||||||
run = "redo"
|
|
||||||
|
|
||||||
|
|
||||||
# Completion layer
|
|
||||||
[[cmp.prepend_keymap]]
|
|
||||||
on = [ "<C-e>" ]
|
|
||||||
run = "arrow -1"
|
|
||||||
|
|
||||||
[[cmp.prepend_keymap]]
|
|
||||||
on = [ "<C-n>" ]
|
|
||||||
run = "arrow 1"
|
|
||||||
|
|
||||||
|
|
||||||
# Help layer
|
|
||||||
[[help.prepend_keymap]]
|
|
||||||
on = [ "e" ]
|
|
||||||
run = "arrow -1"
|
|
||||||
|
|
||||||
[[help.prepend_keymap]]
|
|
||||||
on = [ "n" ]
|
|
||||||
run = "arrow 1"
|
|
||||||
|
|
||||||
[[help.prepend_keymap]]
|
|
||||||
on = [ "E" ]
|
|
||||||
run = "arrow -5"
|
|
||||||
|
|
||||||
[[help.prepend_keymap]]
|
|
||||||
on = [ "N" ]
|
|
||||||
run = "arrow 5"
|
|
||||||
@@ -1,439 +0,0 @@
|
|||||||
<!-- Modus Themes for Bat -->
|
|
||||||
<!-- Auto generated with https://github.com/miikanissi/modus-themes.nvim/blob/master/lua/modus-themes/extras/bat.lua -->
|
|
||||||
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>modus_vivendi</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>background</key>
|
|
||||||
<string>#000000</string>
|
|
||||||
<key>caret</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#ffffff</string>
|
|
||||||
<key>invisibles</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
<key>lineHighlight</key>
|
|
||||||
<string>#2f3849</string>
|
|
||||||
<key>selection</key>
|
|
||||||
<string>#7030af</string>
|
|
||||||
<key>findHighlight</key>
|
|
||||||
<string>#7a6100</string>
|
|
||||||
<key>selectionBorder</key>
|
|
||||||
<string>#646464</string>
|
|
||||||
<key>gutterForeground</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Comment</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>comment</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>fontStyle</key>
|
|
||||||
<string>italic</string>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>String</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>string</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#79a8ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Number</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.numeric</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#82b0ec</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Built-in constant</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.language</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#6ae4b9</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>User-defined constant</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.character, constant.other</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#ffffff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Variable</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>variable</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>fontStyle</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Ruby's @variable</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>variable.other.readwrite.instance</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>String interpolation</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.character.escaped, constant.character.escape, string source, string source.ruby</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#d2b580</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Keyword</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>keyword</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>fontStyle</key>
|
|
||||||
<string>italic</string>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Storage</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>storage</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Storage type</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>storage.type</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Class name</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.name.class</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Inherited class</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.other.inherited-class</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#b6a0ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Function name</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.name.function</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#feacd0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Function argument</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>variable.parameter</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Tag name</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.name.tag</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Tag attribute</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.other.attribute-name</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Library function</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>support.function</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#feacd0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Library constant</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>support.constant</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#6ae4b9</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Library class/type</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>support.type, support.class</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#6ae4b9</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Library variable</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>support.other.variable</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00d3d0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Invalid</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>invalid</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Invalid deprecated</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>invalid.deprecated</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#989898</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>JSON String</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>meta.structure.dictionary.json string.quoted.double.json</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#79a8ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>diff.header</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>meta.diff, meta.diff.header</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#feacd0</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>diff.deleted</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>markup.deleted</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>background</key>
|
|
||||||
<string>#4f1119</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>diff.inserted</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>markup.inserted</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>background</key>
|
|
||||||
<string>#00381f</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>diff.changed</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>markup.changed</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>background</key>
|
|
||||||
<string>#363300</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.numeric.line-number.find-in-files - match</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#82b0ec</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>entity.name.filename</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#2fafff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>message.error</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>fontStyle</key>
|
|
||||||
<string>bold</string>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#ff7f9f</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>JSON Punctuation</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>punctuation.definition.string.begin.json - meta.structure.dictionary.value.json, punctuation.definition.string.end.json - meta.structure.dictionary.value.json</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#ffffff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>JSON Structure</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>meta.structure.dictionary.json string.quoted.double.json</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#79a8ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>JSON String</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>meta.structure.dictionary.value.json string.quoted.double.json</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#79a8ff</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Escape Characters</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>constant.character.escape</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#d2b580</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>Regular Expressions</string>
|
|
||||||
<key>scope</key>
|
|
||||||
<string>string.regexp</string>
|
|
||||||
<key>settings</key>
|
|
||||||
<dict>
|
|
||||||
<key>foreground</key>
|
|
||||||
<string>#00c06f</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>uuid</key>
|
|
||||||
<string>09CE9B40-0137-442C-8512-7CEAFC78C153</string>
|
|
||||||
<key>colorSpaceName</key>
|
|
||||||
<string>sRGB</string>
|
|
||||||
<key>semanticClass</key>
|
|
||||||
<string>Modus Vivendi</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
# Modus Themes for Yazi
|
|
||||||
# Auto generated with https://github.com/miikanissi/modus-themes.nvim/blob/master/lua/modus-themes/extras/yazi.lua
|
|
||||||
|
|
||||||
[manager]
|
|
||||||
# NOTE: can combined with tmTheme (sublime colorshceme file) for preview code highlight
|
|
||||||
highlight = "~/.config/yazi/modus_vivendi.tmTheme"
|
|
||||||
|
|
||||||
cwd = { fg = "#00d3d0", italic = true }
|
|
||||||
|
|
||||||
# Hovered
|
|
||||||
hovered = { bg = "#2f3849" }
|
|
||||||
preview_hovered = { bg = "#2f3849" }
|
|
||||||
|
|
||||||
# Find
|
|
||||||
find_keyword = { fg = "#ffffff", bg = "#7030af", bold = true }
|
|
||||||
find_position = { fg = "#79a8ff", bg = "#1e1e1e", bold = true }
|
|
||||||
|
|
||||||
# Marker
|
|
||||||
marker_copied = { fg = "#70b900", bg = "#70b900" }
|
|
||||||
marker_cut = { fg = "#ff5f59", bg = "#ff5f59" }
|
|
||||||
marker_marked = { fg = "#feacd0", bg = "#feacd0" }
|
|
||||||
marker_selected = { fg = "#2fafff", bg = "#2fafff" }
|
|
||||||
|
|
||||||
# Tab
|
|
||||||
tab_active = { fg = "#000000", bg = "#2fafff" }
|
|
||||||
tab_inactive = { fg = "#989898", bg = "#000000" }
|
|
||||||
tab_width = 1
|
|
||||||
|
|
||||||
# Count
|
|
||||||
count_copied = { fg = "#000000", bg = "#70b900" }
|
|
||||||
count_cut = { fg = "#000000", bg = "#ff6b55" }
|
|
||||||
count_selected = { fg = "#000000", bg = "#79a8ff" }
|
|
||||||
|
|
||||||
# Border
|
|
||||||
border_symbol = "│"
|
|
||||||
border_style = { fg = "#C4C4C4" }
|
|
||||||
|
|
||||||
[status]
|
|
||||||
separator_open = ""
|
|
||||||
separator_close = ""
|
|
||||||
separator_style = { fg = "#0f0f0f", bg = "#0f0f0f" }
|
|
||||||
|
|
||||||
# Mode
|
|
||||||
mode_normal = { fg = "#000000", bg = "#2fafff", bold = true }
|
|
||||||
mode_select = { fg = "#000000", bg = "#f78fe7", bold = true }
|
|
||||||
mode_unset = { fg = "#000000", bg = "#db7b5f", bold = true }
|
|
||||||
|
|
||||||
# Progress
|
|
||||||
progress_label = { fg = "#989898", bold = true }
|
|
||||||
progress_normal = { fg = "#000000" }
|
|
||||||
progress_error = { fg = "#ff5f59" }
|
|
||||||
|
|
||||||
# Permissions
|
|
||||||
permissions_t = { fg = "#2fafff" }
|
|
||||||
permissions_r = { fg = "#d0bc00" }
|
|
||||||
permissions_w = { fg = "#ff5f59" }
|
|
||||||
permissions_x = { fg = "#44bc44" }
|
|
||||||
permissions_s = { fg = "#989898" }
|
|
||||||
|
|
||||||
[select]
|
|
||||||
border = { fg = "#C4C4C4" }
|
|
||||||
active = { fg = "#ffffff", bg = "#646464" }
|
|
||||||
inactive = { fg = "#ffffff" }
|
|
||||||
|
|
||||||
# Input
|
|
||||||
[input]
|
|
||||||
border = { fg = "#00bcff" }
|
|
||||||
title = {}
|
|
||||||
value = { fg = "#f78fe7" }
|
|
||||||
selected = { bg = "#646464" }
|
|
||||||
|
|
||||||
# Completion
|
|
||||||
[completion]
|
|
||||||
border = { fg = "#00bcff" }
|
|
||||||
active = { fg = "#ffffff", bg = "#646464" }
|
|
||||||
inactive = { fg = "#ffffff" }
|
|
||||||
|
|
||||||
# Tasks
|
|
||||||
[tasks]
|
|
||||||
border = { fg = "#C4C4C4" }
|
|
||||||
title = {}
|
|
||||||
hovered = { fg = "#ffffff", bg="#646464" }
|
|
||||||
|
|
||||||
# Which
|
|
||||||
[which]
|
|
||||||
cols = 3
|
|
||||||
mask = { bg = "#0f0f0f" }
|
|
||||||
cand = { fg = "#00d3d0" }
|
|
||||||
rest = { fg = "#2fafff" }
|
|
||||||
desc = { fg = "#feacd0" }
|
|
||||||
separator = " "
|
|
||||||
separator_style = { fg = "#989898" }
|
|
||||||
|
|
||||||
# Notify
|
|
||||||
[notify]
|
|
||||||
title_info = { fg = "#00bcff" }
|
|
||||||
title_warn = { fg = "#d0bc00" }
|
|
||||||
title_error = { fg = "#ff5f59" }
|
|
||||||
|
|
||||||
# Help
|
|
||||||
[help]
|
|
||||||
on = { fg = "#44bc44" }
|
|
||||||
run = { fg = "#feacd0" }
|
|
||||||
hovered = { bg = "#646464" }
|
|
||||||
footer = { fg = "#ffffff", bg = "#0f0f0f" }
|
|
||||||
|
|
||||||
[filetype]
|
|
||||||
|
|
||||||
rules = [
|
|
||||||
# Images
|
|
||||||
{ mime = "image/*", fg = "#00d3d0" },
|
|
||||||
|
|
||||||
# Media
|
|
||||||
{ mime = "{audio,video}/*", fg = "#fec43f" },
|
|
||||||
|
|
||||||
# Archives
|
|
||||||
{ mime = "application/*zip", fg = "#feacd0" },
|
|
||||||
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "#feacd0" },
|
|
||||||
|
|
||||||
# Documents
|
|
||||||
{ mime = "application/{pdf,doc,rtf,vnd.*}", fg = "#00d3d0" },
|
|
||||||
|
|
||||||
# Empty files
|
|
||||||
# { mime = "inode/x-empty", fg = "#ff5f59" },
|
|
||||||
|
|
||||||
# Special files
|
|
||||||
{ name = "*", is = "orphan", bg = "#ff5f59" },
|
|
||||||
{ name = "*", is = "exec" , fg = "#44bc44" },
|
|
||||||
|
|
||||||
{ name = "*.rs", fg = "#db7b5f" },
|
|
||||||
|
|
||||||
# Fallback
|
|
||||||
{ name = "*/", fg = "#2fafff" }
|
|
||||||
]
|
|
||||||
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
[mgr]
|
|
||||||
sort_by = "mtime"
|
|
||||||
sort_reverse = true
|
|
||||||
show_hidden = true
|
|
||||||
linemode = "size"
|
|
||||||
scrolloff = 12
|
|
||||||
ratio = [1,2,0]
|
|
||||||
|
|
||||||
[opener]
|
|
||||||
edit = [
|
|
||||||
{ run = "kak %s", block = true, for = "unix" },
|
|
||||||
]
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
[notebook]
|
|
||||||
dir = "~/Documents/Notes"
|
|
||||||
|
|
||||||
[note]
|
|
||||||
filename = "{{slug title}}"
|
|
||||||
template = "note.md"
|
|
||||||
|
|
||||||
[extra]
|
|
||||||
author = "Venomade"
|
|
||||||
|
|
||||||
[format.markdown]
|
|
||||||
link-format = "wiki"
|
|
||||||
hashtags = true
|
|
||||||
colon-tags = false
|
|
||||||
multiword-tags = true
|
|
||||||
|
|
||||||
[tool]
|
|
||||||
editor = "/home/venomade/.nix-profile/bin/emacs"
|
|
||||||
shell = "/home/venomade/.nix-profile/bin/zsh"
|
|
||||||
fzf-preview = "bat -p --color always {-1}"
|
|
||||||
|
|
||||||
[lsp]
|
|
||||||
[lsp.diagnostics]
|
|
||||||
wiki-title = "hint"
|
|
||||||
dead-link = "error"
|
|
||||||
missing-backlink = { level = "warning", position = "bottom" }
|
|
||||||
|
|
||||||
[group.diario]
|
|
||||||
paths = ["Diario"]
|
|
||||||
|
|
||||||
[group.diario.note]
|
|
||||||
filename = "{{format-date now '%Y-%m-%d'}}"
|
|
||||||
extension = "md"
|
|
||||||
template = "daily.md"
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
title: Entrada do Diário - {{format-date now '%Y-%m-%d'}}
|
|
||||||
tags: [diario, {{format-date now '%B'}}, {{format-date now 'year'}}]
|
|
||||||
---
|
|
||||||
<!--
|
|
||||||
|
|
||||||
# Entrada do Diário - {{format-date now '%Y-%m-%d'}}
|
|
||||||
|
|
||||||
{{content}}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
title: {{title}}
|
|
||||||
tags: []
|
|
||||||
---
|
|
||||||
|
|
||||||
{{content}}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
n forw-line
|
|
||||||
e back-line
|
|
||||||
j repeat-search
|
|
||||||
J reverse-search
|
|
||||||
-55
@@ -1,55 +0,0 @@
|
|||||||
# Venomade's zshrc
|
|
||||||
|
|
||||||
# source global variables and aliases
|
|
||||||
[ -f "$HOME/.config/shell/alias" ] && source "$HOME/.config/shell/alias"
|
|
||||||
[ -f "$HOME/.config/shell/vars" ] && source "$HOME/.config/shell/vars"
|
|
||||||
[ -f "$HOME/.config/shell/functions" ] && source "$HOME/.config/shell/functions"
|
|
||||||
|
|
||||||
# load modules
|
|
||||||
zmodload zsh/complist
|
|
||||||
autoload -U compinit && compinit
|
|
||||||
autoload -U colors && colors
|
|
||||||
|
|
||||||
# completion
|
|
||||||
zstyle ':completion:*' menu select
|
|
||||||
zstyle ':completion:*' special-dirs true
|
|
||||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} ma=0\;33
|
|
||||||
|
|
||||||
# options
|
|
||||||
setopt append_history inc_append_history share_history
|
|
||||||
setopt auto_menu menu_complete
|
|
||||||
setopt auto_param_slash
|
|
||||||
setopt no_case_glob no_case_match
|
|
||||||
setopt globdots
|
|
||||||
setopt extended_glob
|
|
||||||
setopt share_history
|
|
||||||
|
|
||||||
# history
|
|
||||||
export HISTFILE=~/.zsh_history
|
|
||||||
export HISTSIZE=10000
|
|
||||||
export SAVEHIST=10000
|
|
||||||
|
|
||||||
|
|
||||||
# termtitle
|
|
||||||
shorten_path() {
|
|
||||||
local path="${PWD/#$HOME/~}"
|
|
||||||
local parts=("${(@s:/:)path}")
|
|
||||||
|
|
||||||
if (( ${#parts} > 3 )); then
|
|
||||||
echo "${parts[1]}/.../${parts[-2]}/${parts[-1]}"
|
|
||||||
else
|
|
||||||
echo "$path"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
autoload -Uz add-zsh-hook
|
|
||||||
precmd() {
|
|
||||||
print -Pn "\e]0;$(shorten_path)\a"
|
|
||||||
}
|
|
||||||
|
|
||||||
export STARSHIP_CONFIG=~/.config/starship/config.toml
|
|
||||||
eval "$(starship init zsh)"
|
|
||||||
|
|
||||||
# source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
|
|
||||||
bindkey -e
|
|
||||||
Generated
+38
-57
@@ -1,20 +1,18 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-utils": {
|
"base16-schemes": {
|
||||||
"inputs": {
|
"flake": false,
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685518550,
|
"lastModified": 1696158499,
|
||||||
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
|
"narHash": "sha256-5yIHgDTPjoX/3oDEfLSQ0eJZdFL1SaCfb9d6M0RmOTM=",
|
||||||
"owner": "numtide",
|
"owner": "tinted-theming",
|
||||||
"repo": "flake-utils",
|
"repo": "base16-schemes",
|
||||||
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
|
"rev": "a9112eaae86d9dd8ee6bb9445b664fba2f94037a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "numtide",
|
"owner": "tinted-theming",
|
||||||
"repo": "flake-utils",
|
"repo": "base16-schemes",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -25,11 +23,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771102945,
|
"lastModified": 1786826571,
|
||||||
"narHash": "sha256-e5NfW8NhC3qChR8bHVni/asrig/ZFzd1wzpq+cEE/tg=",
|
"narHash": "sha256-nNqmXIFmESRnU91KARtiekSox0+o+E3AS0d1TuUQ/9o=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ff5e5d882c51f9a032479595cbab40fd04f56399",
|
"rev": "c8058ecc1329a71a3c99c4d0353dba4009a66152",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -38,78 +36,61 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-darwin-emacs": {
|
"nix-colors": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"base16-schemes": "base16-schemes",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772076615,
|
"lastModified": 1707825078,
|
||||||
"narHash": "sha256-ELVNo7zh6N32Ooncgs9URPpWwC86tWPYoieJPLxTaGo=",
|
"narHash": "sha256-hTfge2J2W+42SZ7VHXkf4kjU+qzFqPeC9k66jAUBMHk=",
|
||||||
"owner": "nix-giant",
|
"owner": "misterio77",
|
||||||
"repo": "nix-darwin-emacs",
|
"repo": "nix-colors",
|
||||||
"rev": "065050b9e06a30c01b41539b75464fff972fecd6",
|
"rev": "b01f024090d2c4fc3152cd0cf12027a7b8453ba1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-giant",
|
"owner": "misterio77",
|
||||||
"repo": "nix-darwin-emacs",
|
"repo": "nix-colors",
|
||||||
"rev": "065050b9e06a30c01b41539b75464fff972fecd6",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759397282,
|
"lastModified": 1786719841,
|
||||||
"narHash": "sha256-ohaApD0NtpszUBgTl/GGBUkNYwVgaQWivugNpuip9X8=",
|
"narHash": "sha256-QcpQOT0NQEFkI77t+YXPZqDJc35iIodG7zinieOwFUg=",
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b2f842e4d99dc35a0951b9582c64bb26789e929d",
|
"rev": "8be7bd0c83f12e2e3bbba07c9044d6fed9e66f7f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"ref": "nixpkgs-25.05-darwin",
|
"ref": "nixpkgs-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771008912,
|
"lastModified": 1697935651,
|
||||||
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
"narHash": "sha256-qOfWjQ2JQSQL15KLh6D7xQhx0qgZlYZTYlcEiRuAMMw=",
|
||||||
"owner": "nixos",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
"rev": "e1e11fdbb01113d85c7f41cada9d2847660e3902",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nix-community",
|
||||||
"ref": "nixos-unstable",
|
"repo": "nixpkgs.lib",
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-darwin-emacs": "nix-darwin-emacs",
|
"nix-colors": "nix-colors",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,34 +1,34 @@
|
|||||||
{
|
{
|
||||||
description = "Home Manager configuration of venomade";
|
description = "Home Manager configuration of venomade";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nix-darwin-emacs = {
|
nix-colors = {
|
||||||
url = "github:nix-giant/nix-darwin-emacs/065050b9e06a30c01b41539b75464fff972fecd6";
|
url = "github:misterio77/nix-colors";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ nixpkgs, home-manager, nix-darwin-emacs, ... }:
|
{ nixpkgs, home-manager, nix-colors, ... }:
|
||||||
let
|
let
|
||||||
mkHome = system:
|
system = "aarch64-darwin";
|
||||||
let
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
in
|
|
||||||
home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
modules = [ ./home.nix ];
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit system nix-darwin-emacs;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
homeConfigurations = {
|
homeConfigurations."venomade" = home-manager.lib.homeManagerConfiguration {
|
||||||
"venomade" = mkHome "aarch64-linux";
|
inherit pkgs;
|
||||||
"venomade-darwin" = mkHome "aarch64-darwin";
|
|
||||||
|
extraSpecialArgs = { inherit nix-colors; };
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./home.nix
|
||||||
|
nix-colors.homeManagerModules.default
|
||||||
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,113 +1,18 @@
|
|||||||
{ config, lib, pkgs, system, nix-darwin-emacs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
|
||||||
isDarwin = builtins.match ".*-darwin" system != null;
|
|
||||||
|
|
||||||
emacsPackage =
|
|
||||||
if isDarwin
|
|
||||||
then nix-darwin-emacs.packages.${system}.emacs-30
|
|
||||||
else pkgs.emacs-pgtk;
|
|
||||||
|
|
||||||
homeDirectory =
|
|
||||||
if isDarwin
|
|
||||||
then "/Users/venomade"
|
|
||||||
else "/home/venomade";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
home.username = "venomade";
|
home.username = "venomade";
|
||||||
home.homeDirectory = homeDirectory;
|
home.homeDirectory =
|
||||||
home.packages = with pkgs; [
|
if pkgs.stdenv.hostPlatform.isDarwin then "/Users/venomade" else "/home/venomade";
|
||||||
|
|
||||||
# Neovim
|
imports = [
|
||||||
neovim
|
./config/programming/config.nix
|
||||||
imagemagick
|
./config/colors/config.nix
|
||||||
fzf
|
./config/shell/config.nix
|
||||||
ripgrep
|
./config/kakoune/config.nix
|
||||||
fd
|
./config/kitty/config.nix
|
||||||
|
|
||||||
# Emacs
|
|
||||||
emacsPackage
|
|
||||||
emacs-lsp-booster
|
|
||||||
|
|
||||||
# Kakoune
|
|
||||||
kakoune
|
|
||||||
kakoune-lsp
|
|
||||||
expect
|
|
||||||
|
|
||||||
# Nix
|
|
||||||
nil
|
|
||||||
|
|
||||||
# Lua
|
|
||||||
lua-language-server
|
|
||||||
lua5_4
|
|
||||||
|
|
||||||
# Rust
|
|
||||||
rustc
|
|
||||||
cargo
|
|
||||||
rust-analyzer
|
|
||||||
clippy
|
|
||||||
|
|
||||||
# C
|
|
||||||
clang
|
|
||||||
clang-tools
|
|
||||||
bear
|
|
||||||
valgrind
|
|
||||||
|
|
||||||
# Lisp
|
|
||||||
luaPackages.fennel
|
|
||||||
fnlfmt
|
|
||||||
fennel-ls
|
|
||||||
|
|
||||||
# Shell
|
|
||||||
zsh
|
|
||||||
tmux
|
|
||||||
bat
|
|
||||||
bat-extras.batman
|
|
||||||
bat-extras.batdiff
|
|
||||||
eza
|
|
||||||
jellyfin-tui
|
|
||||||
lazygit
|
|
||||||
starship
|
|
||||||
yazi
|
|
||||||
zk
|
|
||||||
harper
|
|
||||||
translate-shell
|
|
||||||
|
|
||||||
] ++ lib.optionals isDarwin [
|
|
||||||
lima
|
|
||||||
];
|
];
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
settings.user = {
|
|
||||||
name = "venomade";
|
|
||||||
email = "venomade@venomade.com";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "26.05";
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
home.file =
|
|
||||||
let
|
|
||||||
configDir = "${config.home.homeDirectory}/.dotfiles/config";
|
|
||||||
dotsDir = "${config.home.homeDirectory}/.dotfiles/dots";
|
|
||||||
|
|
||||||
configEntries = lib.mapAttrs
|
|
||||||
(name: _: {
|
|
||||||
target = ".config/${name}";
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${configDir}/${name}";
|
|
||||||
recursive = true;
|
|
||||||
})
|
|
||||||
(lib.filterAttrs
|
|
||||||
(name: type: type == "directory")
|
|
||||||
(builtins.readDir ./config));
|
|
||||||
|
|
||||||
dotsEntries = lib.mapAttrs
|
|
||||||
(name: _: {
|
|
||||||
target = ".${name}";
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${dotsDir}/${name}";
|
|
||||||
})
|
|
||||||
(lib.filterAttrs
|
|
||||||
(name: type: type == "regular")
|
|
||||||
(builtins.readDir ./dots));
|
|
||||||
in
|
|
||||||
configEntries // dotsEntries;
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user