Compare commits

...

7 Commits

7 changed files with 29 additions and 35 deletions

View File

@@ -45,19 +45,3 @@ C-r = [
[keys.normal.space]
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",
]

View File

@@ -3,9 +3,24 @@ name = "env"
scope = "text.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]
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
# .helix/languages.toml directory
#

4
zsh.d/goenv.zsh Normal file
View File

@@ -0,0 +1,4 @@
# Enable goenv if it is installed
if (( $+commands[goenv] )); then
eval "$(goenv init -)"
fi

View File

@@ -1,7 +1,6 @@
# NVM
if [[ -s "$NVM_DIR/nvm.sh" ]]; then
source "$NVM_DIR/nvm.sh" # This loads nvm
fi
if [[ -s "$NVM_DIR/bash_completion" ]]; then
source "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Enable nvm if it is installed
if [ -d "$HOME/.nvm" ]; then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
fi

4
zsh.d/rbenv.zsh Normal file
View File

@@ -0,0 +1,4 @@
# Enable rbenv if it is installed
if (( $+commands[rbenv] )); then
eval "$(rbenv init - --no-rehash zsh)"
fi

View File

@@ -19,18 +19,6 @@ fpath+=(~/.zsh/completions)
# Setup cargo
[[ -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
export FZF_DEFAULT_COMMAND="fd --type f"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"

View File

@@ -1,7 +1,7 @@
# Option adjustments
unsetopt nomatch
# Swap CAPSLOCK and ESC
# Swap CAPSLOCK and ESC (keyd is a better option)
setxkbmap -option caps:swapescape
# conf.d style configurations