mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-23 06:58:04 +01:00
Compare commits
No commits in common. "256c856778874e99632ed797e081781a91db245c" and "e5bf69149d0b68a804ce3705217415f53263c4bc" have entirely different histories.
256c856778
...
e5bf69149d
9 changed files with 42 additions and 60 deletions
|
@ -1,14 +1,12 @@
|
||||||
{{- if (get . "brew") }}
|
fish_add_path /opt/homebrew/opt/curl/bin /opt/homebrew/bin /opt/homebrew/sbin $HOME/.local/bin $HOME/.cargo/bin $HOME/go/bin
|
||||||
{{- if eq .chezmoi.os "darwin" }}
|
{{- if not (get . "sudo") }}
|
||||||
{{- if (get . "sudo") }}
|
fish_add_path $HOME/.local/homebrew/bin
|
||||||
eval (/opt/homebrew/bin/brew shellenv)
|
command -v brew > /dev/null; and eval "$(brew shellenv)"
|
||||||
{{- else }}
|
|
||||||
eval ($HOME/.local/homebrew/bin/brew shellenv)
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if eq .chezmoi.os "linux" }}
|
||||||
|
fish_add_path /home/linuxbrew/.linuxbrew/bin $HOME/.local/share/JetBrains/Toolbox/scripts
|
||||||
|
eval "$(brew shellenv)"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
fish_add_path $HOME/.local/bin $HOME/.cargo/bin $HOME/go/bin
|
|
||||||
|
|
||||||
set -gx RUSTC_WRAPPER sccache
|
set -gx RUSTC_WRAPPER sccache
|
||||||
|
|
||||||
|
@ -47,7 +45,7 @@ test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shel
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
set -gx DJANGOPROJECT_DATA_DIR $HOME/.djangoproject
|
set -gx DJANGOPROJECT_DATA_DIR $HOME/.djangoproject
|
||||||
|
|
||||||
type -q mise && mise activate fish | source
|
mise activate fish | source
|
||||||
test -e {$HOME}/.config/fish/work.fish; and source {$HOME}/.config/fish/work.fish
|
test -e {$HOME}/.config/fish/work.fish; and source {$HOME}/.config/fish/work.fish
|
||||||
test -e {$HOME}/.config/fish/secrets.fish; and source {$HOME}/.config/fish/secrets.fish
|
test -e {$HOME}/.config/fish/secrets.fish; and source {$HOME}/.config/fish/secrets.fish
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,6 @@ M.ui = {
|
||||||
lazyload = false,
|
lazyload = false,
|
||||||
show_numbers = true,
|
show_numbers = true,
|
||||||
},
|
},
|
||||||
hl_override = {
|
|
||||||
CursorLine = {
|
|
||||||
bg = "one_bg",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -4,8 +4,8 @@ local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
||||||
local opts = {
|
local opts = {
|
||||||
sources = { -- run these on save
|
sources = { -- run these on save
|
||||||
null_ls.builtins.formatting.gofumpt,
|
null_ls.builtins.formatting.gofumpt,
|
||||||
null_ls.builtins.formatting.goimports,
|
null_ls.builtins.formatting.goimports_reviser,
|
||||||
null_ls.builtins.diagnostics.golangci_lint,
|
null_ls.builtins.formatting.golines,
|
||||||
},
|
},
|
||||||
on_attach = function (client, bufnr)
|
on_attach = function (client, bufnr)
|
||||||
if client.supports_method("textDocument/formatting") then
|
if client.supports_method("textDocument/formatting") then
|
||||||
|
@ -17,7 +17,7 @@ local opts = {
|
||||||
group = augroup,
|
group = augroup,
|
||||||
buffer = bufnr,
|
buffer = bufnr,
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.lsp.buf.format({ async = false })
|
vim.lsp.buf.format({bufnr = bufnr})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,24 +1,9 @@
|
||||||
local plugins = {
|
local plugins = {
|
||||||
{
|
|
||||||
"nvim-treesitter/nvim-treesitter", -- grammars
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {
|
|
||||||
"go",
|
|
||||||
"lua",
|
|
||||||
"python",
|
|
||||||
},
|
|
||||||
auto_install = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim", -- auto install tools
|
"williamboman/mason.nvim", -- auto install tools
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"lua-language-server",
|
|
||||||
"gopls",
|
"gopls",
|
||||||
"gofumpt",
|
|
||||||
"golangci-lint",
|
|
||||||
"goimports",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -55,7 +40,7 @@ local plugins = {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvimtools/none-ls.nvim", -- custom format on save
|
"jose-elias-alvarez/null-ls.nvim", -- custom format on save
|
||||||
ft = "go",
|
ft = "go",
|
||||||
opts = function()
|
opts = function()
|
||||||
return require "custom.configs.null-ls"
|
return require "custom.configs.null-ls"
|
||||||
|
|
|
@ -59,34 +59,31 @@ bind u capture-pane \;\
|
||||||
# DESIGN
|
# DESIGN
|
||||||
|
|
||||||
# clock mode
|
# clock mode
|
||||||
setw -g clock-mode-colour white
|
setw -g clock-mode-colour colour0
|
||||||
# copy mode
|
# copy mode
|
||||||
setw -g mode-style 'fg=white bg=red bold'
|
setw -g mode-style 'fg=colour0 bg=colour1 bold'
|
||||||
|
|
||||||
# pane borders
|
# pane borders
|
||||||
set -g pane-border-style 'fg=red'
|
set -g pane-border-style 'fg=colour1'
|
||||||
set -g pane-active-border-style 'fg=yellow'
|
set -g pane-active-border-style 'fg=colour3'
|
||||||
|
|
||||||
# statusbar
|
# statusbar
|
||||||
set -g status-position bottom
|
set -g status-position bottom
|
||||||
set -g status-justify left
|
set -g status-justify left
|
||||||
set -g status-style 'fg=blue'
|
set -g status-style 'fg=#3670a5'
|
||||||
set -g status-left ' '
|
set -g status-left ''
|
||||||
set -g status-left-style 'fg=blue dim'
|
set -g status-right '%Y-%m-%d %H:%M '
|
||||||
set -g status-right '%Y-%m-%d %H:%M'
|
|
||||||
set -g status-right-length 50
|
set -g status-right-length 50
|
||||||
set -g status-left-length 10
|
set -g status-left-length 10
|
||||||
|
|
||||||
setw -g window-status-current-style 'fg=default bg=blue bold'
|
setw -g window-status-current-style 'fg=#071421 bg=#3670a5 bold'
|
||||||
setw -g window-status-current-format ' #I #W #F '
|
setw -g window-status-current-format ' #I #W #F '
|
||||||
|
|
||||||
setw -g window-status-style 'fg=blue dim'
|
setw -g window-status-style 'fg=#3670a5 dim'
|
||||||
setw -g window-status-format ' #I #W #F '
|
setw -g window-status-format ' #I #[fg=colour7]#W #[fg=#3670a5]#F '
|
||||||
|
|
||||||
setw -g window-status-bell-style 'fg=black bg=yellow bold'
|
setw -g window-status-bell-style 'fg=colour2 bg=#ad6f1d bold'
|
||||||
|
|
||||||
# messages
|
# messages
|
||||||
set -g message-style 'fg=black bg=white bold'
|
set -g message-style 'fg=colour2 bg=colour0 bold'
|
||||||
|
|
||||||
set -g window-style 'dim'
|
|
||||||
set -g window-active-style 'dim'
|
|
||||||
|
|
5
private_dot_bash_profile
Normal file
5
private_dot_bash_profile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
|
||||||
|
|
||||||
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
||||||
|
[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
|
|
@ -1,8 +0,0 @@
|
||||||
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
|
|
||||||
[[ -s "$HOME/.bashrc" ]] && source "$HOME/.bashrc" # Load the default .bashrc
|
|
||||||
|
|
||||||
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/.local/go/bin"
|
|
||||||
{{- if eq .chezmoi.os "linux" }}
|
|
||||||
export PATH="$PATH:$HOME/.local/share/nvim-linux64/bin"
|
|
||||||
{{- end }}
|
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
export EDITOR=nvim
|
export PATH=$PATH:~/bin
|
||||||
export LC_ALL=fr_FR.UTF-8
|
export LC_ALL=fr_FR.UTF-8
|
||||||
|
|
||||||
[ command -v mise &> /dev/null ] && eval "$(mise activate bash)"
|
[ command -v mise &> /dev/null ] && eval "$(mise activate bash)"
|
||||||
|
|
||||||
|
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
|
||||||
|
export PATH="$PATH:$HOME/.rvm/bin:$HOME/Projects/golang/bin"
|
||||||
|
|
||||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
|
||||||
|
|
||||||
[ -f ~/.work.bash ] && source ~/.work.bash
|
[ -f ~/.work.bash ] && source ~/.work.bash
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
|
|
||||||
|
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
|
||||||
|
export PATH="$PATH:$HOME/.rvm/bin"
|
||||||
|
|
||||||
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
||||||
[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
|
[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
|
||||||
|
|
||||||
{{- if and (eq .chezmoi.os "linux") (get . "brew") }}
|
{{- if eq .chezmoi.os "linux" }}
|
||||||
# Set PATH, MANPATH, etc., for Homebrew.
|
# Set PATH, MANPATH, etc., for Homebrew.
|
||||||
[[ -s "/home/linuxbrew/.linuxbrew/bin/brew" ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue