From 77eb4bd4a8fc1a78ba9d4346999a56e6d56ef432 Mon Sep 17 00:00:00 2001 From: Tovi Jaeschke-Rogers Date: Fri, 16 Aug 2024 10:27:12 +0930 Subject: [PATCH] feat: add rust and latex stuff --- .config/nvim/lua/tovi/plugins/lspconfig.lua | 11 ++--------- .config/nvim/lua/tovi/plugins/nvim-treesitter.lua | 2 ++ .local/bin/tmux-sessionizer | 2 +- .zshrc | 2 ++ 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.config/nvim/lua/tovi/plugins/lspconfig.lua b/.config/nvim/lua/tovi/plugins/lspconfig.lua index 0c1e8e1..f2a4924 100644 --- a/.config/nvim/lua/tovi/plugins/lspconfig.lua +++ b/.config/nvim/lua/tovi/plugins/lspconfig.lua @@ -225,15 +225,8 @@ return { }, rust_analyzer = { - settings = { - ["rust-analyzer"] = { - cargo = { - features = { - "client", - "server", - }, - }, - }, + diagnostics = { + enable = false, }, }, } diff --git a/.config/nvim/lua/tovi/plugins/nvim-treesitter.lua b/.config/nvim/lua/tovi/plugins/nvim-treesitter.lua index cedef10..989ad72 100644 --- a/.config/nvim/lua/tovi/plugins/nvim-treesitter.lua +++ b/.config/nvim/lua/tovi/plugins/nvim-treesitter.lua @@ -29,12 +29,14 @@ return { "dockerfile", "gitignore", "php", + "latex", }, -- auto install above language parsers auto_install = true, -- enable syntax highlighting highlight = { enable = true, + disable = { "latex" } }, -- enable indentation indent = { enable = true }, diff --git a/.local/bin/tmux-sessionizer b/.local/bin/tmux-sessionizer index 0ca0050..1c22018 100755 --- a/.local/bin/tmux-sessionizer +++ b/.local/bin/tmux-sessionizer @@ -3,7 +3,7 @@ if [[ $# -eq 1 ]]; then selected=$1 else - selected=$(find ~/Projects ~/go/src/git.tovijaeschke.xyz ~/ -mindepth 1 -maxdepth 1 -type d | fzf) + selected=$(find ~/Projects ~/go/src/git.tovijaeschke.xyz ~/go/src/git.tovijaeschke.xyz/tovi/ ~/ -mindepth 1 -maxdepth 1 -type d | fzf) fi if [[ -z $selected ]]; then diff --git a/.zshrc b/.zshrc index 3e801df..7695f56 100644 --- a/.zshrc +++ b/.zshrc @@ -21,6 +21,8 @@ export EDITOR=nvim export GIT_EDITOR=nvim export PATH="${HOME}/.local/bin/:${HOME}/go/bin:${HOME}/.cargo/bin:${PATH}" +export DOCKER_DEFAULT_PLATFORM=linux/amd64 + # Enable substitution in the prompt. setopt prompt_subst