Compare commits
7 Commits
3eaddcfb7c
...
main
Author | SHA1 | Date | |
---|---|---|---|
6deba070cb
|
|||
4c71f795aa
|
|||
5557d68a9a
|
|||
ac6926123a
|
|||
dfc3511aa3
|
|||
4334c8c03b
|
|||
5dbd41d75b
|
@@ -45,19 +45,3 @@ C-r = [
|
|||||||
|
|
||||||
[keys.normal.space]
|
[keys.normal.space]
|
||||||
i = ":toggle lsp.display-inlay-hints"
|
i = ":toggle lsp.display-inlay-hints"
|
||||||
|
|
||||||
# File explorer with yazi
|
|
||||||
e = [
|
|
||||||
":sh rm -f /tmp/unique-file-c5140c67",
|
|
||||||
":insert-output yazi '%{buffer_name}' --chooser-file=/tmp/unique-file-c5140c67",
|
|
||||||
":insert-output echo \"x1b[?1049h\" > /dev/tty",
|
|
||||||
":open %sh{cat /tmp/unique-file-c5140c67}",
|
|
||||||
":redraw",
|
|
||||||
]
|
|
||||||
E = [
|
|
||||||
":sh rm -f /tmp/unique-file-bea21125",
|
|
||||||
":insert-output yazi '%{workspace_directory}' --chooser-file=/tmp/unique-file-bea21125",
|
|
||||||
":insert-output echo \"x1b[?1049h\" > /dev/tty",
|
|
||||||
":open %sh{cat /tmp/unique-file-bea21125}",
|
|
||||||
":redraw",
|
|
||||||
]
|
|
||||||
|
@@ -3,9 +3,24 @@ name = "env"
|
|||||||
scope = "text.env"
|
scope = "text.env"
|
||||||
file-types = ["test", "local", "development", "staging", "production", "example", "env"]
|
file-types = ["test", "local", "development", "staging", "production", "example", "env"]
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "java"
|
||||||
|
file-types = ["java", "jav", "pde", "painless"]
|
||||||
|
|
||||||
[language-server.rust-analyzer.config.check]
|
[language-server.rust-analyzer.config.check]
|
||||||
command = "clippy"
|
command = "clippy"
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "go"
|
||||||
|
auto-format = true
|
||||||
|
language-servers = [ "gopls", "golangci-lint-lsp" ]
|
||||||
|
|
||||||
|
[language-server.golangci-lint-lsp]
|
||||||
|
command = "golangci-lint-langserver"
|
||||||
|
|
||||||
|
[language-server.golangci-lint-lsp.config]
|
||||||
|
command = ["golangci-lint", "run", "--output.json.path", "stdout", "--show-stats=false", "--issues-exit-code=1"]
|
||||||
|
|
||||||
# It is recommended to place the necessary configurations below inside a project's
|
# It is recommended to place the necessary configurations below inside a project's
|
||||||
# .helix/languages.toml directory
|
# .helix/languages.toml directory
|
||||||
#
|
#
|
||||||
|
4
zsh.d/goenv.zsh
Normal file
4
zsh.d/goenv.zsh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Enable goenv if it is installed
|
||||||
|
if (( $+commands[goenv] )); then
|
||||||
|
eval "$(goenv init -)"
|
||||||
|
fi
|
@@ -1,7 +1,6 @@
|
|||||||
# NVM
|
# Enable nvm if it is installed
|
||||||
if [[ -s "$NVM_DIR/nvm.sh" ]]; then
|
if [ -d "$HOME/.nvm" ]; then
|
||||||
source "$NVM_DIR/nvm.sh" # This loads nvm
|
export NVM_DIR="$HOME/.nvm"
|
||||||
fi
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
if [[ -s "$NVM_DIR/bash_completion" ]]; then
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||||
source "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
||||||
fi
|
fi
|
||||||
|
4
zsh.d/rbenv.zsh
Normal file
4
zsh.d/rbenv.zsh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Enable rbenv if it is installed
|
||||||
|
if (( $+commands[rbenv] )); then
|
||||||
|
eval "$(rbenv init - --no-rehash zsh)"
|
||||||
|
fi
|
12
zshenv.zsh
12
zshenv.zsh
@@ -19,18 +19,6 @@ fpath+=(~/.zsh/completions)
|
|||||||
# Setup cargo
|
# Setup cargo
|
||||||
[[ -s ~/.cargo/env ]] && source ~/.cargo/env
|
[[ -s ~/.cargo/env ]] && source ~/.cargo/env
|
||||||
|
|
||||||
# Local gems
|
|
||||||
if (( $+commands[ruby] )); then
|
|
||||||
local gem_bin_path="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin"
|
|
||||||
[[ -d "$gem_bin_path" ]] && path+=("$gem_bin_path")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Setup go paths
|
|
||||||
if (( $+commands[go] )); then
|
|
||||||
local go_bin_path="$(go env GOPATH)/bin"
|
|
||||||
[[ -d "$go_bin_path" ]] && path+=("$go_bin_path")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if (( $+commands[fd] )); then
|
if (( $+commands[fd] )); then
|
||||||
export FZF_DEFAULT_COMMAND="fd --type f"
|
export FZF_DEFAULT_COMMAND="fd --type f"
|
||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# Option adjustments
|
# Option adjustments
|
||||||
unsetopt nomatch
|
unsetopt nomatch
|
||||||
|
|
||||||
# Swap CAPSLOCK and ESC
|
# Swap CAPSLOCK and ESC (keyd is a better option)
|
||||||
setxkbmap -option caps:swapescape
|
setxkbmap -option caps:swapescape
|
||||||
|
|
||||||
# conf.d style configurations
|
# conf.d style configurations
|
||||||
|
Reference in New Issue
Block a user