Compare commits

..

5 Commits

Author SHA1 Message Date
Rob Watson e142630914 chore(nvim): remove vim-go 2024-11-10 14:47:47 +01:00
Rob Watson ee24a7ce17 chore(zsh): aliases 2024-11-10 14:47:20 +01:00
Rob Watson 7a8f5f9073 chore(nvim): re-enable rust-analyzer proc macro support 2024-11-10 14:47:00 +01:00
Rob Watson 751f0376bc chore(nvim): silence conform 2024-11-10 14:45:53 +01:00
Rob Watson fd6ebe5c78 chore(nvim): aerial config 2024-11-10 14:45:24 +01:00
5 changed files with 21 additions and 28 deletions

5
nvimrc
View File

@ -276,11 +276,6 @@ let g:vimsyn_embed= 'lPr'
" vim-fugitive
packadd! vim-fugitive " https://github.com/tpope/vim-fugitive.git
" vim-go
" Doesn't work in after/ftplugin/go.vim:
let g:go_def_mapping_enabled = 0
packadd! vim-go " https://github.com/fatih/vim-go.git
" load internal plugins:
runtime macros/matchit.vim

View File

@ -1,7 +1,7 @@
require("aerial").setup({
on_attach = function(bufnr)
vim.keymap.set("n", "[", "<cmd>AerialPrev<CR>", { buffer = bufnr })
vim.keymap.set("n", "]", "<cmd>AerialNext<CR>", { buffer = bufnr })
vim.keymap.set("n", "[s", "<cmd>AerialPrev<CR>", { buffer = bufnr, noremap = true })
vim.keymap.set("n", "]s", "<cmd>AerialNext<CR>", { buffer = bufnr, noremap = true })
end,
autojump = true,
nerd_font = "auto",

View File

@ -20,5 +20,5 @@ require("conform").setup({
lsp_fallback = true,
},
log_level = vim.log.levels.ERROR,
notify_on_error = true,
notify_on_error = false,
})

View File

@ -66,23 +66,19 @@ nvim_lsp.gopls.setup({
unusedresult = true,
nilness = true,
},
buildFlags = { "-tags=acceptance" }
buildFlags = { "-tags=acceptance" },
},
},
init_options = {
usePlaceholders = true,
},
capabilities = vim.tbl_extend(
"error",
capabilities,
{
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true
}
}
}
),
capabilities = vim.tbl_extend("error", capabilities, {
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true,
},
},
}),
on_attach = on_attach,
})
@ -103,12 +99,12 @@ nvim_lsp.rust_analyzer.setup({
enable = true,
},
},
procMacro = {
enable = false,
},
diagnostics = {
disabled = { "unresolved-proc-macro" },
},
-- procMacro = {
-- enable = false,
-- },
-- diagnostics = {
-- disabled = { "unresolved-proc-macro" },
-- },
},
},
})

6
zshrc
View File

@ -72,6 +72,7 @@ alias cdg=cdgit
alias cdgit='cd $(git rev-parse --show-toplevel)'
alias clp="tmux kill-pane"
alias clw="tmux kill-window"
alias ct="cargo test"
alias d="docker"
alias dc="docker-compose -f docker-compose.yml"
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
@ -102,6 +103,7 @@ alias kgp="kubectl get pod -o wide"
alias kgrpcurl="kubectl run grpcurl --image networld/grpcurl --image-pull-policy=Always -it --rm -- sh"
alias kgs="kubectl get svc -o wide"
alias kmplayer="kubectl run mplayer --image olmesm/mplayer-docker:latest --image-pull-policy=Always -it --rm -- sh"
alias kt="kubetail"
alias kw="kubectl get events -w"
alias ll="eza -l --group-directories-first --git"
alias ls="eza --color=auto"
@ -129,8 +131,8 @@ alias tp="telepresence"
alias tpl="telepresence list"
alias vim="nvim"
alias wg="sudo wg"
alias wgdown="sudo wgdown"
alias wgup="sudo wgup"
alias wgdown="sudo $HOME/script/wgdown"
alias wgup="sudo $HOME/script/wgup"
alias zzz="sudo systemctl hibernate"
ksecd() { kubectl get secret "$1" -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' }
rgw() { SEARCH_TERM=$1; shift; rg -g '!vendor/' "\b$SEARCH_TERM\b" $* }