diff --git a/.bashrc b/.bashrc index 61bcda8..ee36013 100644 --- a/.bashrc +++ b/.bashrc @@ -97,6 +97,12 @@ if [ -d "$N_PREFIX/bin" ]; then export PATH="$N_PREFIX/bin:$PATH" 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 # ============================================================================= diff --git a/.config/nvim/lua/general.lua b/.config/nvim/lua/general.lua index 1620aaa..e35f301 100644 --- a/.config/nvim/lua/general.lua +++ b/.config/nvim/lua/general.lua @@ -79,6 +79,16 @@ vim.api.nvim_create_autocmd("FileType", { end, }) +----------------------------------------------------------- +-- Custom File Types +----------------------------------------------------------- +vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, { + pattern = {'*.aum', '*.aui'}, + callback = function() + vim.bo.filetype = "austral" + end, +}) + ----------------------------------------------------------- -- Memory, CPU ----------------------------------------------------------- diff --git a/.config/nvim/lua/keymap.lua b/.config/nvim/lua/keymap.lua index c67962d..1831c38 100644 --- a/.config/nvim/lua/keymap.lua +++ b/.config/nvim/lua/keymap.lua @@ -48,3 +48,4 @@ map('n', 'rn', vim.lsp.buf.rename, { desc = 'Rename' }) map('n', 'ca', vim.lsp.buf.code_action, { desc = 'Code Action' }) map('n', '[c', 'lua vim.diagnostic.goto_prev({ wrap = false })', { desc = 'prev diagnostic' }) map('n', ']c', 'lua vim.diagnostic.goto_next({ wrap = false })', { desc = 'next diagnostic' }) +map('n', 'ls', ':Telescope lsp_document_symbols', { desc = 'Browse Document Symbols' }) diff --git a/.config/nvim/lua/plugin_management.lua b/.config/nvim/lua/plugin_management.lua index f777ec0..cab4b31 100644 --- a/.config/nvim/lua/plugin_management.lua +++ b/.config/nvim/lua/plugin_management.lua @@ -315,21 +315,32 @@ require("lazy").setup({ { 'folke/todo-comments.nvim', dependencies = 'nvim-lua/plenary.nvim', + config = function() + require("todo-comments").setup{} + end, }, -- Racket support -- ------------------------------------------------------------------------- { 'benknoble/vim-racket', - event = 'BufEnter *.rkt', + event = 'BufReadPre,BufNewFile *.rkt', lazy = true, }, + -- Janet support + -- ------------------------------------------------------------------------- + { + 'bakpakin/janet.vim', + event = 'BufReadPre,BufNewFile *.janet', + lazy = true + }, + -- PlantUML syntax -- ------------------------------------------------------------------------- { 'aklt/plantuml-syntax', - event = 'BufEnter *.puml', + event = 'BufReadPre,BufNewFile *.puml', lazy = true, }, @@ -337,7 +348,7 @@ require("lazy").setup({ -- ------------------------------------------------------------------------- { 'hashivim/vim-terraform', - event = 'BufEnter *.tf', + event = 'BufReadPre,BufNewFile *.tf', lazy = true, }, diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index f262bb3..343d77a 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -2,7 +2,8 @@ require'nvim-treesitter.configs'.setup { -- One of "all", "maintained", or a list of languages ensure_installed = { "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`) diff --git a/.zshrc b/.zshrc index 018859e..90b4fae 100644 --- a/.zshrc +++ b/.zshrc @@ -72,6 +72,12 @@ if [ -d "$GO_HOME/bin" ]; then export PATH="$GO_HOME/bin:$PATH" 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 # ============================================================================= @@ -122,6 +128,11 @@ fpath=(~/.zsh $fpath) 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 # This must be the last item in this file.