update colors, sorting, lsp with treesitter

This commit is contained in:
Matt Anderson
2026-09-13 10:49:57 -05:00
parent 82314996f6
commit aaab135fea
7 changed files with 67 additions and 23 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
keybind = global:ctrl+a=toggle_quick_terminal keybind = global:ctrl+a=toggle_quick_terminal
quick-terminal-size = 100%
theme = dark:monodark,light:monolight theme = dark:default-dark,light:default-light
# enforce legible text on washed-out colors (esp. light theme) # enforce legible text on washed-out colors (esp. light theme)
minimum-contrast = 1.15 minimum-contrast = 1.15
+2 -2
View File
@@ -1,10 +1,10 @@
# Scheme: Default Dark # Scheme: Default Dark
# Generated by Ghostty Base16 Converter # Generated by Ghostty Base16 Converter
background = 181818 background = 111111
foreground = d8d8d8 foreground = d8d8d8
selection-background = 383838 selection-background = 383838
selection-foreground = 181818 selection-foreground = 111111
palette = 0=#181818 palette = 0=#181818
palette = 1=#ab4642 palette = 1=#ab4642
+2 -2
View File
@@ -4,8 +4,8 @@
# regardless of terminal theme handling. # regardless of terminal theme handling.
foreground: &foreground "#d8d8d8" foreground: &foreground "#d8d8d8"
background: &background "#181818" background: &background "#111111"
black: &black "#181818" black: &black "#111111"
blue: &blue "#7cafc2" blue: &blue "#7cafc2"
green: &green "#a1b56c" green: &green "#a1b56c"
grey: &grey "#585858" grey: &grey "#585858"
+4 -1
View File
@@ -12,6 +12,9 @@ vim.filetype.add({
pattern = { pattern = {
["compose.*%.ya?ml"] = "yaml.docker-compose", ["compose.*%.ya?ml"] = "yaml.docker-compose",
["docker%-compose.*%.ya?ml"] = "yaml.docker-compose", ["docker%-compose.*%.ya?ml"] = "yaml.docker-compose",
[".*/templates/.*%.tpl"] = "helm",
[".*/templates/.*%.ya?ml"] = "helm",
["values.*%.ya?ml"] = "yaml.helm-values",
}, },
}) })
@@ -110,7 +113,7 @@ vim.lsp.config('yamlls', {
settings = { settings = {
yaml = { yaml = {
schemas = { schemas = {
kubernetes = "*.yaml", ["https://json.schemastore.org/chart.json"] = "Chart.yaml",
}, },
}, },
} }
+53 -16
View File
@@ -18,7 +18,52 @@ require('lazy').setup({
'mfussenegger/nvim-dap', 'mfussenegger/nvim-dap',
'rcarriga/nvim-dap-ui', 'rcarriga/nvim-dap-ui',
'leoluz/nvim-dap-go', 'leoluz/nvim-dap-go',
'nvim-treesitter/nvim-treesitter', {
'nvim-treesitter/nvim-treesitter',
lazy = false,
build = ':TSUpdate',
config = function()
local treesitter = require('nvim-treesitter')
-- Parsers for the languages enabled in lsp.lua. LESS, Objective-C++,
-- and the generic "template" filetype have no matching parser.
local parsers = {
'angular', 'bash', 'c', 'cpp', 'css', 'cuda', 'dockerfile',
'go', 'gomod', 'gotmpl', 'gowork', 'helm', 'html', 'htmldjango',
'javascript', 'json', 'lua', 'objc', 'python', 'scss',
'templ', 'tsx', 'typescript', 'yaml',
}
local ready = false
local function start_highlighting(buf)
if not ready or not vim.api.nvim_buf_is_loaded(buf) then
return
end
local lang = vim.treesitter.language.get_lang(vim.bo[buf].filetype)
if vim.list_contains(parsers, lang)
and vim.list_contains(treesitter.get_installed('parsers'), lang) then
vim.treesitter.start(buf, lang)
end
end
vim.api.nvim_create_autocmd('FileType', {
group = vim.api.nvim_create_augroup('UserTreesitter', { clear = true }),
callback = function(ev)
start_highlighting(ev.buf)
end,
})
treesitter.install(parsers):await(vim.schedule_wrap(function(err)
if err then
vim.notify('Tree-sitter installation failed: ' .. tostring(err), vim.log.levels.ERROR)
end
ready = true
-- Enable buffers opened while the first installation was running.
for _, buf in ipairs(vim.api.nvim_list_bufs()) do
start_highlighting(buf)
end
end))
end,
},
'luukvbaal/nnn.nvim', 'luukvbaal/nnn.nvim',
'nvim-tree/nvim-tree.lua', 'nvim-tree/nvim-tree.lua',
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
@@ -60,21 +105,21 @@ require('lazy').setup({
}, },
}, },
org_agenda_custom_commands = { org_agenda_custom_commands = {
o = { i = {
description = "Owned", description = "Independent",
types = { types = {
{ {
type = 'agenda', type = 'agenda',
org_agenda_tag_filter_preset = 'owned' org_agenda_tag_filter_preset = 'independent'
} }
} }
}, },
a = { e = {
description = "Assigned", description = "Employment",
types = { types = {
{ {
type = 'agenda', type = 'agenda',
org_agenda_tag_filter_preset = 'assigned' org_agenda_tag_filter_preset = 'employment'
} }
} }
}, },
@@ -95,15 +140,7 @@ require('lazy').setup({
org_agenda_tag_filter_preset = 'habits' org_agenda_tag_filter_preset = 'habits'
} }
} }
}, }
l = {
description = "Agenda",
types = {
{
type = 'agenda',
}
}
},
} }
}) })
end, end,
@@ -1,7 +1,7 @@
{ {
"$schema": "https://opencode.ai/theme.json", "$schema": "https://opencode.ai/theme.json",
"defs": { "defs": {
"base00": "#181818", "base00": "#111111",
"base01": "#282828", "base01": "#282828",
"base02": "#383838", "base02": "#383838",
"base03": "#585858", "base03": "#585858",
+3
View File
@@ -9,6 +9,9 @@ set -g prefix C-space
unbind-key C-b unbind-key C-b
bind-key C-space send-prefix bind-key C-space send-prefix
# Sort the session picker by name
bind s choose-tree -Zs -O name
# Set new panes to open in current directory # Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}" bind '"' split-window -c "#{pane_current_path}"