add goenv

This commit is contained in:
DefectingCat
2024-02-18 09:36:03 +08:00
parent 8f43c3a78d
commit a5357d96a2
4 changed files with 12 additions and 3 deletions

View File

@ -54,7 +54,7 @@ update_ms = 500
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
proc_sorting = "cpu direct"
proc_sorting = "memory"
#* Reverse sorting order, True or False.
proc_reversed = False

View File

@ -2,6 +2,7 @@
local M = {}
M.ui = {
lsp_semantic_tokens = false,
transparency = false,
theme = "catppuccin",
statusline = {

View File

@ -55,7 +55,7 @@ local opts = {
extra_args = { "--dialect", "postgres" }, -- change to your dialect
},
},
on_attach = function(client, bufnr)
--[[ on_attach = function(client, bufnr)
if client.supports_method "textDocument/formatting" then
vim.api.nvim_clear_autocmds {
group = augroup,
@ -69,7 +69,7 @@ local opts = {
end,
})
end
end,
end, ]]
}
return opts

View File

@ -36,6 +36,14 @@ eval "$(pyenv init -)"
[ -s "~/.bun/_bun" ] && source "~/.bun/_bun"
# disbale powerlevel10k configuration
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
# golang
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
export GOENV_ROOT="$HOME/.goenv"
export PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)"
export PATH="$GOROOT/bin:$PATH"
export PATH="$PATH:$GOPATH/bin"
# linux
if [[ $OSTYPE == "linux"* ]]; then