Some regular maintenance and minor support updates.

This commit is contained in:
pfm 2023-08-01 21:46:04 -05:00
parent 589bbeeb68
commit 6dd28266f7
6 changed files with 44 additions and 4 deletions

View file

@ -97,6 +97,12 @@ if [ -d "$N_PREFIX/bin" ]; then
export PATH="$N_PREFIX/bin:$PATH" export PATH="$N_PREFIX/bin:$PATH"
fi fi
export DOTNET_ROOT="$HOME/.dotnet"
export DOTNET_CLI_TELEMETRY_OPTOUT=1
if [ -d "$DOTNET_ROOT" ]; then
export PATH="$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH"
fi
# ============================================================================= # =============================================================================
# SSH Agent Management # SSH Agent Management
# ============================================================================= # =============================================================================

View file

@ -79,6 +79,16 @@ vim.api.nvim_create_autocmd("FileType", {
end, end,
}) })
-----------------------------------------------------------
-- Custom File Types
-----------------------------------------------------------
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
pattern = {'*.aum', '*.aui'},
callback = function()
vim.bo.filetype = "austral"
end,
})
----------------------------------------------------------- -----------------------------------------------------------
-- Memory, CPU -- Memory, CPU
----------------------------------------------------------- -----------------------------------------------------------

View file

@ -48,3 +48,4 @@ map('n', '<leader>rn', vim.lsp.buf.rename, { desc = 'Rename' })
map('n', '<leader>ca', vim.lsp.buf.code_action, { desc = 'Code Action' }) 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_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.goto_next({ wrap = false })<CR>', { desc = 'next diagnostic' })
map('n', '<leader>ls', ':Telescope lsp_document_symbols<CR>', { desc = 'Browse Document Symbols' })

View file

@ -315,21 +315,32 @@ require("lazy").setup({
{ {
'folke/todo-comments.nvim', 'folke/todo-comments.nvim',
dependencies = 'nvim-lua/plenary.nvim', dependencies = 'nvim-lua/plenary.nvim',
config = function()
require("todo-comments").setup{}
end,
}, },
-- Racket support -- Racket support
-- ------------------------------------------------------------------------- -- -------------------------------------------------------------------------
{ {
'benknoble/vim-racket', 'benknoble/vim-racket',
event = 'BufEnter *.rkt', event = 'BufReadPre,BufNewFile *.rkt',
lazy = true, lazy = true,
}, },
-- Janet support
-- -------------------------------------------------------------------------
{
'bakpakin/janet.vim',
event = 'BufReadPre,BufNewFile *.janet',
lazy = true
},
-- PlantUML syntax -- PlantUML syntax
-- ------------------------------------------------------------------------- -- -------------------------------------------------------------------------
{ {
'aklt/plantuml-syntax', 'aklt/plantuml-syntax',
event = 'BufEnter *.puml', event = 'BufReadPre,BufNewFile *.puml',
lazy = true, lazy = true,
}, },
@ -337,7 +348,7 @@ require("lazy").setup({
-- ------------------------------------------------------------------------- -- -------------------------------------------------------------------------
{ {
'hashivim/vim-terraform', 'hashivim/vim-terraform',
event = 'BufEnter *.tf', event = 'BufReadPre,BufNewFile *.tf',
lazy = true, lazy = true,
}, },

View file

@ -2,7 +2,8 @@ require'nvim-treesitter.configs'.setup {
-- One of "all", "maintained", or a list of languages -- One of "all", "maintained", or a list of languages
ensure_installed = { ensure_installed = {
"c", "zig", "bash", "scala", "yaml", "css", "javascript", "c", "zig", "bash", "scala", "yaml", "css", "javascript",
"latex", "clojure", "lua", "cpp", "hcl", "json" "latex", "clojure", "lua", "cpp", "hcl", "json", "ocaml",
"gleam"
}, },
-- Install languages synchronously (only applied to `ensure_installed`) -- Install languages synchronously (only applied to `ensure_installed`)

11
.zshrc
View file

@ -72,6 +72,12 @@ if [ -d "$GO_HOME/bin" ]; then
export PATH="$GO_HOME/bin:$PATH" export PATH="$GO_HOME/bin:$PATH"
fi fi
export DOTNET_ROOT="$HOME/.dotnet"
export DOTNET_CLI_TELEMETRY_OPTOUT=1
if [ -d "$DOTNET_ROOT" ]; then
export PATH="$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH"
fi
# ============================================================================= # =============================================================================
# SSH Agent Management # SSH Agent Management
# ============================================================================= # =============================================================================
@ -122,6 +128,11 @@ fpath=(~/.zsh $fpath)
autoload -Uz compinit && compinit autoload -Uz compinit && compinit
# =============================================================================
# OPAM Completion
# =============================================================================
[[ ! -r /home/pfm/.opam/opam-init/init.zsh ]] || source /home/pfm/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
# ============================================================================= # =============================================================================
# Enable Command Syntax Highlighting # Enable Command Syntax Highlighting
# This must be the last item in this file. # This must be the last item in this file.