helix etc.
This commit is contained in:
26
helix/config.toml
Normal file
26
helix/config.toml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
theme = "catppuccin_frappe"
|
||||||
|
|
||||||
|
[editor]
|
||||||
|
auto-format = false
|
||||||
|
auto-save = true
|
||||||
|
# completion-replace = true
|
||||||
|
cursorline = true
|
||||||
|
idle-timeout = 0
|
||||||
|
rulers = [100]
|
||||||
|
text-width = 100
|
||||||
|
|
||||||
|
[editor.lsp]
|
||||||
|
goto-reference-include-declaration = false
|
||||||
|
|
||||||
|
[editor.cursor-shape]
|
||||||
|
insert = "bar"
|
||||||
|
|
||||||
|
[editor.smart-tab]
|
||||||
|
supersede-menu = true
|
||||||
|
|
||||||
|
[keys.normal.space]
|
||||||
|
space = "file_picker"
|
||||||
|
"," = "buffer_picker"
|
||||||
|
|
||||||
|
[editor.whitespace.render]
|
||||||
|
newline = "all"
|
||||||
45
helix/languages.toml
Normal file
45
helix/languages.toml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
[language-server.eslint]
|
||||||
|
args = ["--stdio"]
|
||||||
|
command = "vscode-eslint-language-server"
|
||||||
|
|
||||||
|
[language-server.eslint.config]
|
||||||
|
# format = true
|
||||||
|
nodePath = ""
|
||||||
|
# onIgnoredFiles = "off"
|
||||||
|
# packageManager = "yarn"
|
||||||
|
quiet = false
|
||||||
|
rulesCustomizations = []
|
||||||
|
run = "onType"
|
||||||
|
# useESLintClass = false
|
||||||
|
validate = "on"
|
||||||
|
codeAction = { disableRuleComment = { enable = true, location = "separateLine" }, showDocumentation = { enable = true } }
|
||||||
|
# codeActionsOnSave = { mode = "all" }
|
||||||
|
experimental = {}
|
||||||
|
problems = { shortenToSingleLine = false }
|
||||||
|
# workingDirectory = { mode = "auto" }
|
||||||
|
|
||||||
|
# [language-server.jdtls]
|
||||||
|
# args = ["--jvm-arg=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=1044"]
|
||||||
|
|
||||||
|
[language-server.jdtls.config.java.autobuild]
|
||||||
|
enabled = true
|
||||||
|
|
||||||
|
[language-server.jdtls.config.java.completion]
|
||||||
|
maxResults = 1000
|
||||||
|
|
||||||
|
[language-server.jdtls.config.java.format.settings]
|
||||||
|
url = "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml"
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "typescript"
|
||||||
|
language-servers = [ "typescript-language-server", "eslint" ]
|
||||||
|
indent = { tab-width = 4, unit = " " }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "tsx"
|
||||||
|
language-servers = [ "typescript-language-server", "eslint" ]
|
||||||
|
indent = { tab-width = 4, unit = " " }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "java"
|
||||||
|
indent = { tab-width = 4, unit = " " }
|
||||||
@@ -14,17 +14,17 @@ pkgs: {
|
|||||||
set -g @catppuccin_window_default_text "#W"
|
set -g @catppuccin_window_default_text "#W"
|
||||||
set -g @catppuccin_window_current_text "#W"'';
|
set -g @catppuccin_window_current_text "#W"'';
|
||||||
}
|
}
|
||||||
{
|
# {
|
||||||
plugin = pkgs.tmuxPlugins.tmux-thumbs;
|
# plugin = pkgs.tmuxPlugins.tmux-thumbs;
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
set -g @thumbs-unique enabled
|
# set -g @thumbs-unique enabled
|
||||||
'';
|
# '';
|
||||||
}
|
# }
|
||||||
];
|
];
|
||||||
shell = pkgs.zsh + "/bin/zsh";
|
shell = pkgs.zsh + "/bin/zsh";
|
||||||
shortcut = "Space";
|
shortcut = "Space";
|
||||||
tmuxinator.enable = true;
|
tmuxinator.enable = true;
|
||||||
terminal = "screen-256color";
|
terminal = "xterm-256color";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||||
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
||||||
|
|||||||
@@ -4,24 +4,25 @@
|
|||||||
# {
|
# {
|
||||||
# helix = prev.rustPlatform.buildRustPackage rec {
|
# helix = prev.rustPlatform.buildRustPackage rec {
|
||||||
# pname = "helix";
|
# pname = "helix";
|
||||||
# version = "24.03";
|
# version = "master";
|
||||||
#
|
|
||||||
# # This release tarball includes source code for the tree-sitter grammars,
|
# # This release tarball includes source code for the tree-sitter grammars,
|
||||||
# # which is not ordinarily part of the repository.
|
# # which is not ordinarily part of the repository.
|
||||||
# src = prev.fetchzip {
|
# src = prev.fetchzip {
|
||||||
# url = "https://github.com/helix-editor/helix/releases/download/${version}/helix-${version}-source.tar.xz";
|
# # url = "https://github.com/helix-editor/helix/releases/download/${version}/helix-${version}-source.tar.xz";
|
||||||
# hash = "sha256-1myVGFBwdLguZDPo1jrth/q2i5rn5R2+BVKIkCCUalc=";
|
# url = "https://github.com/helix-editor/helix/archive/109f53fb60f1b126c4c9afd97dd75972725d04ac.zip";
|
||||||
|
# hash = "sha256-WzxaZ+X5HGen81EWVi0dirMzH4xSh4hV1flXSLl0P1k=";
|
||||||
# stripRoot = false;
|
# stripRoot = false;
|
||||||
# };
|
# };
|
||||||
#
|
|
||||||
# cargoHash = "sha256-THzPUVcmboVJHu3rJ6rev3GrkNilZRMlitCx7M1+HBE=";
|
# cargoHash = "sha256-THzPUVcmboVJHu3rJ6rev3GrkNilZRMlitCx7M1+HBE=";
|
||||||
#
|
|
||||||
# nativeBuildInputs = [ prev.git prev.installShellFiles prev.makeWrapper ];
|
# nativeBuildInputs = [ prev.git prev.installShellFiles prev.makeWrapper ];
|
||||||
#
|
|
||||||
# postInstall = ''
|
# postInstall = ''
|
||||||
# # not needed at runtime
|
# # not needed at runtime
|
||||||
# rm -r runtime/grammars/sources
|
# rm -r runtime/grammars/sources
|
||||||
#
|
|
||||||
# mkdir -p $out/lib
|
# mkdir -p $out/lib
|
||||||
# cp -r runtime $out/lib
|
# cp -r runtime $out/lib
|
||||||
# installShellCompletion contrib/completion/hx.{bash,fish,zsh}
|
# installShellCompletion contrib/completion/hx.{bash,fish,zsh}
|
||||||
@@ -32,7 +33,7 @@
|
|||||||
# postFixup = ''
|
# postFixup = ''
|
||||||
# wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime
|
# wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime
|
||||||
# '';
|
# '';
|
||||||
#
|
|
||||||
# meta = with prev.lib; {
|
# meta = with prev.lib; {
|
||||||
# description = "A post-modern modal text editor";
|
# description = "A post-modern modal text editor";
|
||||||
# homepage = "https://helix-editor.com";
|
# homepage = "https://helix-editor.com";
|
||||||
|
|||||||
Reference in New Issue
Block a user