xonecas.io
56101
Df

dotfiles / commit abd27ae

feat: treesitter syntax hl and habamax theme

xonecas2026-06-14 abd27ae6a72198ce88b02621cf7af452e701584e parent 97973f9

3 files changed

README.md+18−0
@@ -0,0 +1,18 @@
1+# Dotfiles
2+
3+Personal configuration files for my development environment.
4+
5+## Contents
6+
7+- `nvim/` — Neovim configuration
8+- `shell/` — Shell configuration and related setup files
9+
10+## Usage
11+
12+Clone this repository and symlink or copy the configuration files into the appropriate locations in your home directory.
13+
14+```sh
15+git clone <repo-url> ~/src/dotfiles
16+```
17+
18+Review each directory before applying changes, as these files are tailored to my personal workflow.
nvim/init.lua+98−20
@@ -46,27 +46,67 @@ vim.opt.rtp:prepend(lazypath)
4646 require("lazy").setup({
4747 spec = {
4848 -- import your plugins
49- {
50- -- Theme:
51- "zenbones-theme/zenbones.nvim",
52- -- Optionally install Lush. Allows for more configuration or extending the colorscheme
53- -- If you don't want to install lush, make sure to set g:zenbones_compat = 1
54- -- In Vim, compat mode is turned on as Lush only works in Neovim.
55- dependencies = "rktjmp/lush.nvim",
56- lazy = false,
57- priority = 1000,
58- -- you can set set configuration options here
59- config = function()
60- -- vim.g.zenbones_darken_comments = 45
61- vim.cmd.colorscheme('randombones')
62- end
63- },
64-
6549 {
6650 'nvim-lualine/lualine.nvim',
6751 dependencies = { 'nvim-tree/nvim-web-devicons' },
6852 config = function()
69- require("lualine").setup()
53+ local colors = {
54+ bg = '#1c1c1c',
55+ bg_mid = '#262626',
56+ bg_light = '#303030',
57+ bg_lighter = '#3a3a3a',
58+ fg = '#c7c7c7',
59+ gray = '#767676',
60+ gray_bright = '#9e9e9e',
61+ blue = '#5f87af',
62+ cyan = '#87afaf',
63+ green = '#5faf5f',
64+ magenta = '#af87af',
65+ red = '#af5f5f',
66+ yellow = '#af875f',
67+ }
68+
69+ local habamax_lualine = {
70+ normal = {
71+ a = { fg = colors.bg, bg = colors.gray_bright, gui = 'bold' },
72+ b = { fg = colors.fg, bg = colors.bg_lighter },
73+ c = { fg = colors.gray_bright, bg = colors.bg_mid },
74+ },
75+ insert = {
76+ a = { fg = colors.bg, bg = colors.green, gui = 'bold' },
77+ b = { fg = colors.fg, bg = colors.bg_lighter },
78+ c = { fg = colors.gray_bright, bg = colors.bg_mid },
79+ },
80+ visual = {
81+ a = { fg = colors.bg, bg = colors.magenta, gui = 'bold' },
82+ b = { fg = colors.fg, bg = colors.bg_lighter },
83+ c = { fg = colors.gray_bright, bg = colors.bg_mid },
84+ },
85+ replace = {
86+ a = { fg = colors.bg, bg = colors.red, gui = 'bold' },
87+ b = { fg = colors.fg, bg = colors.bg_lighter },
88+ c = { fg = colors.gray_bright, bg = colors.bg_mid },
89+ },
90+ command = {
91+ a = { fg = colors.bg, bg = colors.yellow, gui = 'bold' },
92+ b = { fg = colors.fg, bg = colors.bg_lighter },
93+ c = { fg = colors.gray_bright, bg = colors.bg_mid },
94+ },
95+ terminal = {
96+ a = { fg = colors.bg, bg = colors.cyan, gui = 'bold' },
97+ b = { fg = colors.fg, bg = colors.bg_lighter },
98+ c = { fg = colors.gray_bright, bg = colors.bg_mid },
99+ },
100+ inactive = {
101+ a = { fg = colors.gray, bg = colors.bg_mid, gui = 'bold' },
102+ b = { fg = colors.gray, bg = colors.bg_mid },
103+ c = { fg = colors.gray, bg = colors.bg },
104+ },
105+ }
106+
107+ require("lualine").setup({
108+ options = { theme = habamax_lualine }
109+ })
70110 end
71111 },
72112
@@ -93,6 +133,40 @@ require("lazy").setup({
93133 cmd = 'Telescope',
94134 },
95135
136+ -- Tree-sitter syntax highlighting
137+ {
138+ 'nvim-treesitter/nvim-treesitter',
139+ lazy = false,
140+ build = ':TSUpdate',
141+ config = function()
142+ local parsers = {
143+ 'bash',
144+ 'css',
145+ 'go',
146+ 'html',
147+ 'javascript',
148+ 'json',
149+ 'lua',
150+ 'markdown',
151+ 'markdown_inline',
152+ 'python',
153+ 'query',
154+ 'tsx',
155+ 'typescript',
156+ 'vim',
157+ 'vimdoc',
158+ }
159+
160+ require('nvim-treesitter').install(parsers)
161+
162+ vim.api.nvim_create_autocmd('FileType', {
163+ callback = function(args)
164+ pcall(vim.treesitter.start, args.buf)
165+ end,
166+ })
167+ end,
168+ },
169+
96170 -- LSP/etc with Mason
97171 "neovim/nvim-lspconfig",
98172 {
@@ -109,6 +183,8 @@ require("lazy").setup({
109183 "biome",
110184 "emmylua_ls",
111185 "gopls",
186+ "pyright",
187+ "ruff",
112188 "ts_ls",
113189 },
114190 automatic_enable = true,
@@ -116,10 +192,10 @@ require("lazy").setup({
116192 end,
117193 },
118194
119- -- Use `pi` for autocomplete
195+ -- Use vim-ai-complete for autocomplete
120196 {
121- "sacenox/vim-pi-complete",
122- cmd = { "Pi" },
197+ "sacenox/vim-ai-complete",
198+ cmd = { "Ai" },
123199 }
124200 },
125201 -- Configure any other settings here. See the documentation for more details.
@@ -153,3 +229,5 @@ keymap('n', 'k', 'gk', { noremap = true })
153229 -- Command aliases
154230 vim.api.nvim_create_user_command('Q', 'q', {})
155231 vim.api.nvim_create_user_command('W', 'w', {})
232+
233+vim.cmd.colorscheme('habamax')
nvim/lazy-lock.json+5−4
@@ -2,14 +2,15 @@
22 "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
33 "lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
44 "lush.nvim": { "branch": "main", "commit": "9c60ec2279d62487d942ce095e49006af28eed6e" },
5- "mason-lspconfig.nvim": { "branch": "main", "commit": "0a695750d747db1e7e70bcf0267ef8951c95fc83" },
6- "mason.nvim": { "branch": "main", "commit": "16ba83bfc8a25f52bb545134f5bee082b195c460" },
7- "nvim-lspconfig": { "branch": "master", "commit": "229b79051b380377664edc4cbd534930154921a1" },
5+ "mason-lspconfig.nvim": { "branch": "main", "commit": "21c5b3ebeaa0412e28096bb0701434c51c1fbf76" },
6+ "mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
7+ "nvim-lspconfig": { "branch": "master", "commit": "a683e0ddf0cf64c6cd689e18ffb480ade3c162b7" },
88 "nvim-tree.lua": { "branch": "master", "commit": "85d1145ac71c1b8e1423862c78165a1f609faf60" },
9+ "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
910 "nvim-web-devicons": { "branch": "master", "commit": "dfbfaa967a6f7ec50789bead7ef87e336c1fa63c" },
1011 "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
1112 "telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
1213 "telescope.nvim": { "branch": "master", "commit": "7d324792b7943e4aa16ad007212e6acc6f9fe335" },
13- "vim-pi-complete": { "branch": "main", "commit": "cf0655d575b62f200dd72c902810a8fa7e764437" },
14+ "vim-ai-complete": { "branch": "main", "commit": "67d65b63d0051a370daec178460b74addc2f7780" },
1415 "zenbones.nvim": { "branch": "main", "commit": "239bdb9a09c8d38c752c43590d02f654ed0da2b0" }
1516 }