As always, a big thank you to all of the contributors! This release saw changes from 125 contributors.
Breaking changes:
suffix
file-types in thefile-types
key in language configuration have been removed (#8006)- The
file-types
key in language configuration no longer matches full filenames without a glob pattern (#8006)
Features:
- Open URLs with the
goto_file
command (#5820) - Support drawing a border around popups and menus (#4313, #9508)
- Track long lived diagnostic sources like Clippy or
rustc
(#6447, #9280)- This improves the handling of diagnostics from sources that only update the diagnostic positions on save.
- Add support for LSP
window/showDocument
requests (#8865) - Refactor ad-hoc hooks to use a new generic event system (#8021, #9668, #9660)
- This improves the behavior of autocompletions. For example navigating in insert mode no longer automatically triggers completions.
- Allow using globs in the language configuration
file-types
key (#8006) - Allow specifying required roots for situational LSP activation (#8696)
- Extend selections using mouse clicks in select mode (#5436)
- Toggle block comments (#4718, #9894)
- Support LSP diagnostic tags (#9780)
- Add a
file-absolute-path
statusline element (#4535) - Cross injection layers in tree-sitter motions (
A-p
/A-o
/A-i
/A-n
) (#5176) - Add a Amp-editor-like jumping command (#8875)
Commands:
:move
- move buffers with LSP support (#8584)- Also see #8949 which made path changes conform to the LSP spec and fixed the behavior of this command.
page_cursor_up
,page_cursor_down
,page_cursor_half_up
,page_cursor_half_down
- commands for scrolling the cursor and page together (#8015):yank-diagnostic
- yank the diagnostic(s) under the primary cursor (#9640)select_line_above
/select_line_below
- extend or shrink a selection based on the direction and anchor (#9080)
Usability improvements:
- Make
roots
key of[[language]]
entries inlanguages.toml
configuration optional (#8803) - Exit select mode in commands that modify the buffer (#8689)
- Use crossterm cursor when out of focus (#6858, #8934)
- Join empty lines with only one space in
join_selections
(#8989) - Introduce a hybrid tree-sitter and contextual indentation heuristic (#8307)
- Allow configuring the indentation heuristic (#8307)
- Check for LSP rename support before showing rename prompt (#9277)
- Normalize
S-<lower-ascii>
keymaps to uppercase ascii (#9213) - Add formatter status to
--health
output (#7986) - Change path normalization strategy to not resolve symlinks (#9330)
- Select subtree within injections in
:tree-sitter-subtree
(#9309) - Use tilde expansion and normalization for
$HELIX_RUNTIME
paths (1bc7aac) - Improve failure message for LSP goto references (#9382)
- Use injection syntax trees for bracket matching (5e0b3cc)
- Respect injections in
:tree-sitter-highlight-name
(8b6565c) - Respect injections in
move_parent_node_end
(035b8ea) - Use
gix
pipeline filter instead of manual CRLF implementation (#9503) - Follow Neovim's truecolor detection (#9577)
- Reload language configuration with
:reload
, SIGHUP (#9415) - Allow numbers as bindings (#8471, #9887)
- Respect undercurl config when terminfo is not available (#9897)
- Ignore
.pijul
,.hg
,.jj
in addition to.git
in file pickers configured to show hidden files (#9935) - Add completion for registers to
:clear-register
and:yank-diagnostic
(#9936) - Repeat last motion for goto next/prev diagnostic (#9966)
- Allow configuring a character to use when rendering narrow no-breaking space (#9604)
- Switch to a streaming regex engine (regex-cursor crate) to significantly speed up regex-based commands and features (#9422, #9756, #9891)
Fixes:
- Swap
*
and+
registers (#8703, #8708) - Use terminfo to reset terminal cursor style (#8591)
- Fix precedence of
@align
captures in indentat computation (#8659) - Only render the preview if a Picker has a preview function (#8667)
- Fix the precedence of
ui.virtual.whitespace
(#8750, #8879) - Fix crash in
:indent-style
(#9087) - Fix
didSave
text inclusion when sync capability is a kind variant (#9101) - Update the history of newly focused views (#9271)
- Initialize diagnostics when opening a document (#8873)
- Sync views when applying edits to unfocused views (#9173)
- This fixes crashes that could occur from LSP workspace edits or
:write-all
.
- This fixes crashes that could occur from LSP workspace edits or
- Treat non-numeric
+arg
s passed in the CLI args as filenames (#9333) - Fix crash when using
mm
on an empty plaintext file (2fb7e50) - Ignore empty tree-sitter nodes in match bracket (445f7a2)
- Exit a language server if it sends a message with invalid JSON (#9332)
- Handle failures to enable bracketed paste (#9353)
- Gate all captures in a pattern behind
#is-not? local
predicates (#9390) - Make path changes LSP spec conformant (#8949)
- Use range positions to determine
insert_newline
motion (#9448) - Fix division by zero when prompt completion area is too small (#9524)
- Add changes to history in clipboard replacement typable commands (#9625)
- Fix a crash in DAP with an unspecified
line
in breakpoints (#9632) - Fix space handling for filenames in bash completion (#9702, #9708)
- Key diagnostics off of paths instead of LSP URIs (#7367)
- Fix panic when using
join_selections_space
(#9783) - Fix panic when using
surround_replace
,surround_delete
(#9796) - Fix panic in
surround_replace
,surround_delete
with nested surrounds and multiple cursors (#9815) - Fix panic in
select_textobject_around
(#9832) - Don't stop reloading documents when reloading fails in
:reload-all
(#9870) - Prevent
shell_keep_pipe
from stopping on nonzero exit status codes (#9817)
Themes:
- Add
gruber-dark
(#8598) - Update
everblush
(#8705) - Update
papercolor
(#8718, #8827) - Add
polmandres
(#8759) - Add
starlight
(#8787) - Update
naysayer
(#8838) - Add modus operandi themes (#8728, #9912)
- Update
rose_pine
(#8946) - Update
darcula
(#8738, #9002, #9449, #9588) - Add modus vivendi themes (#8894, #9912)
- Add
horizon-dark
(#9008, #9493) - Update
noctis
(#9123) - Update
nord
(#9135) - Update monokai pro themes (#9148)
- Update tokyonight themes (#9099, #9724, #9789)
- Add
ttox
(#8524) - Add
voxed
(#9164) - Update
sonokai
(#9370, #9376, #5379) - Update
onedark
,onedarker
(#9397) - Update
cyan_light
(#9375, #9688) - Add
gruvbox_light_soft
,gruvbox_light_hard
(#9266) - Update GitHub themes (#9487)
- Add
term16_dark
,term16_light
(#9477) - Update Zed themes (#9544, #9549)
- Add
curzon
(#9553) - Add
monokai_soda
(#9651) - Update catppuccin themes (#9859)
- Update
rasmus
(#9939) - Update
dark_plus
(#9949, 628dcd5) - Update gruvbox themes (#9960)
- Add jump label theming to
dracula
(#9973) - Add jump label theming to
horizon-dark
(#9984) - Add jump label theming to catppuccin themes (2178adf, #9983)
- Add jump label theming to
onedark
themes (da2dec1) - Add jump label theming to rose-pine themes (#9981)
- Add jump label theming to Nord themes (#10008)
- Add jump label theming to Monokai themes (#10009)
- Add jump label theming to gruvbox themes (#10012)
- Add jump label theming to
kanagawa
(#10030) - Update material themes (#10043)
- Add
jetbrains_dark
(#9967)
New languages:
- Typst (#7474)
- LPF (#8536)
- GN (#6969)
- DBML (#8860)
- log (#8916)
- Janet (#9081, #9247)
- Agda (#8285)
- Avro (#9113)
- Smali (#9089)
- HOCON (#9203)
- Tact (#9512)
- PKL (#9515)
- CEL (#9296)
- SpiceDB (#9296)
- Hoon (#9190)
- DockerCompose (#9661, #9916)
- Groovy (#9350, #9681, #9677)
- FIDL (#9713)
- Powershell (#9827)
- ld (#9835)
- Hyperland config (#9899)
- JSONC (#9906)
- PHP Blade (#9513)
- SuperCollider (#9329)
- Koka (#8727)
- PKGBUILD (#9909, #9943)
- Ada (#9908)
- Helm charts (#9900)
- Ember.js templates (#9902)
- Ohm (#9991)
Updated languages and queries:
- Add HTML injection queries for Rust (#8603)
- Switch to tree-sitter-ron for RON (#8624)
- Update and improve comment highlighting (#8564, #9253, #9800, #10014)
- Highlight type parameters in Rust (#8660)
- Change KDL tree-sitter parsers (#8652)
- Update tree-sitter-markdown (#8721, #10039)
- Update tree-sitter-purescript (#8712)
- Add type parameter highlighting to TypeScript, Go, Haskell, OCaml and Kotlin (#8718)
- Add indentation queries for Scheme and lisps using tree-sitter-scheme (#8720)
- Recognize
meson_options.txt
as Meson (#8794) - Add language server configuration for Nushell (#8878)
- Recognize
musicxml
as XML (#8935) - Update tree-sitter-rescript (#8962)
- Update tree-sitter-python (#8976)
- Recognize
.envrc.local
and.envrc.private
as env (#8988) - Update tree-sitter-gleam (#9003, 9ceeea5)
- Update tree-sitter-d (#9021)
- Fix R-markdown language name for LSP detection (#9012)
- Add haskell-language-server LSP configuration (#9111)
- Recognize
glif
as XML (#9130) - Recognize
.prettierrc
as JSON (#9214) - Add auto-pairs configuration for scheme (#9232)
- Add textobject queries for Scala (#9191)
- Add textobject queries for Protobuf (#9184)
- Update tree-sitter-wren (#8544)
- Add
spago.yaml
as an LSP root for PureScript (#9362) - Improve highlight and indent queries for Bash, Make and CSS (#9393)
- Update tree-sitter-scala (#9348, #9340, #9475)
- Recognize
.bash_history
as Bash (#9401) - Recognize Helix ignore files as ignore (#9447)
- Inject SQL into Scala SQL strings (#9428)
- Update gdscript textobjects (#9288)
- Update Go queries (#9510, #9525)
- Update tree-sitter-nushell (#9502)
- Update tree-sitter-unison, add indent queries (#9505)
- Update tree-sitter-slint (#9551, #9698)
- Update tree-sitter-swift (#9586)
- Add
fish_indent
as formatter for fish (78ed3ad) - Recognize
zon
as Zig (#9582) - Add a formatter for Odin (#9537)
- Update tree-sitter-erlang (#9627, fdcd461)
- Capture Rust fields as argument textobjects (#9637)
- Improve Dart textobjects (#9644)
- Recognize
tmux.conf
as a bash file-type (#9653) - Add textobjects queries for Nix (#9659)
- Add textobjects queries for HCL (#9658)
- Recognize osm and osc extensions as XML (#9697)
- Update tree-sitter-sql (#9634)
- Recognize pde Processing files as Java (#9741)
- Update tree-sitter-lua (#9727)
- Switch tree-sitter-nim parsers (#9722)
- Recognize GTK builder ui files as XML (#9754)
- Add configuration for markdown-oxide language server (#9758)
- Add a shebang for elvish (#9779)
- Fix precedence of Svelte TypeScript injection (#9777)
- Recognize common Dockerfile file types (#9772)
- Recognize NUON files as Nu (#9839)
- Add textobjects for Java native functions and constructors (#9806)
- Fix "braket" typeo in JSX highlights (#9910)
- Update tree-sitter-hurl (#9775)
- Add textobjects queries for Vala (#8541)
- Update tree-sitter-git-config (9610254)
- Recognize 'mmd' as Mermaid (459eb9a)
- Highlight Rust extern crate aliases (c099dde)
- Improve parameter highlighting in C++ (f5d95de)
- Recognize 'rclone.conf' as INI (#9959)
- Add injections for GraphQL and ERB in Ruby heredocs (#10036)
- Add
main.odin
to Odin LSP roots (#9968)
Packaging:
- Allow user overlays in Nix grammars build (#8749)
- Set Cargo feature resolver to v2 (#8917)
- Use workspace inheritance for common Cargo metadata (#8925)
- Remove sourcehut-based tree-sitter grammars from default build (#9316, #9326)
- Add icon to Windows executable (#9104)
A big shout out to all the contributors! We had 118 contributors in this release.
Breaking changes:
- Support multiple language servers per language (#2507)
- This is a breaking change to language configuration
Features:
- Support multiple language servers per language (#2507, #7082, #7286, #8374)
- Add a statusline element for the selected register (#7222)
- Add
%
,#
,.
,*
and+
special registers (#6985) - Add initial support for LSP DidChangeWatchedFiles notifications (#7665)
- Search buffer contents in
global_search
(#5652) - Add a "smart tab" command that intelligently jumps the cursor on tab (#4443)
- Add a statusline element for whether a file is read-only (#7222, #7875)
- Syntax highlight regex prompts (#7738)
- Allow defining alignment in indent queries (#5355)
- Show visual feedback in
surround_replace
(#7588) - Switch to Nucleo for fuzzy matching (#7814, #8148, #8192, #8194)
- Insert a trailing newline on write (#8157)
- Add a
-w
/--working-dir
CLI flag for specifying a working directory on startup (#8223, #8498, #8520) - Accept a
+N
CLI argument to set the first file's line number (#8521) - Accept Helix-specific ignore files in
.helix/ignore
and~/.config/helix/ignore
(#8099)
Commands:
merge_selections
(A-minus
) - merge all selections into one selection that covers all ranges (#7053)move_prev_long_word_end
andextend_prev_long_word_end
- move/extend to the end of the previous WORD (#6905)reverse_selection_contents
- swaps the values of each selection so they are reversed (#7329)- Add
:rl
and:rla
aliases for:reload
and:reload-all
(#7158) yank_joined
- join the selections and yank to the selected register (#7195):write-all!
(:wa!
) - forcibly write all buffers to disk and create any necessary subdirectories (#7577):redraw
- clear re-render the UI (#6949):tree-sitter-highlight-name
- show the theme scope name of the highlight under the cursor (#8170)
Usability improvements:
- Allow cycling option values at runtime (#4411, #7240, #7877)
- Exit gracefully on termination signals (#7236)
- Add plaintext matching fallback to tree-sitter pair matching (#4288)
- Persist register selection in pending keymaps (0e08349)
- Propagate the count and register to command palette commands (b394997)
- Auto indent on
insert_at_line_start
(#5837) - Add a config option to control whether LSP completions are automatically inserted on preview (#7189)
- Add a config option for default line endings (#5621, #7357)
- Allow ANSI colors in themes (#5119)
- Match pairs that don't form a standalone tree-sitter node (#7242)
- Allow indent sizes of up to 16 columns (#7429)
- Improve performance of mapping positions through changes (#7408, 8d39a81, #7471)
- Mark buffers created from stdin as modified (#7431)
- Forcibly shut down uninitialized language servers (#7449)
- Add filename completer for shell prompts (#7569)
- Allow binding F13-F24 (#7672)
- Resolve LSP code actions (#7677, #8421)
- Save an undo checkpoint before accepting completions (#7747)
- Include gitignored files in debugger completions (#7936)
- Make editor remember the last search register (#5244)
- Open directories with
goto_file
(#7909) - Use relative path to open buffer in
goto_file
(gf
) (#7965) - Support
default
color in themes (#8083, #8114) - Toggle between relative and absolute line numbers when the terminal loses focus (#7955)
- Lower default idle-timeout to 250ms (060e73a)
- Allow theming diff gutters separately from other diff colors (#8343)
- Style bold/italic/strikethrough in markdown doc popups (#8385)
- Maintain the cursor position and view when splitting with
:hsplit
/:vsplit
(#8109) - Accept
-
in macros outside of<
/>
(#8475) - Show all language servers for each language in
--health
(#7315) - Don't break on hyphens in
:reflow
(#8569)
Fixes:
- Update diagnostics correctly on language server exit (#7111)
- Fix off-by-one in
select_references_to_symbol_under_cursor
(#7132) - Extend selection with repeat-last-motion only if the original motion extended the selection (#7159)
- Fix undefined behavior in the diff gutter (#7227)
- Check that tab width is non-zero (#7178)
- Fix styles being overwritten in table rows with multiple cells (#7281)
- Add file for
--log
CLI arg in help text (#7307) - Fix underflow when repeating a completion that has a negative shift position (#7322)
- Prefer longer matches in
select_next_sibling
andselect_prev_sibling
(#7332) - Preview scratch buffers in the jumplist picker (#7331)
- Fix chunking by bytes in tree-sitter parsing (#7417)
- Discard LSP publishDiagnostic from uninitialized servers (#7467)
- Use negotiated position encoding for LSP workspace edits (#7469)
- Fix error message for unknown gutter types in config (#7534)
- Fix
:log-open
when--log
CLI arg is specified (#7573, #7585) - Fix debouncing of LSP messages to fix the last message sticking around (#7538, #8023)
- Fix crash when the current working directory is deleted (#7185)
- Fix piping to Helix on macOS (#5468)
- Fix crash when parsing overlapping injections (#7621)
- Clear the statusline when the prompt is visible (#7646)
- Fix range formatting error message typo (#7823)
- Skip rendering gutters when gutter width exceeds view width (#7821)
- Center the picker preview using visual lines (#7837)
- Align view correctly for background buffers opened with
A-ret
(#7691) - Fix cursor resetting to block when quitting via a keybind (#7931)
- Remove path completions for the
:new
command (#8010) - Use binary path resolved by
which
for formatter commands (#8064) - Handle crossterm's
hidden
modifier (#8120) - Clear completion when switching between windows with the mouse (#8118)
- Eagerly remove the last picker (
<space>'
) when the picker has many items (#8127) - Fix find commands for buffers with non-LF line-endings (#8111)
- Detect the tmux clipboard provider on macOS (#8182)
- Fix syntax highlighting in dynamic picker preview pane (#8206)
- Recognize HTML code tags with attributes as code in markdown previews (#8397)
- Fix multicursor snippet placeholder directions (#8423)
- Only show diagnostic highlights when diagnostics are enabled for a language server (#8551)
Themes:
- Improve the selection color in
ferra
(#7138) - Add
variable.other.member
theming tospacebones_light
(#7125) - Update
autumn
and theme the soft-wrap indicator (#7229) - Add
gruvbox_dark_soft
(#7139) - Add
merionette
(#7186) - Add
zed_onedark
andzed_onelight
(#7250) - Use light-gray for
onedarker
inlay hint theming (#7433) - Update the Nord theme to follow the style guidelines (#7490)
- Tune
dark_plus
inlay hint colors (#7611) - Add
naysayer
(#7570) - Add
kaolin-dark
,kaolin-light
andkaolin-valley-dark
(#7151) - Fix selection highlighting in gruvbox variants (#7717)
- Add soft-wrap indicator to
gruvbox
(#7736) - Add missing palette definitions in
everforest_dark
(#7739) - Increase diagnostics clarity in
pop-dark
(#7702) - Add
vim_dark_high_contrast
(#7785) - Add
new_moon
(#7834) - Add
yellowed
(#7849) - Improve comment readability for
autumn
(#7939) - Distinguish active bufferline buffer in
monokai
(#7983) - Update ruler colors in
nord
(#7995) - Update Catppuccin themes (#8102)
- Add text focus scope and diagnostics undercurls for
nord
(#8165) - Add material theme collection (#8211)
- Improve indent line color in
dracula
(#8266) - Clean up and refactor
papercolor
to use inheritance (#8276) - Fix
zenburn
inlay hint color (#8278a) - Fix picker crash when previewing an invalid range (e9d0bd7)
- Correctly center items in the picker preview (13d4463)
- Add
cyan_light
(#8293, #8587) - Theme HTML tags in
onedark
(#8409) - Refine
darcula
anddarcula-solid
themes (#8412) - Improve
nord
highlights (#8414) - Add
nord-night
(#8549)
New languages:
- Blueprint (#7213, #8161)
- Forth (#7256, #7334)
- t32 (#7140, #7811)
- WebC (#7290)
- Persistent DSL for Haskell (#7261)
- F# (#7619, #8024)
- Wren (#7765, #7819)
- Unison (#7724)
- Todo.txt (#7835)
- Jinja and Handlebars (#7233)
- Pod (#7907)
- Strace (#7928)
- Gemini (#8070)
- GNU Assembler (GAS) (#8291)
- JSON5 (#8473)
- TEMPL (#8540)
Updated languages and queries:
- Add one to the ruler numbers for git-commit (#7072)
- Recognize XAML files as XML (#7083)
- Recognize
Cargo.lock
as TOML (#7095) - Use Rust grammar for Cairo (c6d1430)
- Update tree-sitter-nickel (#7059, #7551)
- Tune auto-pair characters for Nickel (#7059)
- Recognize
Vagrantfile
as Ruby (#7112) - Recognize hidden justfiles as Just (#7088)
- Update Java and TypeScript highlight queries (#7145)
- Recognize
.zimrc
as Bash (#7146) - Recognize
.gir
as XML (#7152) - Update tree-sitter-scala (#7147)
- Recognize make file-type as Makefile (#7212)
- Update tree-sitter-verilog (#7262)
- Update tree-sitter-cpp (#7285)
- Support core mode for delve debugger (#7300)
- Add Fortran comment injections (#7305)
- Switch Vue language server to
vue-language-server
(#7312) - Update tree-sitter-sql (#7387, #8464)
- Replace the MATLAB tre-sitter grammar (#7388, #7442, #7491, #7493, #7511, #7532, #8040)
- Highlight TOML table headers (#7441)
- Recognize
cppm
file-type as C++ (#7492) - Refactor ecma language queries into private and public queries (#7207)
- Update tree-sitter-dart (#7576)
- Add shebang for nushell files (#7606)
- Recognize systemd files as INI (#7592)
- Update TypeScript, TSX and Svelte grammars (#6874)
- Enable inlay hints in the Svelte language server (#7622)
- Recognize
Brewfile
s as Ruby (#7629) - Add more file-types for R (#7633)
- Switch tree-sitter-perl to official upstream parser (#7644, #7947)
- Fix predicate typo in comment highlights (#7732)
- Update tree-sitter-prql (#7771)
- Recognize
.gitf
as JSON (#7781) - Switch V language server to
v-analyzer
(#7760) - Add protobuf language servers (#7796)
- Update tree-sitter-zig (#7803)
- Update tree-sitter-hare (#7784)
- Add Java indent queries (#7844)
- Update tree-sitter-scheme (979933b)
- Recognize
scm
as Scheme instead of TSQ (5707151) - Update tree-sitter-git-commit (#7831)
- Update JavaScript, TypeScript and TSX grammars (#7852)
- Update tree-sitter-nu (#7873)
- Fix YAML indentation (#6768)
- Add
csharp-ls
, Pyright, Pylyzer and add roots for Python (#7897, #8032) - Update tree-sitter-slint (#7893)
- Recognize more ZSH file-types as Bash (#7930)
- Recognize
star
extension as Starlark (#7922) - Fix inline HTML tag highlighting in markdown (#7960)
- Update tree-sitter-robot (#7970)
- Highlight Dart 3
sealed
andbase
keywords (#7974) - Add configuration for
ltex-ls
to the defaultlanguages.toml
(#7838) - Update tree-sitter-strace (#8087)
- Update tree-sitter-gleam, enable auto-format (#8085)
- Update tree-sitter-esdl (#8222)
- Expand ignore file-types (#8220)
- Recognize feed related formats as XML (#8232)
- Improve YAML injections (#8217)
- Add shebangs for TypeScript, Julia, Java and OCaml (95e994a)
- Highlight abbreviations in Scheme (ef23847)
- Remove backtic auto-pair in OCaml (#8260)
- Recognize
flake.lock
as JSON (#8304) - Add Python test script injection for Nix (b4494e1)
- Fix Nix comment injection precedence (37e48f4)
- Recognize editorconfig files as INI (#8308)
- Recognize
.babelrc
as JSON (#8309) - Switch Purescript to its own tree-sitter parser (#8306, #8338, #8527)
- Update Unison highlights (#8315)
- Recognize
.webmanifest
as JSON (#8342) - Recognize polkit policy files as XML (#8369)
- Recognize polkit rules files as JavaScript (#8370)
- Update Go highlight queries (#8399)
- Add shebangs for Makefiles (#8410)
- Add file-type associations from VSCode (#8388)
- Add validation to JSON/CSS language server configs (#8433)
- Add a configuration for the tailwind language server (#8442)
- Add a configuration for the ansible language server (#7973)
- Add a configuration for the GraphQL language server (#8492)
- Indent while statements in Bash (#8528)
- Update tree-sitter-haskell and queries (#8558)
Packaging:
- Add an overlay to the Nix flake (#7078)
- Check for
git
before fetching or building grammars (#7320) - Refactor Nix flake to use Crane (#7763)
- Remove the aarch64 appimage from the release CI (#7832)
- Add desktop and icon files to Nix flake output (#7979)
- Build flake packages with the latest stable Rust (#8133)
23.05 is a smaller release focusing on fixes. There were 88 contributors in this release. Thank you all!
Features:
- Add a config option to exclude declaration from LSP references request (#6886)
- Enable injecting languages based on their file extension and shebang (#3970)
- Sort the buffer picker by most recent access (#2980)
- Perform syntax highlighting in the picker asynchronously (#7028)
Commands:
:update
is now aliased as:u
(#6835)- Add
extend_to_first_nonwhitespace
which acts the same asgoto_first_nonwhitespace
but always extends (#6837) - Add
:clear-register
for clearing the given register or all registers (#5695) - Add
:write-buffer-close
and:write-buffer-close!
(#6947)
Fixes:
- Normalize LSP workspace paths (#6517)
- Robustly handle invalid LSP ranges (#6512)
- Fix line number display for LSP goto pickers (#6559)
- Fix toggling of
soft-wrap.enable
option (#6656, 58e457a, #6742) - Handle
workspace/configuration
requests from stopped language servers (#6693) - Fix possible crash from opening the jumplist picker (#6672)
- Fix theme preview returning to current theme on line and word deletions (#6694)
- Re-run crate build scripts on changes to revision and grammar repositories (#6743)
- Fix crash on opening from suspended state (#6764)
- Fix unwrap bug in DAP (#6786)
- Always build tree-sitter parsers with C++14 and C11 (#6792, #6834, #6845)
- Exit with a non-zero statuscode when tree-sitter parser builds fail (#6795)
- Flip symbol range in LSP goto commands (#6794)
- Fix runtime toggling of the
mouse
option (#6675) - Fix panic in inlay hint computation when view anchor is out of bounds (#6883)
- Significantly improve performance of git discovery on slow file systems (#6890)
- Downgrade gix log level to info (#6915)
- Conserve BOM and properly support saving UTF16 files (#6497)
- Correctly handle completion re-request (#6594)
- Fix offset encoding in LSP
didChange
notifications (#6921) - Change
gix
logging level to info (#6915) - Improve error message when writes fail because parent directories do not exist (#7014)
- Replace DAP variables popup instead of pushing more popups (#7034)
- Disable tree-sitter for files after parsing for 500ms (#7028)
- Fix crash when deleting with multiple cursors (#6024)
- Fix selection sliding when deleting forwards in append mode (#6024)
- Fix completion on paths containing spaces (#6779)
Themes:
- Style inlay hints in
dracula
theme (#6515) - Style inlay hints in
onedark
theme (#6503) - Style inlay hints and the soft-wrap indicator in
varua
(#6568, #6589) - Style inlay hints in
emacs
theme (#6569) - Update
base16_transparent
anddark_high_contrast
themes (#6577) - Style inlay hints for
mellow
andrasmus
themes (#6583) - Dim pane divider for
base16_transparent
theme (#6534) - Style inlay hints in
zenburn
theme (#6593) - Style inlay hints in
boo_berry
theme (#6625) - Add
ferra
theme (#6619, #6776) - Style inlay hints in
nightfox
theme (#6655) - Fix
ayu
theme family markup code block background (#6538) - Improve whitespace and search match colors in
rose_pine
theme (#6679) - Highlight selected items in
base16_transparent
theme (#6716) - Adjust everforest to resemble original more closely (#5866)
- Refactor
dracula
theme (#6552, #6767, #6855, #6987) - Style inlay hints in
darcula
theme (#6732) - Style inlay hints in
kanagawa
theme (#6773) - Improve
ayu_dark
theme (#6622) - Refactor
noctis
theme multiple cursor highlighting (96720e7) - Refactor
noctis
theme whitespace rendering and indent guides (f2ccc03) - Add
amberwood
theme (#6924) - Update
nightfox
theme (#7061)
Language support:
- R language server: use the
--no-echo
flag to silence output (#6570) - Recognize CUDA files as C++ (#6521)
- Add support for Hurl (#6450)
- Add textobject queries for Julia (#6588)
- Update Ruby highlight queries (#6587)
- Add xsd to XML file-types (#6631)
- Support Robot Framework (#6611)
- Update Gleam tree-sitter parser (#6641)
- Update git-commit tree-sitter parser (#6692)
- Update Haskell tree-sitter parser (#6317)
- Add injection queries for Haskell quasiquotes (#6474)
- Highlight C/C++ escape sequences (#6724)
- Support Markdoc (#6432)
- Support OpenCL (#6473)
- Support DTD (#6644)
- Fix constant highlighting in Python queries (#6751)
- Support Just (#6453)
- Fix Go locals query for
var_spec
identifiers (#6763) - Update Markdown tree-sitter parser (#6785)
- Fix Haskell workspace root for cabal projects (#6828)
- Avoid extra indentation in Go switches (#6817)
- Fix Go workspace roots (#6884)
- Set PerlNavigator as the default Perl language server (#6860)
- Highlight more sqlx macros in Rust (#6793)
- Switch Odin tree-sitter grammar (#6766)
- Recognize
poetry.lock
as TOML (#6928) - Recognize Jupyter notebooks as JSON (#6927)
- Add language server configuration for Crystal (#6948)
- Add
build.gradle.kts
to Java and Scala roots (#6970) - Recognize
sty
andcls
files as latex (#6986) - Update Dockerfile tree-sitter grammar (#6895)
- Add comment injections for Odin (#7027)
- Recognize
gml
as XML (#7055) - Recognize
geojson
as JSON (#7054)
Packaging:
- Update the Nix flake dependencies, remove a deprecated option (#6546)
- Fix and re-enable aarch64-macos release binary builds (#6504)
- The git dependency on
tree-sitter
has been replaced with a regular crates.io dependency (#6608)
23.03 brings some long-awaited and exciting features. Thank you to everyone involved! This release saw changes from 102 contributors.
For the full log, check out the git log. Also check out the release notes for more commentary on larger features.
Breaking changes:
- Select diagnostic range in
goto_*_diag
commands (#4713, #5164, #6193) - Remove jump behavior from
increment
/decrement
(#4123, #5929) - Select change range in
goto_*_change
commands (#5206) - Split file modification indicator from filename statusline elements (#4731, #6036)
- Jump to symbol ranges in LSP goto commands (#5986)
- Workspace detection now stops at the first
.helix/
directory (merging multiple.helix/languages.toml
configurations is no longer supported) (#5748)
Features:
- Dynamic workspace symbol picker (#5055)
- Soft-wrap (#5420, #5786, #5893, #6142, #6440)
- Initial support for LSP snippet completions (#5864, b1f7528, #6263, bbf4800, 90348b8, f87299f, #6371, 9fe3adc)
- Add a statusline element for showing the current version control HEAD (#5682)
- Display LSP type hints (#5420, #5934, #6312)
- Enable the Kitty keyboard protocol on terminals with support (#4939, #6170, #6194, #6438)
- Add a statusline element for the basename of the current file (#5318)
- Add substring matching syntax for the picker (#5658)
- Support LSP
textDocument/prepareRename
(#6103) - Allow multiple runtime directories with priorities (#5411)
- Allow configuring whether to insert or replace completions (#5728)
- Allow per-workspace config file
.helix/config.toml
(#5748) - Add
workspace-lsp-roots
config option to support multiple LSP roots for use with monorepos (#5748)
Commands:
:pipe-to
which pipes selections into a shell command and ignores output (#4931)merge_consecutive_selections
(A-_
) combines all consecutive selections (#5047)rotate_view_reverse
which focuses the previous view (#5356)goto_declaration
(gD
, requires LSP) which jumps to a symbol's declaration (#5646)file_picker_in_current_buffer_directory
(#4666):character-info
which shows information about the character under the cursor (#4000):toggle-option
for toggling config options at runtime (#4085)dap_restart
for restarting a debug session in DAP (#5651):lsp-stop
to stop the language server of the current buffer (#5964):reset-diff-change
for resetting a diff hunk to its original text (#4974):config-open-workspace
for opening the config file local to the current workspace (#5748)
Usability improvements:
- Remove empty detail section in completion menu when LSP doesn't send details (#4902)
- Pass client information on LSP initialization (#4904)
- Allow specifying environment variables for language servers in language config (#4004)
- Allow detached git worktrees to be recognized as root paths (#5097)
- Improve error message handling for theme loading failures (#5073)
- Print the names of binaries required for LSP/DAP in health-check (#5195)
- Improve sorting in the picker in cases of ties (#5169)
- Add theming for prompt suggestions (#5104)
- Open a file picker when using
:open
on directories (#2707, #5278) - Reload language config with
:config-reload
(#5239, #5381, #5431) - Improve indent queries for python when the tree is errored (#5332)
- Picker: Open files without closing the picker with
A-ret
(#4435) - Allow theming cursors by primary/secondary and by mode (#5130)
- Allow configuration of the minimum width for the line-numbers gutter (#4724, #5696)
- Use filename completer for
:run-shell-command
command (#5729) - Surround with line-endings with
ms<ret>
(#4571) - Hide duplicate symlinks in file pickers (#5658)
- Tabulate buffer picker contents (#5777)
- Add an option to disable LSP (#4425)
- Short-circuit tree-sitter and word object motions (#5851)
- Add exit code to failed command message (#5898)
- Make
m
textobject look for pairs enclosing selections (#3344) - Negotiate LSP position encoding (#5894, a48d1a4)
- Display deprecated LSP completions with strikethrough (#5932)
- Add JSONRPC request ID to failed LSP/DAP request log messages (#6010, #6018)
- Ignore case when filtering LSP completions (#6008)
- Show current language when no arguments are passed to
:set-language
(#5895) - Refactor and rewrite all book documentation (#5534)
- Separate diagnostic picker message and code (#6095)
- Add a config option to bypass undercurl detection (#6253)
- Only complete appropriate arguments for typed commands (#5966)
- Discard outdated LSP diagnostics (3c9d5d0)
- Discard outdated LSP workspace edits (b6a4927)
- Run shell commands asynchronously (#6373)
- Show diagnostic codes in LSP diagnostic messages (#6378)
- Highlight the current line in a DAP debug session (#5957)
- Hide signature help if it overlaps with the completion menu (#5523, 7a69c40)
Fixes:
- Fix behavior of
auto-completion
flag for completion-on-trigger (#5042) - Reset editor mode when changing buffers (#5072)
- Respect scrolloff settings in mouse movements (#5255)
- Avoid trailing
s
when only one file is opened (#5189) - Fix erroneous indent between closers of auto-pairs (#5330)
- Expand
~
when parsing file paths in:open
(#5329) - Fix theme inheritance for default themes (#5218)
- Fix
extend_line
with a count when the current line(s) are selected (#5288) - Prompt: Fix autocompletion for paths containing periods (#5175)
- Skip serializing JSONRPC params if params is null (#5471)
- Fix interaction with the
xclip
clipboard provider (#5426) - Fix undo/redo execution from the command palette (#5294)
- Fix highlighting of non-block cursors (#5575)
- Fix panic when nooping in
join_selections
andjoin_selections_space
(#5423) - Fix selecting a changed file in global search (#5639)
- Fix initial syntax highlight layer sort order (#5196)
- Fix UTF-8 length handling for shellwords (#5738)
- Remove C-j and C-k bindings from the completion menu (#5070)
- Always commit to history when pasting (#5790)
- Properly handle LSP position encoding (#5711)
- Fix infinite loop in
copy_selection_on_prev_line
(#5888) - Fix completion popup positioning (#5842)
- Fix a panic when uncommenting a line with only a comment token (#5933)
- Fix panic in
goto_window_center
at EOF (#5987) - Ignore invalid file URIs sent by a language server (#6000)
- Decode LSP URIs for the workspace diagnostics picker (#6016)
- Fix incorrect usages of
tab_width
withindent_width
(#5918) - DAP: Send Disconnect if the Terminated event is received (#5532)
- DAP: Validate key and index exist when requesting variables (#5628)
- Check LSP renaming support before prompting for rename text (#6257)
- Fix indent guide rendering (#6136)
- Fix division by zero panic (#6155)
- Fix lacking space panic (#6109)
- Send error replies for malformed and unhandled LSP requests (#6058)
- Fix table column calculations for dynamic pickers (#5920)
- Skip adding jumplist entries for
:<n>
line number previews (#5751) - Fix completion race conditions (#6173)
- Fix
shrink_selection
with multiple cursors (#6093) - Fix indentation calculation for lines with mixed tabs/spaces (#6278)
- No-op
client/registerCapability
LSP requests (#6258) - Send the STOP signal to all processes in the process group (#3546)
- Fix workspace edit client capabilities declaration (7bf168d)
- Fix highlighting in picker results with multiple columns (#6333)
- Canonicalize paths before stripping the current dir as a prefix (#6290)
- Fix truncation behavior for long path names in the file picker (#6410, 67783dd)
- Fix theme reloading behavior in
:config-reload
(ab819d8)
Themes:
- Update
serika
(#5038, #6344) - Update
flatwhite
(#5036, #6323) - Update
autumn
(#5051, #5397, #6280, #6316) - Update
acme
(#5019, #5486, #5488) - Update
gruvbox
themes (#5066, #5333, #5540, #6285, #6295) - Update
base16_transparent
(#5105) - Update
dark_high_contrast
(#5105) - Update
dracula
(#5236, #5627, #6414) - Update
monokai_pro_spectrum
(#5250, #5602) - Update
rose_pine
(#5267, #5489, #6384) - Update
kanagawa
(#5273, #5571, #6085) - Update
emacs
(#5334) - Add
github
themes (#5353, efeec12)- Dark themes:
github_dark
,github_dark_colorblind
,github_dark_dimmed
,github_dark_high_contrast
,github_dark_tritanopia
- Light themes:
github_light
,github_light_colorblind
,github_light_dimmed
,github_light_high_contrast
,github_light_tritanopia
- Dark themes:
- Update
solarized
variants (#5445, #6327) - Update
catppuccin
variants (#5404, #6107, #6269, #6464) - Use curly underlines in built-in themes (#5419)
- Update
zenburn
(#5573) - Rewrite
snazzy
(#3971) - Add
monokai_aqua
(#5578) - Add
markup.strikethrough
to existing themes (#5619) - Update
sonokai
(#5440) - Update
onedark
(#5755) - Add
ayu_evolve
(#5638, #6028, #6225) - Add
jellybeans
(#5719) - Update
fleet_dark
(#5605, #6266, #6324, #6375) - Add
darcula-solid
(#5778) - Remove text background from monokai themes (#6009)
- Update
pop_dark
(#5992, #6208, #6227, #6292) - Add
everblush
(#6086) - Add
adwaita-dark
(#6042, #6342) - Update
papercolor
(#6162) - Update
onelight
(#6192, #6276) - Add
molokai
(#6260) - Update
ayu
variants (#6329) - Update
tokyonight
variants (#6349) - Update
nord
variants (#6376)
New languages:
- BibTeX (#5064)
- Mermaid.js (#5147)
- Crystal (#4993, #5205)
- MATLAB/Octave (#5192)
tfvars
(uses HCL) (#5396)- Ponylang (#5416)
- DHall (1f6809c)
- Sagemath (#5649)
- MSBuild (#5793)
- pem (#5797)
- passwd (#4959)
- hosts (#4950, #5914)
- uxntal (#6047)
- Yuck (#6064, #6242)
- GNU gettext PO (#5996)
- Sway (#6023)
- NASM (#6068)
- PRQL (#6126)
- reStructuredText (#6180)
- Smithy (#6370)
- VHDL (#5826)
- Rego (OpenPolicy Agent) (#6415)
- Nim (#6123)
Updated languages and queries:
- Use diff syntax for patch files (#5085)
- Add Haskell textobjects (#5061)
- Fix commonlisp configuration (#5091)
- Update Scheme (bae890d)
- Add indent queries for Bash (#5149)
- Recognize
c++
as a C++ extension (#5183) - Enable HTTP server in
metals
(Scala) config (#5551) - Change V-lang language server to
v ls
fromvls
(#5677) - Inject comment grammar into Nix (#5208)
- Update Rust highlights (#5238, #5349)
- Fix HTML injection within Markdown (#5265)
- Fix comment token for godot (#5276)
- Expand injections for Vue (#5268)
- Add
.bash_aliases
as a Bash file-type (#5347) - Fix comment token for sshclientconfig (#5351)
- Update Prisma (#5417)
- Update C++ (#5457)
- Add more file-types for Python (#5593)
- Update tree-sitter-scala (#5576)
- Add an injection regex for Lua (#5606)
- Add
build.gradle
to java roots configuration (#5641) - Add Hub PR files to markdown file-types (#5634)
- Add an external formatter configuration for Cue (#5679)
- Add injections for builders and writers to Nix (#5629)
- Update tree-sitter-xml to fix whitespace parsing (#5685)
- Add
Justfile
to the make file-types configuration (#5687) - Update tree-sitter-sql and highlight queries (#5683, #5772)
- Use the bash grammar and queries for env language (#5720)
- Add podspec files to ruby file-types (#5811)
- Recognize
.C
and.H
file-types as C++ (#5808) - Recognize plist and mobileconfig files as XML (#5863)
- Fix
select
indentation in Go (#5713) - Check for external file modifications when writing (#5805)
- Recognize containerfiles as dockerfile syntax (#5873)
- Update godot grammar and queries (#5944, #6186)
- Improve DHall highlights (#5959)
- Recognize
.env.dist
andsource.env
as env language (#6003) - Update tree-sitter-git-rebase (#6030, #6094)
- Improve SQL highlights (#6041)
- Improve markdown highlights and inject LaTeX (#6100)
- Add textobject queries for Elm (#6084)
- Recognize graphql schema file type (#6159)
- Improve highlighting in comments (#6143)
- Improve highlighting for JavaScript/TypeScript/ECMAScript languages (#6205)
- Improve PHP highlights (#6203, #6250, #6299)
- Improve Go highlights (#6204)
- Highlight unchecked sqlx functions as SQL in Rust (#6256)
- Improve Erlang highlights (cdd6c8d)
- Improve Nix highlights (fb4d703)
- Improve gdscript highlights (#6311)
- Improve Vlang highlights (#6279)
- Improve Makefile highlights (#6339)
- Remove auto-pair for
'
in OCaml (#6381) - Fix indents in switch statements in ECMA languages (#6369)
- Recognize xlb and storyboard file-types as XML (#6407)
- Recognize cts and mts file-types as TypeScript (#6424)
- Recognize SVG file-type as XML (#6431)
- Add theme scopes for (un)checked list item markup scopes (#6434)
- Update git commit grammar and add the comment textobject (#6439, #6493)
- Recognize ARB file-type as JSON (#6452)
- Inject markdown into markdown strings in Julia (#6489)
Packaging:
- Fix Nix flake devShell for darwin hosts (#5368)
- Add Appstream metadata file to
contrib/
(#5643) - Increase the MSRV to 1.65 (#5570, #6185)
- Expose the Nix flake's
wrapper
(#5994)
This is a great big release filled with changes from a 99 contributors. A big thank you to you all!
As usual, the following is a summary of each of the changes since the last release. For the full log, check out the git log.
Breaking changes:
- Remove readline-like navigation bindings from the default insert mode keymap (e12690e, #3811, #3827, #3915, #4088)
- Rename
append_to_line
asinsert_at_line_end
andprepend_to_line
asinsert_at_line_start
(#3753) - Swap diagnostic picker and debug mode bindings in the space keymap (#4229)
- Select newly inserted text on paste or from shell commands (#4458, #4608, #4619, #4824)
- Select newly inserted surrounding characters on
ms<char>
(#4752) - Exit select-mode after executing
replace_*
commands (#4554) - Exit select-mode after executing surround commands (#4858)
- Change tree-sitter text-object keys (#3782)
- Rename
fleetish
theme tofleet_dark
(#4997)
Features:
- Bufferline (#2759)
- Support underline styles and colors (#4061, 98c121c)
- Inheritance for themes (#3067, #4096)
- Cursorcolumn (#4084)
- Overhauled system for writing files and quiting (#2267, #4397)
- Autosave when terminal loses focus (#3178)
- Use OSC52 as a fallback for the system clipboard (#3220)
- Show git diffs in the gutter (#3890, #5012, #4995)
- Add a logo (dc1ec56)
- Multi-cursor completion (#4496)
Commands:
file_picker_in_current_directory
(<space>F
) (#3701):lsp-restart
to restart the current document's language server (#3435, #3972)join_selections_space
(A-j
) which joins selections and selects the joining whitespace (#3549):update
to write the current file if it is modified (#4426):lsp-workspace-command
for picking LSP commands to execute (#3140)extend_prev_word_end
- the extend variant formove_prev_word_end
(7468fa2)make_search_word_bounded
which adds regex word boundaries to the current search register value (#4322):reload-all
-:reload
for all open buffers (#4663, #4901)goto_next_change
(]g
),goto_prev_change
([g
),goto_first_change
([G
),goto_last_change
(]G
) textobjects for jumping between VCS changes (#4650)
Usability improvements and fixes:
- Don't log 'LSP not defined' errors in the logfile (1caba2d)
- Look for the external formatter program before invoking it (#3670)
- Don't send LSP didOpen events for documents without URLs (44b4479)
- Fix off-by-one in
extend_line_above
command (#3689) - Use the original scroll offset when opening a split (1acdfaa)
- Handle auto-formatting failures and save the file anyway (#3684)
- Ensure the cursor is in view after
:reflow
(#3733) - Add default rulers and reflow config for git commit messages (#3738)
- Improve grammar fetching and building output (#3773)
- Add a
text
language to language completion (cc47d3f) - Improve error handling for
:set-language
(e8add6f) - Improve error handling for
:config-reload
(#3668) - Improve error handling when passing improper ranges to syntax highlighting (#3826)
- Render
<code>
tags as raw markup in markdown (#3425) - Remove border around the LSP code-actions popup (#3444)
- Canonicalize the path to the runtime directory (#3794)
- Add a
themelint
xtask for linting themes (#3234) - Re-sort LSP diagnostics after applying transactions (#3895, #4319)
- Add a command-line flag to specify the log file (#3807)
- Track source and tag information in LSP diagnostics (#3898, 1df32c9)
- Fix theme returning to normal when exiting the
:theme
completion (#3644) - Improve error messages for invalid commands in the keymap (#3931)
- Deduplicate regexs in
search_selection
command (#3941) - Split the finding of LSP root and config roots (#3929)
- Ensure that the cursor is within view after auto-formatting (#4047)
- Add pseudo-pending to commands with on-next-key callbacks (#4062, #4077)
- Add live preview to
:goto
(#2982) - Show regex compilation failure in a popup (#3049)
- Add 'cycled to end' and 'no more matches' for search (#3176, #4101)
- Add extending behavior to tree-sitter textobjects (#3266)
- Add
ui.gutter.selected
option for themes (#3303) - Make statusline mode names configurable (#3311)
- Add a statusline element for total line count (#3960)
- Add extending behavior to
goto_window_*
commands (#3985) - Fix a panic in signature help when the preview is too large (#4030)
- Add command names to the command palette (#4071, #4223, #4495)
- Find the LSP workspace root from the current document's path (#3553)
- Add an option to skip indent-guide levels (#3819, 2c36e33)
- Change focus to modified docs on quit (#3872)
- Respond to
USR1
signal by reloading config (#3952) - Exit gracefully when the close operation fails (#4081)
- Fix goto/view center mismatch (#4135)
- Highlight the current file picker document on idle-timeout (#3172, a85e386)
- Apply transactions to jumplist selections (#4186, #4227, #4733, #4865, #4912, #4965, #4981)
- Use space as a separator for fuzzy matcher (#3969)
- Overlay all diagnostics with highest severity on top (#4113)
- Avoid re-parsing unmodified tree-sitter injections (#4146)
- Add extending captures for indentation, re-enable python indentation (#3382, 3e84434)
- Only allow either
--vsplit
or--hsplit
CLI flags at once (#4202) - Fix append cursor location when selection anchor is at the end of the document (#4147)
- Improve selection yanking message (#4275)
- Log failures to load tree-sitter grammars as errors (#4315)
- Fix rendering of lines longer than 65,536 columns (#4172)
- Skip searching
.git
inglobal_search
(#4334) - Display tree-sitter scopes in a popup (#4337)
- Fix deleting a word from the end of the buffer (#4328)
- Pretty print the syntax tree in
:tree-sitter-subtree
(#4295, #4606) - Allow specifying suffixes for file-type detection (#2455, #4414)
- Fix multi-byte auto-pairs (#4024)
- Improve sort scoring for LSP code-actions and completions (#4134)
- Fix the handling of quotes within shellwords (#4098)
- Fix
delete_word_backward
anddelete_word_forward
on newlines (#4392) - Fix 'no entry found for key' crash on
:write-all
(#4384) - Remove lowercase requirement for tree-sitter grammars (#4346)
- Resolve LSP completion items on idle-timeout (#4406, #4797)
- Render diagnostics in the file picker preview (#4324)
- Fix terminal freezing on
shell_insert_output
(#4156) - Allow use of the count in the repeat operator (
.
) (#4450) - Show the current theme name on
:theme
with no arguments (#3740) - Fix rendering in very large terminals (#4318)
- Sort LSP preselected items to the top of the completion menu (#4480)
- Trim braces and quotes from paths in goto-file (#4370)
- Prevent automatic signature help outside of insert mode (#4456)
- Fix freezes with external programs that process stdin and stdout concurrently (#4180)
- Make
scroll
aware of tabs and wide characters (#4519) - Correctly handle escaping in
command_mode
completion (#4316, #4587, #4632) - Fix
delete_char_backward
for paired characters (#4558) - Fix crash from two windows editing the same document (#4570)
- Fix pasting from the blackhole register (#4497)
- Support LSP insertReplace completion items (1312682)
- Dynamically resize the line number gutter width (#3469)
- Fix crash for unknown completion item kinds (#4658)
- Re-enable
format_selections
for single selection ranges (d4f5cab) - Limit the number of in-progress tree-sitter query matches (#4707, #4830)
- Use the special
#
register withincrement
/decrement
to change by range number (#4418) - Add a statusline element to show number of selected chars (#4682)
- Add a statusline element showing global LSP diagnostic warning and error counts (#4569)
- Add a scrollbar to popups (#4449)
- Prefer shorter matches in fuzzy matcher scoring (#4698)
- Use key-sequence format for command palette keybinds (#4712)
- Remove prefix filtering from autocompletion menu (#4578)
- Focus on the parent buffer when closing a split (#4766)
- Handle language server termination (#4797, #4852)
- Allow
r
/t
/f
to work on tab characters (#4817) - Show a preview for scratch buffers in the buffer picker (#3454)
- Set a limit of entries in the jumplist (#4750)
- Re-use shell outputs when inserting or appending shell output (#3465)
- Check LSP server provider capabilities (#3554)
- Improve tree-sitter parsing performance on files with many language layers (#4716)
- Move indentation to the next line when using
<ret>
on a line with only whitespace (#4854) - Remove selections for closed views from all documents (#4888)
- Improve performance of the
:reload
command (#4457) - Properly handle media keys (#4887)
- Support LSP diagnostic data field (#4935)
- Handle C-i keycode as tab (#4961)
- Fix view alignment for jumplist picker jumps (#3743)
- Use OSC52 for tmux clipboard provider (#5027)
Themes:
- Add
varua
(#3610, #4964) - Update
boo_berry
(#3653) - Add
rasmus
(#3728) - Add
papercolor_dark
(#3742) - Update
monokai_pro_spectrum
(#3814) - Update
nord
(#3792) - Update
fleetish
(#3844, #4487, #4813) - Update
flatwhite
(#3843) - Add
darcula
(#3739) - Update
papercolor
(#3938, #4317) - Add bufferline colors to multiple themes (#3881)
- Add
gruvbox_dark_hard
(#3948) - Add
onedarker
(#3980, #4060) - Add
dark_high_contrast
(#3312) - Update
bogster
(#4121, #4264) - Update
sonokai
(#4089) - Update
ayu_*
themes (#4140, #4109, #4662, #4764) - Update
everforest
(#3998) - Update
monokai_pro_octagon
(#4247) - Add
heisenberg
(#4209) - Add
bogster_light
(#4265) - Update
pop-dark
(#4323) - Update
rose_pine
(#4221) - Add
kanagawa
(#4300) - Add
hex_steel
,hex_toxic
andhex_lavendar
(#4367, #4990) - Update
tokyonight
andtokyonight_storm
(#4415) - Update
gruvbox
(#4626) - Update
dark_plus
(#4661, #4678) - Add
zenburn
(#4613, #4977) - Update
monokai_pro
(#4789) - Add
mellow
(#4770) - Add
nightfox
(#4769, #4966) - Update
doom_acario_dark
(#4979) - Update
autumn
(#4996) - Update
acme
(#4999) - Update
nord_light
(#4999) - Update
serika_*
(#5015)
LSP configurations:
- Switch to
openscad-lsp
for OpenScad (#3750) - Support Jsonnet (#3748)
- Support Markdown (#3499)
- Support Bass (#3771)
- Set roots configuration for Elixir and HEEx (#3917, #3959)
- Support Purescript (#4242)
- Set roots configuration for Julia (#4361)
- Support D (#4372)
- Increase default language server timeout for Julia (#4575)
- Use ElixirLS for HEEx (#4679)
- Support Bicep (#4403)
- Switch to
nil
for Nix (433ccef) - Support QML (#4842)
- Enable auto-format for CSS (#4987)
- Support CommonLisp (4176769)
New languages:
- SML (#3692)
- Jsonnet (#3714)
- Godot resource (#3759)
- Astro (#3829)
- SSH config (#2455, #4538)
- Bass (#3771)
- WAT (WebAssembly text format) (#4040, #4542)
- Purescript (#4242)
- D (#4372, #4562)
- VHS (#4486)
- KDL (#4481)
- XML (#4518)
- WIT (#4525)
- ENV (#4536)
- INI (#4538)
- Bicep (#4403, #4751)
- QML (#4842)
- CommonLisp (4176769)
Updated languages and queries:
- Zig (#3621, #4745)
- Rust (#3647, #3729, #3927, #4073, #4510, #4659, #4717)
- Solidity (20ed8c2)
- Fish (#3704)
- Elixir (#3645, #4333, #4821)
- Diff (#3708)
- Nix (665e27f, 1fe3273)
- Markdown (#3749, #4078, #4483, #4478)
- GDScript (#3760)
- JSX and TSX (#3853, #3973)
- Ruby (#3976, #4601)
- R (#4031)
- WGSL (#3996, #4079)
- C# (#4118, #4281, #4213)
- Twig (#4176)
- Lua (#3552)
- C/C++ (#4079, #4278, #4282)
- Cairo (17488f1, 431f9c1, 09a6df1)
- Rescript (#4356)
- Zig (#4409)
- Scala (#4353, #4697, #4701)
- LaTeX (#4528, #4922)
- SQL (#4529)
- Python (#4560)
- Bash/Zsh (#4582)
- Nu (#4583)
- Julia (#4588)
- Typescript (#4703)
- Meson (#4572)
- Haskell (#4800)
- CMake (#4809)
- HTML (#4829, #4881)
- Java (#4886)
- Go (#4906, #4969, #5010)
- CSS (#4882)
- Racket (#4915)
- SCSS (#5003)
Packaging:
- Filter relevant source files in the Nix flake (#3657)
- Build a binary for
aarch64-linux
in the release CI (038a91d) - Build an AppImage for
aarch64-linux
in the release CI (b738031) - Enable CI builds for
riscv64-linux
(#3685) - Support preview releases in CI (0090a2d)
- Strip binaries built in CI (#3780)
- Fix the development shell for the Nix Flake on
aarch64-darwin
(#3810) - Raise the MSRV and create an MSRV policy (#3896, #3913, #3961)
- Fix Fish completions for
--config
and--log
flags (#3912) - Use builtin filenames option in Bash completion (#4648)
This is a patch release that fixes a panic caused by closing splits or buffers. (#3633)
A big thank you to our contributors! This release had 87 contributors.
As usual, the following is a summary of each of the changes since the last release. For the full log, check out the git log.
Breaking changes:
- Special keymap names for
+
,;
and%
have been replaced with those literal characters (#2677, #3556) A-Left
andA-Right
have becomeC-Left
andC-Right
for word-wise motion (#2500)- The
catppuccin
theme's name has been corrected fromcatpuccin
(#2713) catppuccin
has been replaced by its variants,catppuccin_frappe
,catppuccin_latte
,catppuccin_macchiato
,catppuccin_mocha
(#3281)C-n
andC-p
have been removed from the default insert mode keymap (#3340)- The
extend_line
command has been replaced withextend_line_below
and a newextend_line
command now exists (#3046)
Features:
- Add an integration testing harness (#2359)
- Indent guides (#1796, 906259c)
- Cursorline (#2170, fde9e03)
- Select all instances of the symbol under the cursor (
<space>h
) (#2738) - A picker for document and workspace LSP diagnostics (
<space>g
/<space>G
) (#2013, #2984) - Allow styling the mode indicator per-mode (#2676)
- Live preview for the theme picker (#1798)
- Configurable statusline (#2434)
- LSP SignatureHelp (#1755, a8b123f)
- A picker for the jumplist (#3033)
- Configurable external formatter binaries (#2942)
- Bracketed paste support (#3233, 12ddd03)
Commands:
:insert-output
and:append-output
which insert/append output from a shell command (#2589)- The
t
textobject (]t
/[t
/mit
/mat
) for navigating tests (#2807) C-Backspace
andC-Delete
for word-wise deletion in prompts and pickers (#2500)A-Delete
for forward word-wise deletion in insert mode (#2500)C-t
for toggling the preview pane in pickers (#3021)extend_line
now extends in the direction of the cursor (#3046)
Usability improvements and fixes:
- Fix tree-sitter parser builds on illumos (#2602)
- Remove empty stratch buffer from jumplists when removing (5ed6223)
- Fix panic on undo after
shell_append_output
(#2625) - Sort LSP edits by start range (3d91c99)
- Be more defensive about LSP URI conversions (6de6a3e, 378f438)
- Ignore SendErrors when grammar builds fail (#2641)
- Append
set_line_ending
to document history (#2649) - Use last prompt entry when empty (b14c258, #2870)
- Do not add extra line breaks in markdown lists (#2689)
- Disable dialyzer by default for ElixirLS (#2710)
- Refactor textobject node capture (#2741)
- Prevent re-selecting the same range with
expand_selection
(#2760) - Introduce
keyword.storage
highlight scope (#2731) - Handle symlinks more consistently (#2718)
- Improve markdown list rendering (#2687)
- Update auto-pairs and idle-timout settings when the config is reloaded (#2736)
- Fix panic on closing last buffer (#2658)
- Prevent modifying jumplist until jumping to a reference (#2670)
- Ensure
:quit
and:quit!
take no arguments (#2654) - Fix crash due to cycles when replaying macros (#2647)
- Pass LSP FormattingOptions (#2635)
- Prevent showing colors when the health-check is piped (#2836)
- Use character indexing for mouse selection (#2839)
- Display the highest severity diagnostic for a line in the gutter (#2835)
- Default the ruler color to red background (#2669)
- Make
move_vertically
aware of tabs and wide characters (#2620) - Enable shellwords for Windows (#2767)
- Add history suggestions to global search (#2717)
- Fix the scrollbar's length proportional to total menu items (#2860)
- Reset terminal modifiers for diagnostic text (#2861, #2900)
- Redetect indents and line-endings after a Language Server replaces the document (#2778)
- Check selection's visible width when copying on mouse click (#2711)
- Fix edge-case in tree-sitter
expand_selection
command (#2877) - Add a single-width left margin for the completion popup (#2728)
- Right-align the scrollbar in the completion popup (#2754)
- Fix recursive macro crash and empty macro lockout (#2902)
- Fix backwards character deletion on other whitespaces (#2855)
- Add search and space/backspace bindings to view modes (#2803)
- Add
--vsplit
and--hsplit
CLI arguments for opening in splits (#2773, #3073) - Sort themes, languages and files inputs by score and name (#2675)
- Highlight entire rows in (#2939)
- Fix backwards selection duplication widening bug (#2945, #3024)
- Skip serializing Option type DAP fields (44f5963)
- Fix required
cwd
field in DAPRunTerminalArguments
type (85411be, #3240) - Add LSP
workspace/applyEdit
to client capabilities (#3012) - Respect count for repeating motion (#3057)
- Respect count for selecting next/previous match (#3056)
- Respect count for tree-sitter motions (#3058)
- Make gutters padding optional (#2996)
- Support pre-filling prompts (#2459, #3259)
- Add statusline element to display file line-endings (#3113)
- Keep jump and file history when using
:split
(#3031, #3160) - Make tree-sitter query
; inherits <language>
feature imperative (#2470) - Indent with tabs by default (#3095)
- Fix non-msvc grammar compilation on Windows (#3190)
- Add spacer element to the statusline (#3165, 255c173)
- Make gutters padding automatic (#3163)
- Add
code
for LSPDiagnostic
type (#3096) - Add position percentage to the statusline (#3168)
- Add a configurable and themable statusline separator string (#3175)
- Use OR of all selections when
search_selection
acts on multiple selections (#3138) - Add clipboard information to logs and the healthcheck (#3271)
- Fix align selection behavior on tabs (#3276)
- Fix terminal cursor shape reset (#3289)
- Add an
injection.include-unnamed-children
predicate to injections queries (#3129) - Add a
-c
/--config
CLI flag for specifying config file location (#2666) - Detect indent-style in
:set-language
command (#3330) - Fix non-deterministic highlighting (#3275)
- Avoid setting the stdin handle when not necessary (#3248, #3379)
- Fix indent guide styling (#3324)
- Fix tab highlight when tab is partially visible (#3313)
- Add completion for nested settings (#3183)
- Advertise WorkspaceSymbolClientCapabilities LSP client capability (#3361)
- Remove duplicate entries from the theme picker (#3439)
- Shorted output for grammar fetching and building (#3396)
- Add a
tabpad
option for visible tab padding whitespace characters (#3458) - Make DAP external terminal provider configurable (cb7615e)
- Use health checkmark character with shorter width (#3505)
- Reset document mode to normal on view focus loss (e4c9d40)
- Render indented code-blocks in markdown (#3503)
- Add WezTerm to DAP terminal provider defaults (#3588)
- Derive
Document
language name fromlanguages.toml
name
key (#3338) - Fix process spawning error handling (#3349)
- Don't resolve links for
:o
completion (8a4fbf6) - Recalculate completion after pasting into prompt (e77b7d1)
- Fix extra selections with regex anchors (#3598)
- Move mode transition logic to
handle_keymap_event
(#2634) - Add documents to view history when using the jumplist (#3593)
- Prevent panic when loading tree-sitter queries (fa1dc7e)
- Discard LSP publishDiagnostic when LS is not initialized (#3403)
- Refactor tree-sitter textobject motions as repeatable motions (#3264)
- Avoid command execution hooks on closed docs (#3613)
- Share
restore_term
code between panic and normal exits (#2612) - Show clipboard info in
--health
output (#2947) - Recalculate completion when going through prompt history (#3193)
Themes:
- Update
tokyonight
andtokyonight_storm
themes (#2606) - Update
solarized_light
themes (#2626) - Fix
catpuccin
ui.popup
theme (#2644) - Update selection style of
night_owl
(#2668) - Fix spelling of
catppuccin
theme (#2713) - Update
base16_default
'sui.menu
(#2794) - Add
noctis_bordo
(#2830) - Add
acme
(#2876) - Add
meliora
(#2884, #2890) - Add cursorline scopes to various themes (33d287a, #2892, #2915, #2916, #2918, #2927, #2925, #2938, #2962, #3054)
- Add mode colors to various themes (#2926, #2933, #2929, #3098, #3104, #3128, #3135, #3200)
- Add
nord_light
(#2908) - Update
night_owl
(#2929) - Update
autumn
(2e70985, 936ed3a) - Update
one_dark
(#3011) - Add
noctis
(#3043, #3128) - Update
boo_berry
(#3191) - Update
monokai
(#3131) - Add
ayu_dark
,ayu_light
,ayu_mirage
(#3184) - Update
onelight
(#3226) - Add
base16_transparent
(#3216, b565fff) - Add
flatwhite
(#3236) - Update
dark_plus
(#3302) - Add
doom_acario_dark
(#3308, #3539) - Add
rose_pine_moon
(#3229) - Update
spacebones_light
(#3342) - Fix typos in themes (8deaebd, #3412)
- Add
emacs
(#3410) - Add
papercolor-light
(#3426, #3470, #3585) - Add
penumbra+
(#3398) - Add
fleetish
(#3591, #3607) - Add
sonokai
(#3595) - Update all themes for theme lints (#3587)
LSP:
- V (#2526)
- Prisma (#2703)
- Clojure (#2780)
- WGSL (#2872)
- Elvish (#2948)
- Idris (#2971)
- Fortran (#3025)
- Gleam (#3139)
- Odin (#3214)
New languages:
- V (#2526)
- EDoc (#2640)
- JSDoc (#2650)
- OpenSCAD (#2680)
- Prisma (#2703)
- Clojure (#2780)
- Starlark (#2903)
- Elvish (#2948)
- Fortran (#3025)
- Ungrammar (#3048)
- SCSS (#3074)
- Go Template (#3091)
- Graphviz dot (#3241)
- Cue (#3262)
- Slint (#3355)
- Beancount (#3297)
- Taskwarrior (#3468)
- xit (#3521)
- ESDL (#3526)
- Awk (#3528, #3535)
- Pascal (#3542)
Updated languages and queries:
- Nix (#2472)
- Elixir (#2619)
- CPON (#2643)
- Textobjects queries for Erlang, Elixir, Gleam (#2661)
- Capture rust closures as function textobjects (4a27e2d)
- Heex (#2800, #3170)
- Add
<<=
operator highlighting for Rust (#2805) - Fix comment injection in JavaScript/TypeScript (#2763)
- Nickel (#2859)
- Add
Rakefile
andGemfile
to Ruby file-types (#2875) - Erlang (#2910, ac669ad)
- Markdown (#2910, #3108, #3400)
- Bash (#2910)
- Rust (#2910, #3397)
- Edoc (#2910)
- HTML (#2910)
- Make (#2910)
- TSQ (#2910, #2960)
- git-commit (#2910)
- Use default fallback for Python indents (9ae70cc)
- Add Haskell LSP roots (#2954)
- Ledger (#2936, #2988)
- Nickel (#2987)
- JavaScript/TypeScript (#2961, #3219, #3213, #3280, #3301)
- GLSL (#3051)
- Fix locals tracking in Rust (#3027, #3212, #3345)
- Verilog (#3158)
- Ruby (#3173, #3527)
- Svelte (#3147)
- Add Elixir and HEEx comment textobjects (#3179)
- Python (#3103, #3201, #3284)
- PHP (#3317)
- Latex (#3370)
- Clojure (#3387)
- Swift (#3461)
- C# (#3480, #3494)
- Org (#3489)
- Elm (#3497)
- Dart (#3419)
- Julia (#3507)
- Fix Rust textobjects (#3590)
- C (00d88e5)
- Update Rust (0ef0ef9)
Packaging:
- Add
rust-analyzer
to Nix flake devShell (#2739) - Add cachix information to the Nix flake (#2999)
- Pass makeWrapperArgs to wrapProgram in the Nix flake (#3003)
- Add a way to override which grammars are built by Nix (#3141)
- Add a GitHub actions release for
aarch64-macos
(#3137) - Add shell auto-completions for Elvish (#3331)
An even bigger shout out than usual to all the contributors - we had a whopping 110 contributors in this release! That's more than double the number of contributors as last release!
Check out some of the highlights in the news section.
As usual, the following is a summary of each of the changes since the last release. For the full log, check out the git log.
Breaking Changes:
- Removed
C-j
,C-k
bindings from file picker (#1792) - Replaced
C-f
withC-d
andC-b
withC-u
bindings in file picker (#1792) A-hjkl
bindings have been moved toA-pion
(#2205)A-Left
/A-Right
have been moved toC-Left
/C-Right
(#2193)
Features:
- The indentation mechanism has been reworked (#1562, #1908)
- Configurable gutters (#1967)
- Support for local language configuration (#1249)
- Configurable themed rulers (#2060)
- Render visible whitespace (e6b865e, #2322, #2331)
Commands:
- Paragraph motion and textobject (
]p
,[p
) (#1627, #1956, #1969, #1992, #2226) :buffer-next
,:buffer-previous
(#1940):set-language
to set the buffers language (#1866, #1996)- Command for picking files from the current working directory (
Space-F
) (#1600, #2308) :write!
which creates non-existent subdirectories (#1839)- Add
m
textobject that selects closest surrounding pair (de15d70, 76175db) :pipe
typable command for piping selections (#1972)extend_line_above
which extends to previous lines (#2117)set_line_ending
which replaces line endings (#1871):get-option
for getting the current value of an option (:get
) (#2231):run-shell-command
which does not interact with selections (#1682):reflow
which hard-wraps selected text (#2128)commit_undo_checkpoint
which adds an undo checkpoint (#2115):log-open
which opens the log file (#2422)transpose_view
which transposes window splits (#2461)- View-swapping:
swap_view_right
,swap_view_left
,swap_view_up
,swap_view_down
(#2445) shrink_to_line_bounds
which shrinks selections to line-bounds (#2450)
Usability improvements and fixes:
- Handle broken pipes when piping
hx --health
throughhead
(#1876) - Fix for
copy_selection
on newlines (ab7885e, 236c6b7) - Use
win32yank
clipboard provider on WSL2 (#1912) - Jump to the next number on the line before incrementing (#1778)
- Fix start position of next search (#1904)
- Use check and X marks for health check output (#1918)
- Clear terminal after switching to alternate screens (#1944)
- Fix
toggle_comments
command on multiple selections (#1882) - Apply
ui.gutter
theming to empty gutter spans (#2032) - Use checkboxes in
hx --health
output (#1947) - Pass unmapped keys through prompt regardless of modifiers (764adbd)
- LSP: pull formatting options from config (c18de0e)
- LSP: provide
rootPath
(84e799f) - LSP: implement
workspace_folders
(8adf0c1) - LSP: fix auto-import (#2088)
- Send active diagnostic to LSP when requesting code actions (#2005)
- Prevent panic when parsing malformed LSP
PublishDiagnostic
(#2160) - Restore document state on completion cancel (#2096)
- Only merge top-level array when merging
languages.toml
(#2145, #2215) - Fix open on multiline selection (#2161)
- Allow re-binding
0
if it is not used in a count (#2174) - Fix
ctrl-u
behavior in insert mode (#1957) - Check LSP rename capabilities before sending rename action (#2203)
- Register the
publish_diagnostics
LSP capability (#2241) - Fix paste direction for typed paste commands (#2288)
- Improve handling of buffer-close (#1397)
- Extend the tutor file (#2133)
- Treat slashes as word separators in prompts (#2315)
- Auto-complete directory members (#1682)
- Allow disabling format-on-save as a global editor setting (#2321)
- Wrap command palette in overlay (#2378)
- Prevent selections from collapsing when inserting newlines (#2414)
- Allow configuration of LSP request timeout (#2405)
- Use debug console on Windows for DAP terminal (#2294)
- Exclude cursor when deleting with
C-w
in insert mode (#2431) - Prevent panics from LSP parsing errors (7ae6cad)
- Prevent panics from LSP responses without requests (#2475)
- Fix scroll rate for documentation popups (#2497)
- Support inserting into prompts from registers (#2458)
- Separate theme scopes for diagnostic types (#2437)
- Use
ui.menu
instead ofui.statusline
for command completion menu theming (82fb217) - Panic when reloading a shrunk file (#2506)
- Add theme key for picker separator (#2523)
Themes:
- Remove
ui.text
background from dark_plus (#1950) - Add
boo_berry
(#1962) - Update
dark_plus
markup colors (#1989) - Update
dark_plus
tag
andui.menu.selected
colors (#2014) - Add
dracula_at_night
(#2008) - Improve
dracula
selection theming (#2077) - Remove dim attribute on
onedark
line-number gutter (#2155) - Add
tokyonight
(#2162) - Use border colors from the original
dark_plus
theme (#2186) - Add
autumn
(#2212, #2270, #2531) - Add
tokyonight_storm
(#2240) - Add
pop-dark
(#2189) - Fix
base16_terminal
theme using incorrect ansi-color (#2279) - Add
onelight
(#2287, #2323) - Add
ui.virtual
scopes toonedark
theme (3626e38) - Add
night_owl
(#2330) - Use yellow foreground and red background for
monokai_pro_spectrum
(#2433) - Add
snazzy
(#2473) - Update
dark_plus
constructor color (8e8d4ba) - Add
ui.menu
to the default theme (e7e13dc) - Add
ui.menu
to any themes missing the key (9be810f) - Add
catppuccin
(#2546, 7160e74)
LSP:
- Use texlab for latex (#1922)
- HTML (#2018)
- JSON (#2024)
- CSS (#2025)
- PHP (#2031)
- Swift (#2033)
- OCaml (#2035)
- Vue (#2043)
- Yaml (#2234)
- Vala (#2243)
- TOML (#2302)
- Java (#2511)
- Lua (#2560)
- Verilog (#2552)
New Languages:
- JSX (#1906, a24fb17, 855e438, #1921)
- Rust Object Notation (RON) (#1925)
- R and R Markdown (#1998)
- Swift (#2033)
- EJS and ERB (#2055)
- EEx (9d095e0)
- HEEx (4836bb3, #2149)
- SQL (#2097)
- GDScript (#1985)
- Nickel (#2173, #2320)
go.mod
andgo.work
(#2197)- Nushell (#2225)
- Vala (#2243)
- Hare (#2289, #2480)
- DeviceTree (#2329)
- Cairo (7387905)
- CPON (#2355, #2424)
- git-ignore (#2397)
- git-attributes (#2397)
- Odin (#2399, #2464)
- Meson (#2314)
- SSH Client Config (#2498)
- Scheme (d25bae8)
- Verilog (#2552)
Updated Languages and Queries:
- Erlang (e2a5071, #2149, 82da9bd)
- Elixir (1819478, 8c3c901, 4ac94a5)
- Gleam (7cd6050, 45dd540)
- Bash (#1917)
- JavaScript (#2140)
- Ruby textobject queries (#2143)
- Fix Golang textobject queries (#2153)
- Add more bash and HCL file extensions (#2201)
- Divide HCL and tfvars into separate languages (#2244)
- Use JavaScript for
cjs
files (#2387) - Use Perl for
t
files (#2395) - Use
markup.list
scopes for lists (#2401) - Use PHP for
inc
files (#2440) - Improve Rust textobjects (#2494, 10463fe)
- Python (#2451)
Packaging:
- Use
builtins.fromTOML
in Nix Flake on Nix 2.6+ (#1892) - Shell auto-completion files are now available (#2022)
- Create an AppImage on release (#2089)
A big shout out to all the contributors! We had 51 contributors in this release.
This release is particularly large and featureful. Check out some of the highlights in the news section.
As usual, the following is a summary of each of the changes since the last release. For the full log, check out the git log.
Breaking changes:
Features:
- Experimental Debug Adapter Protocol (DAP) support (#574)
- Primary cursor shape may now be customized per mode (#1154)
- Overhaul incremental highlights and enable combined injections (
6728344..4080341
) - Allow specifying file start position (#445, #1676)
- Dynamic line numbers (#1522)
- Show an info box with the contents of registers (#980)
- Wrap-around behavior during search is now configurable (#1516)
- Tree-sitter textobjects motions for classes, functions, and parameters (#1619, #1708, #1805)
- Command palette: a picker for available commands (#1400)
- LSP
workspace/configuration
andworkspace/didChangeConfiguration
support (#1684) hx --health [LANG]
command (#1669)- Refactor of the tree-sitter grammar system (#1659)
- All submodules have been removed
- New
hx --grammar {fetch|build}
flags for fetching and building tree-sitter grammars - A custom grammar selection may now be declared with the
use-grammars
key inlanguages.toml
Commands:
:cquit!
- quit forcefully with a non-zero exit-code (#1414)shrink_selection
- shrink the selection to a child tree-sitter node (Alt-j
, #1340):tree-sitter-subtree
- show the tree-sitter subtree under the primary selection (#1453, #1524)- Add
Alt-Backspace
,Alt-<
,Alt->
, andCtrl-j
to insert mode (#1441) select_next_sibling
,select_prev_sibling
- select next and previous tree-sitter nodes (Alt-l
andAlt-h
, #1495):buffer-close-all
,:buffer-close-all!
,:buffer-close-others
, and:buffer-close-others!
(#1677):vsplit-new
and:hsplit-new
- open vertical and horizontal splits with new scratch buffers (#1763):open-config
to open the config file and:refresh-config
to refresh config after changes (#1771, #1803)
Usability improvements and fixes:
- Prevent
:cquit
from ignoring unsaved changes (#1414) - Scrolling view keeps selections (#1420)
- Only use shellwords parsing on unix platforms (
7767703
) - Fix slash in search selector status message (#1449)
- Use
std::path::MAIN_SEPARATOR
to determine completion (3e4f815
) - Expand to current node with
expand_selection
when the node has no children (#1454) - Add vertical and horizontal splits to the buffer picker (#1502)
- Use the correct language ID for JavaScript & TypeScript LSP (#1466)
- Run format command for all buffers being written (#1444)
- Fix panics during resizing (#1408)
- Fix auto-pairs with CRLF (#1470)
- Fix picker scrolling when the bottom is reached (#1567)
- Use markup themes for the markdown component (#1363)
- Automatically commit changes to history if not in insert mode (
2a7ae96
) - Render code-actions as a menu and add padding to popup (
094a0aa
) - Only render menu scrollbar if the menu doesn't fit (
f10a06f
,36b975c
) - Parse git revision instead of tag for version (
d3221b0
, #1674) - Fix incorrect last modified buffer (#1621)
- Add
PageUp
,PageDown
,Ctrl-u
,Ctrl-d
,Home
,End
bindings to the file picker (#1612) - Display buffer IDs in the buffer picker (#1134)
- Allow multi-line prompt documentation (
2af0432
) - Ignore the
.git
directory from the file picker (#1604) - Allow separate styling for markup heading levels (#1618)
- Automatically close popups (#1285)
- Allow auto-pairs tokens to be configured (#1624)
- Don't indent empty lines in
indent
command (#1653) - Ignore
Enter
keypress when a menu has no selection (#1704) - Show errors when surround deletions and replacements fail (#1709)
- Show infobox hints for
mi
andma
(#1686) - Highlight matching text in file picker suggestions (#1635)
- Allow capturing multiple nodes in textobject queries (#1611)
- Make repeat operator work with completion edits (#1640)
- Save to the jumplist when searching (#1718)
- Fix bug with auto-replacement of components in compositor (#1711)
- Use Kakoune logic for
align_selection
(#1675) - Fix
follows
fornixpkgs
inflake.nix
(#1729) - Performance improvements for the picker (
78fba86
) - Rename infobox theme scopes (#1741)
- Fallback to broader scopes if a theme scope is not found (#1714)
- Add arrow-keys bindings for tree-sitter sibling selection commands (#1724)
- Fix a bug in LSP when creating a file in a folder that does not exist (#1775)
- Use
^
and$
regex location assertions for search (#1793) - Fix register names in
insert_register
command (#1751) - Perform extend line for all selections (#1804)
- Prevent panic when moving in an empty picker (#1786)
- Fix line number calculations for non CR/CRLF line breaks (
b4a282f
,0b96201
) - Deploy documentation for
master
builds separately from release docs (#1783)
Themes:
- Add everforest_light (#1412)
- Add gruvbox_light (#1509)
- Add modified background to dracula popup (#1434)
- Markup support for monokai pro themes (#1553)
- Markup support for dracula theme (#1554)
- Add
tag
to gruvbox theme (#1555) - Markup support for remaining themes (#1525)
- Serika light and dark (#1566)
- Fix rose_pine and rose_pine_dawn popup background color (#1606)
- Fix hover menu item text color in base16 themes (#1668)
- Update markup heading styles for everforest (#1687)
- Update markup heading styles for rose_pine themes (#1706)
- Style bogster cursors (
6a6a9ab
) - Fix
ui.selection
in rose_pine themes (#1716) - Use distinct colors for cursor and matched pair in gruvbox (#1791)
- Improve colors for
ui.cursor.match
capture in some themes (#1862)
LSP:
- Add default language server for JavaScript (#1457)
- Add
pom.xml
as maven root directory marker (#1496) - Haskell LSP (#1556)
- C-sharp LSP support (#1788)
- Clean up Julia LSP config (#1811)
New Languages:
- llvm-mir (#1398)
- regex (#1362)
- Make (#1433, #1661)
- git-config (#1426)
- Lean (#1422)
- Elm (#1514)
- GraphQL (#1515)
- Twig (#1602)
- Rescript (#1616, #1863)
- Erlang (#1657)
- Kotlin (#1689)
- HCL (#1705, #1726)
- Org (#1845)
- Solidity (#1848, #1854)
Updated Languages and Queries:
- Textobject and indent queries for c and cpp (#1293)
- Fix null and boolean constant highlights for nix (#1428)
- Capture markdown link text as
markup.link.text
(#1456) - Update and re-enable Haskell (#1417, #1520)
- Update Go with generics support (
ddbf036
) - Use
tree-sitter-css
for SCSS files (#1507) - Update Zig (#1501)
- Update PHP (#1521)
- Expand language support for comment injections (#1527)
- Use tree-sitter-bash for
.zshrc
and.bashrc
(7d51042
) - Use tree-sitter-bash for
.bash_profile
(#1571) - Use tree-sitter-bash for
.zshenv
and ZSH files (#1574) - IEx (#1576)
- Textobject queries for PHP (#1601)
- C-sharp highlight query improvements (#1795)
- Git commit performance has been improved on large verbose commits (#1838)
Packaging:
- The submodules system has been replaced with command-line flags for fetching and building tree-sitter grammars (#1659)
- Flake outputs are pushed to Cachix on each push to
master
(#1721) - Update flake's
nix-cargo-integration
to depend ondream2nix
(#1758)
Happy new year and a big shout out to all the contributors! We had 55 contributors in this release.
Helix has popped up in DPorts and Fedora Linux via COPR (#1270)
As usual the following is a brief summary, refer to the git history for a full log:
Breaking changes:
- fix: Normalize backtab into shift-tab
Features:
- Macros (#1234)
- Add reverse search functionality (#958)
- Allow keys to be mapped to sequences of commands (#589)
- Make it possible to keybind TypableCommands (#1169)
- Detect workspace root using language markers (#1370)
- Add WORD textobject (#991)
- Add LSP rename_symbol (
space-r
) (#1011) - Added workspace_symbol_picker (#1041)
- Detect filetype from shebang line (#1001)
- Allow piping from stdin into a buffer on startup (#996)
- Add auto pairs for same-char pairs (#1219)
- Update settings at runtime (#798)
- Enable thin LTO (
cccc194
)
Commands:
:wonly
-- window only (#1057)- buffer-close (
:bc
,:bclose
) (#1035) - Add
:<line>
and:goto <line>
commands (#1128) :sort
command (#1288)- Add m textobject for pair under cursor (#961)
- Implement "Goto next buffer / Goto previous buffer" commands (#950)
- Implement "Goto last modification" command (#1067)
- Add trim_selections command (#1092)
- Add movement shortcut for history (#1088)
- Add command to inc/dec number under cursor (#1027)
- Add support for dates for increment/decrement
- Align selections (
&
) (#1101) - Implement no-yank delete/change (#1099)
- Implement black hole register (#1165)
gf
as goto_file (gf
) (#1102)- Add last modified file (
gm
) (#1093) - ensure_selections_forward (#1393)
- Readline style insert mode (#1039)
Usability improvements and fixes:
- Detect filetype on
:write
(#1141) - Add single and double quotes to matching pairs (#995)
- Launch with defaults upon invalid config/theme (rather than panicking) (#982)
- If switching away from an empty scratch buffer, remove it (#935)
- Truncate the starts of file paths instead of the ends in picker (#951)
- Truncate the start of file paths in the StatusLine (#1351)
- Prevent picker from previewing binaries or large file (#939)
- Inform when reaching undo/redo bounds (#981)
- search_impl will only align cursor center when it isn't in view (#959)
- Add
<C-h>
,<C-u>
,<C-d>
, Delete in prompt mode (#1034) - Restore screen position when aborting search (#1047)
- Buffer picker: show is_modifier flag (#1020)
- Add commit hash to version info, if present (#957)
- Implement indent-aware delete (#1120)
- Jump to end char of surrounding pair from any cursor pos (#1121)
- File picker configuration (#988)
- Fix surround cursor position calculation (#1183)
- Accept count for goto_window (#1033)
- Make kill_to_line_end behave like Emacs (#1235)
- Only use a single documentation popup (#1241)
- ui: popup: Don't allow scrolling past the end of content (
3307f44c
) - Open files with spaces in filename, allow opening multiple files (#1231)
- Allow paste commands to take a count (#1261)
- Auto pairs selection (#1254)
- Use a fuzzy matcher for commands (#1386)
- Add
<C-s>
to pick word under doc cursor to prompt line & search completion (#831) - Fix
:earlier
/:later
missing changeset update (#1069) - Support extend for multiple goto (#909)
- Add arrow-key bindings for window switching (#933)
- Implement key ordering for info box (#952)
LSP:
- Implement MarkedString rendering (
e128a8702
) - Don't panic if init fails (
d31bef7
) - Configurable diagnostic severity (#1325)
- Resolve completion item (#1315)
- Code action command support (#1304)
Grammars:
- Adds mint language server (#974)
- Perl (#978) (#1280)
- GLSL (#993)
- Racket (#1143)
- WGSL (#1166)
- LLVM (#1167) (#1388) (#1409) (#1398)
- Markdown (
49e06787
) - Scala (#1278)
- Dart (#1250)
- Fish (#1308)
- Dockerfile (#1303)
- Git (commit, rebase, diff) (#1338) (#1402) (#1373)
- tree-sitter-comment (#1300)
- Highlight comments in c, cpp, cmake and llvm (#1309)
- Improve yaml syntax highlighting highlighting (#1294)
- Improve rust syntax highlighting (#1295)
- Add textobjects and indents to cmake (#1307)
- Add textobjects and indents to c and cpp (#1293)
New themes:
- Solarized dark (#999)
- Solarized light (#1010)
- Spacebones light (#1131)
- Monokai Pro (#1206)
- Base16 Light and Terminal (#1078)
- and a default 16 color theme, truecolor detection
- Dracula (#1258)
A big shout out to all the contributors! We had 46 contributors in this release.
Helix has popped up in Scoop, FreeBSD Ports and Gentu GURU!
The following is a quick rundown of the larger changes, there were many more (check the git history for more details).
Breaking changes:
- A couple of keymaps moved to resolve a few conflicting keybinds.
- Documentation popups were moved from
K
tospace+k
K
is nowkeep_selections
which filters selections to only keeps ones matching the regexkeep_primary_selection
moved fromspace+space
to,
Alt-,
is nowremove_primary_selection
which keeps all selections except the primary one- Opening files in a split moved from
C-h
toC-s
- Documentation popups were moved from
- Some configuration options moved from a
[terminal]
section to[editor]
. Consult the documentation for more information.
Features:
- LSP compatibility greatly improved for some implementations (Julia, Python, Typescript)
- Autocompletion! Completion now triggers automatically after a set idle timeout
- Completion documentation is now displayed next to the popup (#691)
- Treesitter textobjects (select a function via
mf
, class viamc
) (#728) - Global search across entire workspace
space+/
(#651) - Relative line number support (#485)
- Prompts now store a history (
72cf86e
) :vsplit
and:hsplit
commands (#639)C-w h/j/k/l
can now be used to navigate between splits (#860)C-j
andC-k
are now alternative keybindings toC-n
andC-p
in the UI (#876)- Shell commands (shell-pipe, pipe-to, shell-insert-output, shell-append-output, keep-pipe) (#547)
- Searching now defaults to smart case search (case insensitive unless uppercase is used) (#761)
- The preview pane was improved to highlight and center line ranges
- The user
languages.toml
is now merged into defaults, no longer need to copy the entire file (dc57f8dc
) - Show hidden files in completions (#648)
- Grammar injections are now properly handled (
dd0b15e
) v
in select mode now switches back to normal mode (#660)- View mode can now be triggered as a "sticky" mode (#719)
f
/t
and object selection motions can now be repeated viaAlt-.
(#891)- Statusline now displays total selection count and diagnostics counts for both errors and warnings (#916)
New grammars:
- Ledger (#572)
- Protobuf (#614)
- Zig (#631)
- YAML (#667)
- Lua (#665)
- OCaml (#666)
- Svelte (#733)
- Vue (#787)
- Tree-sitter queries (#845)
- CMake (#888)
- Elixir (we switched over to the official grammar) (
6c0786e
) - Language server definitions for Nix and Elixir (#725)
- Python now uses
pylsp
instead ofpyls
- Python now supports indentation
New themes:
Fixes:
- Fix crash on empty rust file (#592)
- Exit select mode after toggle comment (#598)
- Pin popups with no positioning to the initial position (
12ea3888
) - xsel copy should not freeze the editor (
6dd7dc4
) *
now only sets the search register and doesn't jump to the next occurrence (3426285
)- Goto line start/end commands extend when in select mode (#739)
- Fix documentation popups sometimes not getting fully highlighted (
066367c
) - Refactor apply_workspace_edit to remove assert (
b02d872
) - Wrap around the top of the picker menu when scrolling (
c7d6e44
) - Don't allow closing the last split if there's unsaved changes (
3ff5b00
) - Indentation used different default on hx vs hx new_file.txt (
c913bad
)
A minor release that includes:
- A fix for rendering glitches that would occur after editing with multiple selections.
- CI fix for grammars not being cross-compiled for aarch64
A big shout out to all the contributors! We had 28 contributors in this release.
Two months have passed, so this is another big release. A big thank you to all the contributors and package maintainers!
Helix has popped up in Arch, Manjaro, Nix, MacPorts and Parabola and Termux repositories!
A large scale refactor landed that allows us to support zero width (empty) selections in the future as well as resolves many bugs and edge cases.
- Multi-key remapping! Key binds now support much more complex usecases (#454)
- Pending keys are shown in the statusline (#515)
- Object selection / textobjects.
mi(
to select text inside parentheses (#385) - Autoinfo:
whichkey
-like popups which show available sub-mode shortcuts (#316) - Added WORD movements (W/B/E) (#390)
- Vertical selections (repeat selection above/below) (#462)
- Selection rotation via
(
and)
(66a90130
) - Selection contents rotation via
Alt-(
andAlt-)
(02cba2a
) - Completion behavior improvements (
f917b5a4
,627b899
) - Fixed a language server crash (
385a6b5a
) - Case change commands (
`
,~
,<a-`>
) (#441) - File pickers (including goto) now provide a preview! (#534)
- Injection query support. Rust macro calls and embedded languages are now properly highlighted (#430)
- Formatting is now asynchronous, and the async job infrastructure has been improved (#285)
- Grammars are now compiled as separate shared libraries and loaded on-demand at runtime (#432)
- Code action support (#478)
- Mouse support (#509, #548)
- Native Windows clipboard support (#373)
- Themes can now use color palettes (#393)
:reload
command (#374)- Ctrl-z to suspend (#464)
- Language servers can now be configured with a custom JSON config (#460)
- Comment toggling now uses a language specific comment token (#463)
- Julia support (#413)
- Java support (#448)
- Prompts have an (in-memory) history (
63e54e30
)
A big shout out to all the contributors! We had 24 contributors in this release.
Another big release.
Highlights:
- Indentation is now automatically detected from file heuristics. (#245)
- Support for other line endings (CRLF). Significantly improved Windows support. (#224)
- Encodings other than UTF-8 are now supported! (#228)
- Key bindings can now be configured via a
config.toml
file (#268) - Theme can now be configured and changed at runtime. (Please feel free to contribute more themes!) (#267)
- System clipboard yank/paste is now supported! (#310)
- Surround commands were implemented (#320)
Features:
- File picker can now be repeatedly filtered (#232)
- LSP progress is now received and rendered as a spinner (#234)
- Current line number can now be themed (#260)
- Arrow keys & home/end now work in insert mode (#305)
- Cursors and selections can now be themed (#325)
- Language servers are now gracefully shut down before
hx
exits (#287) :show-directory
/:change-directory
(#335)- File picker is now sorted by access time (before filtering) (#336)
- Code is being migrated from helix-term to helix-view (prerequisite for alternative frontends) (#366)
x
andX
merged (f41688d9
)
Fixes:
- The IME popup is now correctly positioned (#273)
- A bunch of bugs regarding
o
/O
behavior (#281) ~
expansion now works in file completion (#284)- Several UI related overflow crashes (#318)
- Fix a test failure occurring only on
test --release
(4f108ab1
) - Prompts now support unicode input (#295)
- Completion documentation no longer overlaps the popup (#322)
- Fix a crash when trying to select
^
(9c534614
) - Prompt completions are now paginated (
39dc09e6
) - Goto did not work on Windows (
503ca112
)
Includes a fix where wq/wqa could exit before file saving completed.
A big shout out to all the contributors! We had 18 contributors in this release.
Enough has changed to bump the version. We're skipping 0.1.x because previously the CLI would always report version as 0.1.0, and we'd like to distinguish it in bug reports..
-
The
runtime/
directory is now properly detected on binary releases and on cargo run.~/.config/helix/runtime
can also be used. -
Registers can now be selected via " (for example,
"ay
) -
Support for Nix files was added
-
Movement is now fully tested and matches Kakoune implementation
-
A per-file LSP symbol picker was added to space+s
-
Selection can be replaced with yanked text via R
-
1g
now correctly goes to line 1 -
ctrl-i
now correctly jumps backwards in history -
A small memory leak was fixed, where we tried to reuse tree-sitter query cursors, but always allocated a new one
-
Auto-formatting is now only on for certain languages
-
The root directory is now provided in LSP initialization, fixing certain language servers (typescript)
-
LSP failing to start no longer panics
-
Elixir language queries were fixed
Keymaps:
-
Add mappings to jump to diagnostics
-
Add gt/gm/gb mappings to jump to top/middle/bottom of screen
-
^ and $ are now gh, gl
-
The runtime/ can now optionally be embedded in the binary
-
Haskell syntax added
-
Window mode (ctrl-w) added
-
Show matching bracket (Vim's matchbrackets)
-
Themes now support style modifiers
-
First user contributed theme
-
Create a document if it doesn't exist yet on save
-
Detect language on a new file on save
-
Panic fixes, lots of them