Compare commits

..

2 commits

Author SHA1 Message Date
080fe6528f
Lots of changes! 2026-05-11 21:05:06 -05:00
9bf5378b7e
update nvim to remove deprecated functions 2025-11-03 10:16:52 -06:00
6 changed files with 38 additions and 50 deletions

View file

@ -19,6 +19,3 @@ require('colorscheme')
-- Setup autocmd for metals - metals is a little weird and needs to load itself.
-- The plugin that's loaded just makes metals code available in the first place.
require('plugins/metals')
-- Setup treesitter, select the configs to load, etc.
require('plugins/treesitter')

View file

@ -53,7 +53,13 @@ map('n', 'gD', vim.lsp.buf.type_definition, { desc = 'Go To Type Definition' })
map('n', '<leader>cl', vim.lsp.codelens.run, { desc = 'Code Lens' })
map('n', '<leader>rn', vim.lsp.buf.rename, { desc = 'Rename' })
map('n', '<leader>ca', vim.lsp.buf.code_action, { desc = 'Code Action' })
map('n', '[c', '<cmd>lua vim.diagnostic.goto_prev({ wrap = false })<CR>', { desc = 'prev diagnostic' })
map('n', ']c', '<cmd>lua vim.diagnostic.goto_next({ wrap = false })<CR>', { desc = 'next diagnostic' })
map('n', '[c', '<cmd>lua vim.diagnostic.jump({ count = -1, float = true })<CR>', { desc = 'prev diagnostic' })
map('n', ']c', '<cmd>lua vim.diagnostic.jump({ count = 1, float = true })<CR>', { desc = 'next diagnostic' })
map('n', '<leader>ls', ':Telescope lsp_document_symbols<CR>', { desc = 'Browse Document Symbols' })
map('n', '<leader>ld', ':Telescope lsp_dynamic_workspace_symbols<CR>', { desc = 'Browse Definitions' })
--------------------------------------------------------------------------------
-- Alignment
--------------------------------------------------------------------------------
map('x', 'ga', '<Plug>(EasyAlign)', { desc = 'Easy Alignment' })
map('n', 'ga', '<Plug>(EasyAlign)', { desc = 'Easy Alignment' })

View file

@ -126,14 +126,6 @@ require("lazy").setup({
}
},
-- Treesitter: Neovim bindings for the Tree-sitter parser generator tool and
-- incremental parsing library.
-- -------------------------------------------------------------------------
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate'
},
-- Neovim-native LSP Implementation
--
-- Some languages are supported elsewhere via plugins that know how to
@ -349,4 +341,8 @@ require("lazy").setup({
-- i3 configuration syntax
-- -------------------------------------------------------------------------
'mboughaba/i3config.vim',
-- Alignment support via `ga` in normal and visual selection mode.
-- -------------------------------------------------------------------------
'junegunn/vim-easy-align',
})

View file

@ -1,7 +1,6 @@
-- Note that Metals _does not use nvim-lspconfig_.
-- It still uses the nvim LSP, however.
-- Autocmd that will actually be in charging of starting the whole thing
local nvim_metals_group = vim.api.nvim_create_augroup(
'nvim-metals',

View file

@ -1,34 +0,0 @@
require'nvim-treesitter.configs'.setup {
-- One of "all", "maintained", or a list of languages
ensure_installed = {
"bash", "scala", "yaml", "css", "javascript", "lua", "hcl", "json",
"toml", "sql", "python", "gitcommit", "gitignore", "html"
},
-- This will be populated after load.
modules = {},
-- Only enable if CLI treesitter is installed.
auto_install = false,
-- Install languages synchronously (only applied to `ensure_installed`)
sync_install = false,
-- List of parsers to ignore installing
ignore_install = { },
highlight = {
enable = true,
disable = {},
-- Setting this to true will run `:h syntax` and tree-sitter at the same
-- time. Set this to `true` if you depend on 'syntax' being enabled (like
-- for indentation). Using this option may slow down your editor, and you
-- may see some duplicate highlights. Instead of true it can also be a list
-- of languages
additional_vim_regex_highlighting = false,
},
indent = {
enable = false
}
}

28
.zshrc
View file

@ -37,6 +37,9 @@ export FZF_CTRL_R_OPTS="
--color header:italic
--header 'Press CTRL-Y to copy command into clipboard'"
# Enable ZSH Completion
autoload -Uz compinit && compinit
# =============================================================================
# Allow for menu-style tab completion.
# =============================================================================
@ -147,9 +150,28 @@ else
echo $SSH_AGENT_PID > $ssh_agent_pid_file
fi
# =============================================================================
# Custom Functions
# =============================================================================
# This function helps get back to the git root, which is really commonly useful
# when deep in a source directory. Aliased to `gr`.
function jump-to-git-root {
local git_root="$(git rev-parse --show-toplevel 2>/dev/null)"
if [[ -z $git_root ]]; then
>&2 echo 'Not a Git repo!'
return 1
fi
local current_pwd=$(pwd)
OLDPWD=$current_pwd
cd $git_root
}
# =============================================================================
# Aliases
# =============================================================================
alias gr=jump-to-git-root
if command -v eza > /dev/null 2>&1; then
alias ls='eza'
alias ll='eza -l'
@ -199,9 +221,10 @@ fi
# =============================================================================
zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash
fpath=(~/.zsh $fpath)
autoload -Uz compinit && compinit
# This directory contains _git, a git completion script.
# We _also_ need the BASH one that is referenced above.
fpath=(~/.zsh $fpath)
# =============================================================================
# Initialize Starship
@ -213,3 +236,4 @@ eval "$(starship init zsh)"
# This must be the last item in this file.
# =============================================================================
source $local_install_dir/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
eval "$(atuin init zsh)"