Michael Davis
bcf3808e97
Add tree-sitter-git-diff ( #1373 )
...
* add submodule on tree-sitter-git-diff
* add git-diff highlights
* inject git-diff into git-commit
* update tree-sitter-git-commit with fix for bad diff case
* add git-diff to language support docs
* include-children in diff injections
This ensures that children nodes of $.message are included in the
injection, such as $.user or issue/pr numbers. Without this change,
diffs containing '#' or '@' characters can trip up the injection and
be parsed separately.
See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629
* set diff language's scope as source.diff
2021-12-30 00:31:23 +09:00
Michael Davis
c3fb86cbaa
tree-sitter-gitcommit->tree-sitter-git-commit
2021-12-26 00:12:49 +09:00
Michael Davis
fd31662b70
add gitcommit grammar and language configuration
2021-12-26 00:12:49 +09:00
Laurențiu Nicola
13d804418f
Enable Rust proc macro support ( #1350 )
2021-12-24 23:56:13 +09:00
Dylan Richardson
34766e242a
languages: add .dockerfile extension ( #1330 )
...
Many folks use `.dockerfile` as an extension for dockerfiles in addition to plain `Dockerfile`. This change associates both file extensions with dockerfile syntax highlighting
2021-12-22 09:45:02 +09:00
Midnight Exigent
dba22c60ed
Support dockerfiles ( #1303 )
...
* allow language.config (in languages.toml) to be passed in as a toml object
* Change config field for languages from json string to toml object
* remove indents on languages.toml config
* fix: remove patch version from serde_json import in helix-core
* Use same tree-sitter-zig as upstream/master
* fix(completion_popup): Fixes #1256
* Update helix-term/src/ui/completion.rs
* feat(languages): Add support for `Dockerfile`s
* docs(cargo-xtask-docgen):
* improvement(langs-dockerfile): Add `injection-regex` to `languages.toml` for
`Dockerfile`
* improvement(langs-dockerfile): Add injections.scm
* Update .gitmodules
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
2021-12-21 18:22:15 +09:00
Sebastian Neubauer
205dc8776b
Add fish highlighting ( #1308 )
...
The highlights were copied and modified from
https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/fish/highlights.scm
2021-12-21 11:02:53 +09:00
Michael Davis
e72786df8e
Add tree-sitter-comment ( #1300 )
...
* Add tree-sitter-comment
Fix #1164
* fix precedence in tree-sitter-comment highlights
connects https://github.com/helix-editor/helix/pull/1170
* set injection-regex for comment language
* remove comment filetype
* fix comment injections for neovim-style injections tags
* add comment injections for elixir
* remove f.comment
* fix spacing in .gitmodules
* run 'cargo xtask docgen'
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2021-12-19 23:56:56 +09:00
Luke Jones
edf3c70c30
Add dart lsp config and queries ( #1250 )
...
* Add language: dart
The setup requires that dart be in the users path, such as:
```
export PATH="$HOME/Android/flutter/bin/cache/dart-sdk/bin/:$PATH"
```
Refactor the dart highlights
* lang: dart: add indents and locals
* lang: dart: corrections to local scope
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
2021-12-18 13:41:32 +09:00
Oliver Hechtl
0683f0a20a
Add scala syntax highlights ( #1278 )
...
* add partial scala syntax highlights
* ran cargo xtask docgen
* updated tree-sitter-scala, fixed highlights
* fix comments
* move identifier to the end of the highlights
* add indents
2021-12-18 13:40:34 +09:00
Blaž Hrastnik
49e0678741
Add markdown grammar
...
Fixes #215
2021-12-15 00:50:11 +09:00
Blaž Hrastnik
4527d63a65
fix: rust: disable unresolved-proc-macro
...
Since we disabled proc macro expansion, disable the related info
level lint:
https://users.rust-lang.org/t/how-to-disable-rust-analyzer-proc-macro-warnings-in-neovim/53150/3
2021-12-14 13:58:26 +09:00
Gokul Soumya
d08bdfa838
Use same name used in config files for langs in docs
2021-12-08 10:23:50 +09:00
Gokul Soumya
a78b789406
Auto generate docs for language support
2021-12-08 10:23:50 +09:00
Blaž Hrastnik
2dbf966293
dap: Start working on runInTerminal support
2021-12-03 11:59:44 +09:00
Blaž Hrastnik
0d73a4d23a
dap: console = internalConsole is actually not a lldb-vscode param
2021-12-03 10:18:23 +09:00
Blaž Hrastnik
9ed930b233
Merge remote-tracking branch 'origin/master' into debug
2021-11-30 13:06:30 +09:00
Kirawi
6f1a7b1220
Add llvm grammar ( #1167 )
2021-11-29 10:38:17 +09:00
Kirawi
4ec20eaeff
Add language support for WGSL ( #1166 )
2021-11-27 07:49:40 +05:30
shenlebantongying
1eecd9a2ac
Add language: racket ( #1143 )
2021-11-24 22:47:12 +09:00
Blaž Hrastnik
d1854d8e6a
Merge remote-tracking branch 'origin/master' into debug
2021-11-21 20:06:45 +09:00
Blaž Hrastnik
f804ed3192
Make shebangs optional, they don't make sense outside of scripts
2021-11-09 10:57:08 +09:00
Curiosidad-Racional
41fc326325
Fix panicked missing field shebangs
( #1025 )
...
Fix the error:
```
thread 'main' panicked at 'Could not parse merged (built-in + user) languages.toml: Error { inner: ErrorInner { kind: Custom, line: None, col: 0, at: None, message: "missing field `shebangs`", key: ["language"] } }', helix-term/src/application.rs:87:14
```
2021-11-09 10:49:43 +09:00
Mateusz S. Szczygieł
3f0345ff58
glsl support ( #993 )
...
* add glsl language support
* glsl: use indents.toml file
2021-11-09 00:48:00 +09:00
ath3
77dbbc73f9
Detect filetype from shebang line ( #1001 )
2021-11-09 00:19:44 +09:00
ath3
30744646cb
Perl support ( #978 )
2021-11-08 10:05:12 +09:00
jgart
4010b327e2
Adds mint language server ( #974 )
2021-11-08 10:01:55 +09:00
Blaž Hrastnik
f2b709a3c3
Merge branch 'master' into debug
2021-11-07 00:28:19 +09:00
Daniel Poulin
924b7d3b19
Adjust PHP indentation defaults to 4 spaces
...
In the PHP community, 4 spaces is widely considered the default, as
it is recommended by the PSR-2 and PSR-12 standards, as well as popular
derivative standards like those for Laravel and Symphony.
2021-11-02 17:53:24 +09:00
kabirz
592fba1100
add cmake-language-server as cmake language server
2021-10-30 13:17:30 +05:30
Dmitry Sharshakov
cde57dae35
lldb: add gdbserver connection template
...
Can be better customized in a personal languages.toml for perfect fit
2021-10-24 17:34:24 +03:00
ath3
787ba4f233
CMake support ( #888 )
2021-10-23 08:57:21 +09:00
Blaž Hrastnik
0a6b60085a
Merge branch 'master' into debug
2021-10-17 13:51:56 +09:00
Michael Davis
e216e9621e
Enable c-sharp language and highlights ( #861 )
2021-10-17 13:45:09 +09:00
Michael Davis
e069fb9dea
Add highlight support for tree-sitter-query language (tsq) ( #845 )
...
* add submodule on tree-sitter/tree-sitter-tsq
mark tsq submodule as shallow
* add tree-sitter-tsq to languages
* add highlight queries for tsq
* Update .gitmodules
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
2021-10-16 17:58:04 +09:00
WindSoilder
b42ef0e028
Using pylsp instead of pyls ( #834 )
2021-10-13 11:24:37 +09:00
Thomas Wehmöller
a7f49fa56f
Add Vue tree sitter grammar ( #787 )
...
* ✨ Add vue tree sitter support
* Update .gitmodules
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
2021-10-10 22:09:17 +09:00
Midnight Exigent
eedcea7e6b
Allow language.config
(in languages.toml) to be passed in as a toml object ( #807 )
...
* allow language.config (in languages.toml) to be passed in as a toml object
* Change config field for languages from json string to toml object
* remove indents on languages.toml config
* fix: remove patch version from serde_json import in helix-core
* Use same tree-sitter-zig as upstream/master
2021-10-08 11:14:12 +09:00
James Cash
2e692dc184
Add (SWI-)Prolog LSP support ( #816 )
...
As discussed in #809 ; I also have a [tree-sitter implementation](https://github.com/jamesnvc/tree-sitter-prolog ), but for reasons discussed in the linked post, I kind of gave up on that sort of static approach for making a general-purpose Prolog grammar (since it has a very flexible syntax and allows defining new operators with new precedences dynamically).
That being said, the LSP implementation here at least shows documentation and does support the semantic token API, so when Helix supports that, this should also provide highlighting.
2021-10-08 11:05:30 +09:00
Dmitry Sharshakov
d943a51e3e
editor: add Node.js debugger
2021-09-26 21:36:06 +03:00
Dmitry Sharshakov
bf53aff27d
Merge branch 'master' into debug
2021-09-25 23:14:59 +03:00
Raphael Megzari
b2195e08b5
languages: add svelte support ( #733 )
...
* languages: add svelte support
* languages: add svelte injections
2021-09-17 11:04:55 +09:00
Raphael Megzari
f871d318c0
add language server for elixir and nix ( #725 )
2021-09-07 23:23:05 +09:00
Blaž Hrastnik
3cbdc057de
lsp: Don't import SymbolServer for Julia anymore, it's not necessary
2021-09-07 13:05:20 +09:00
Dmitry Sharshakov
413e477dc2
lldb: use stdio transport by default
2021-09-06 13:49:31 +03:00
Blaž Hrastnik
2bef245b7a
At least partly highlight tsx
2021-09-06 15:25:46 +09:00
Blaž Hrastnik
d2b9a5d654
lsp: Update the julia definition
2021-09-06 15:25:46 +09:00
Blaž Hrastnik
4c410eef87
Merge remote-tracking branch 'origin/master' into debug
2021-09-03 11:03:34 +09:00
oberblastmeister
5766f5da8f
OCaml support ( #666 )
...
* added some stuff
* add interface
* indent
* highlights and locals
* scope
* change some stuff
* add indents
* fix blanket highlight
* macro
* use inherits
2021-09-02 01:08:08 +09:00
oberblastmeister
ae3f936611
Lua support ( #665 )
...
* added submodule
* small changes
* updated some stuff
* remove
* shallow clone
* correct indent
* shallow
* ok
* highlights
* proper captures
2021-09-02 00:54:21 +09:00
oberblastmeister
1586b0eec7
YAML support ( #667 )
...
* added submodule
* remove wrong one
* added highlights
* use property
* add indents
* shallow
2021-09-02 00:16:16 +09:00
Dmitry Sharshakov
6265e196b7
compat: change lldb to lldb-vscode
...
This should be preferred ID, although now lldb-vscode works with any
2021-08-30 16:09:41 +03:00
Dmitry Sharshakov
db7f693550
More advanced completions
2021-08-29 14:55:42 +03:00
Dmitry Sharshakov
b42631942b
Defaults in completions, better schema
2021-08-29 14:51:47 +03:00
Dmitry Sharshakov
f53d8411cb
Add extra annotations to completions
2021-08-29 14:06:36 +03:00
Dmitry Sharshakov
98fda6b8f0
better completion
2021-08-29 13:16:57 +03:00
Dmitry Sharshakov
9d2f2a9e32
Support multiple arguments for debug configs
2021-08-29 13:06:22 +03:00
Dmitry Sharshakov
2d42766a71
wip: refactor parameters in UI start
2021-08-29 10:23:36 +03:00
Dmitry Sharshakov
94901b8677
Customized completion for template parameters
2021-08-28 19:11:19 +03:00
Dmitry Sharshakov
e315394631
Merge remote-tracking branch 'origin/master' into debug
2021-08-28 14:59:26 +03:00
voroskoi
f22e0aa2ae
Add zig tree-sitter support ( #631 )
...
* Add initial zig tree-sitter support
* zig/highlights.scm: remove unnecessary queries
* Add zig/indents.toml
2021-08-28 13:32:01 +09:00
Dmitry Sharshakov
235a84d989
Remove shortcut for starting debug
2021-08-24 20:32:38 +03:00
Dmitry Sharshakov
299da5a35b
Support attach request
2021-08-24 20:27:54 +03:00
Dmitry Sharshakov
b001008a69
Support templates in debug configurations
2021-08-24 20:04:14 +03:00
Dmitry Sharshakov
1041a5bb07
Support launching configs by name
2021-08-24 12:21:00 +03:00
Dmitry Sharshakov
774ab6f8b6
Add new format configs for Rust and C/C++
2021-08-24 12:01:05 +03:00
Dmitry Sharshakov
c463142e5e
Create new debugger config format
2021-08-24 11:56:18 +03:00
Dmitry Sharshakov
3a5e044c89
languages: support debug for Rust with LLDB
2021-08-23 21:11:45 +03:00
Dmitry Sharshakov
b3469df5bf
add lldb for c++
2021-08-23 20:52:16 +03:00
Dmitry Sharshakov
e529f4eb21
add lldb debugger for C
2021-08-23 18:12:28 +03:00
Dmitry Sharshakov
b6b99b2487
config: minor fixes
2021-08-23 17:26:12 +03:00
Dmitry Sharshakov
839d210573
Enable stdio transport via config
2021-08-23 17:18:03 +03:00
Dmitry Sharshakov
f55a012fb7
editor: add debug session config
2021-08-23 16:56:41 +03:00
Dmitry Sharshakov
c5b210df59
Add debug-adapter field to languages.toml
2021-08-23 16:48:06 +03:00
Yusuf Bera Ertan
4b45f27a13
feat: add protobuf tree-sitter parser with highlighting queries
2021-08-19 09:54:14 +09:00
Conscat
1158fc4487
Added more cpp filename extensions
2021-08-18 11:56:19 -07:00
Yerlan
fdd6530df7
Adding mjs to JavaScript file type ( #607 )
...
MJS is a file extension for JavaScript modules using standard ES2015+
2021-08-18 09:40:00 +09:00
Yerlan
a2cd9cce9d
Adding INO to C++ file type ( #596 )
...
INO is file extension for C++ files used in Arduino sketches.
Reference: https://www.arduino.cc/en/Guide/Environment
2021-08-17 10:45:29 +09:00
Ivan Tham
aaccc9419a
Add ledger tree-sitter ( #572 )
...
Might need to update later since the current one highlight does not
work very well yet.
2021-08-16 11:03:57 +09:00
Kirawi
b239f0f45f
add java highlighting ( #448 )
2021-08-10 14:09:57 +09:00
Blaž Hrastnik
ba729349b8
languages: Add missing comment token for elixir and nix
2021-08-07 15:04:37 +09:00
Luctius
585d6f8242
Fixes toggle_comment not finding the correct language comment token
2021-07-20 17:10:17 +09:00
Cor Peters
cd65a48635
Made toggle_comments language dependent ( #463 )
...
* Made toggle_comments language dependent
* Fixed Test Cases
* Added clippy suggestion
* Small Fixes
* Clippy Suggestion
Co-authored-by: Cor <prive@corpeters.nl>
2021-07-19 01:33:38 +09:00
Cor Peters
0aa43902ca
Added option to provide a custom config file to the lsp. ( #460 )
...
* Added option to provide a custom config file to the lsp.
* Simplified lsp loading routine with anyhow
* Moved config to language.toml
* Fixed test case
* Cargo fmt
* Revert now-useless changes
* Renamed custom_config to config
Co-authored-by: Cor <prive@corpeters.nl>
2021-07-18 16:56:25 +09:00
wesh
3c31f50116
julia language-server line was plain wrong
2021-07-05 20:28:49 +08:00
wesh
aa70362d20
Add julia support (LSP not working)
2021-07-05 20:28:49 +08:00
Ivan Tham
9fd17d4ff5
Use pep 8 indentation for python
...
Change the default spaces of python indentation to follow pep8 which is the standard.
2021-06-21 08:50:51 -07:00
Ivan Tham
a364d6c383
Add latex
2021-06-16 21:42:05 +09:00
Blaž Hrastnik
278361a086
Only auto-format for certain languages
...
Fixes #53
Fixes #207
2021-06-12 10:20:37 +09:00
Timothy DeHerrera
38073fd64c
Add Nix syntax
2021-06-10 22:01:48 +09:00
Blaž Hrastnik
59f94d13b8
Disable haskell grammar until build issues are resolved
2021-06-07 10:17:25 +09:00
Corey Powell
01dd7b570a
Restored haskell syntax
...
It seems to work
2021-06-05 01:17:44 +08:00
Björn Linse
0e6f007028
LSP: add clangd as server for c/c++
2021-06-03 15:07:50 +02:00
Corey Powell
ca042a4bde
Added elixir syntax
...
Using custom fork for now to get around generating the source files
2021-06-01 21:59:16 -05:00
Blaž Hrastnik
c2e6b9f506
Add typescript support & ts/js indentation queries
2021-06-01 17:55:11 +09:00
Blaž Hrastnik
651d3dec83
Golang uses tabs for indentation.
2021-04-23 18:55:34 +09:00
Blaž Hrastnik
3b90317060
Add window/showMessage / logMessage stubs so gopls fully starts.
2021-04-15 17:34:38 +09:00
Blaž Hrastnik
c1e5733b02
Remove the path specifier.
2021-04-09 18:57:46 +09:00
Blaž Hrastnik
89f81be31b
Add yet more language definitions.
2021-04-07 14:04:13 +09:00
Blaž Hrastnik
fb792c5bca
Add a python language definition.
2021-04-07 13:51:09 +09:00
Blaž Hrastnik
3bab640491
Add c++, js, css, html language definitions.
2021-04-07 13:40:20 +09:00
Blaž Hrastnik
e3c4edae32
Add the machinery to load syntax config from TOML.
...
It's embedded into the binary at build time for now, but it's progress.
2021-03-25 15:26:25 +09:00