xonecas.io
56101
Df

dotfiles / commit ee8b6a2

feat: add ansi lualine theme and improve shell aliases

- Create new ANSI color theme for lualine with standard color palette
- Update lualine config to use 'ansi' theme instead of '16color'
- Add token efficiency and task tool guidelines to AGENTS.md
- Add convenient aliases for nvim and opencode commands

xonecas2026-01-30 ee8b6a22614c160b72ec0d3f5f1fec980e7beae2 parent 6d9bb20

4 files changed

nvim/lua/lualine/themes/ansi.lua+76−0
@@ -0,0 +1,76 @@
1+-- Standard ANSI color hex values
2+-- These represent typical ANSI colors but will adapt to your terminal's palette
3+local colors = {
4+ black = '#000000',
5+ red = '#800000',
6+ green = '#008000',
7+ yellow = '#808000',
8+ blue = '#000080',
9+ magenta = '#800080',
10+ cyan = '#008080',
11+ white = '#c0c0c0',
12+ bright_black = '#808080',
13+ bright_red = '#ff0000',
14+ bright_green = '#00ff00',
15+ bright_yellow = '#ffff00',
16+ bright_blue = '#0000ff',
17+ bright_magenta = '#ff00ff',
18+ bright_cyan = '#00ffff',
19+ bright_white = '#ffffff',
20+}
21+
22+local section_b = { fg = colors.black, bg = colors.bright_black }
23+local section_c = { fg = colors.bright_white, bg = colors.black }
24+
25+local theme = {
26+ normal = {
27+ a = { fg = colors.black, bg = colors.yellow, gui = 'bold' },
28+ b = section_b,
29+ c = section_c,
30+ x = section_c,
31+ y = section_b,
32+ z = section_b,
33+ },
34+ insert = {
35+ a = { fg = colors.black, bg = colors.green, gui = 'bold' },
36+ b = section_b,
37+ c = section_c,
38+ x = section_c,
39+ y = section_b,
40+ z = section_b,
41+ },
42+ visual = {
43+ a = { fg = colors.black, bg = colors.magenta, gui = 'bold' },
44+ b = section_b,
45+ c = section_c,
46+ x = section_c,
47+ y = section_b,
48+ z = section_b,
49+ },
50+ replace = {
51+ a = { fg = colors.black, bg = colors.cyan, gui = 'bold' },
52+ b = section_b,
53+ c = section_c,
54+ x = section_c,
55+ y = section_b,
56+ z = section_b,
57+ },
58+ command = {
59+ a = { fg = colors.black, bg = colors.blue, gui = 'bold' },
60+ b = section_b,
61+ c = section_c,
62+ x = section_c,
63+ y = section_b,
64+ z = section_b,
65+ },
66+ inactive = {
67+ a = { fg = colors.bright_white, bg = colors.black },
68+ b = { fg = colors.bright_white, bg = colors.black },
69+ c = { fg = colors.bright_white, bg = colors.black },
70+ x = { fg = colors.bright_white, bg = colors.black },
71+ y = { fg = colors.bright_white, bg = colors.black },
72+ z = { fg = colors.bright_white, bg = colors.black },
73+ },
74+}
75+
76+return theme
nvim/lua/plugins/lualine.lua+1−1
@@ -6,7 +6,7 @@ return {
66 require('lualine').setup({
77 options = {
88 icons_enabled = true,
9- theme = '16color',
9+ theme = 'ansi',
1010 component_separators = { left = '|', right = '|' },
1111 section_separators = { left = '', right = '' },
1212 disabled_filetypes = {
opencode/AGENTS.md+18−0
@@ -30,6 +30,24 @@ Always minimize token usage; avoid verbosity at all times. Your human partner c
3030
3131 Load and apply the `token-efficiency-opencode` skill to minimize token usage.
3232
33+## Task tool for exploration
34+
35+Use the Task tool for ANY exploration spanning 2+ files. This includes:
36+- Finding files by pattern or content
37+- Understanding how code flows across modules
38+- Answering questions about the codebase
39+
40+NEVER use Glob/Grep/Read directly for open-ended exploration. Delegate to Task agents to keep main context lean.
41+
42+## Targeted file reads
43+
44+Before reading a file:
45+1. Use Grep to find relevant line numbers first
46+2. Use `offset` and `limit` parameters to read only the needed section
47+3. Never re-read files already in context
48+
49+Full-file reads are only acceptable for files under 100 lines or when the entire file is genuinely needed.
50+
3351 ---
3452
3553 # Programming principles
shell/shared.sh+3−0
@@ -4,6 +4,9 @@
44 # Convenience alias:
55 export EDITOR=nvim
66
7+alias n=nvim
8+alias oc=opencode
9+
710 alias ll='ls -Fal --color=always'
811 alias ls='ls --color=always'