Skip to content

Commit a4a1ef3

Browse files
committed
Update for 0.48 release
1 parent 84e815d commit a4a1ef3

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
We recommend using VSCode with the [Vala plugin](https://marketplace.visualstudio.com/items?itemName=prince781.vala).
77

88
- Arch Linux (via AUR): `yay -S vala-language-server`
9+
or `yay -S vala-language-server-git`
910

1011
- Alpine Linux Edge: `apk add vala-language-server`
1112

@@ -46,13 +47,12 @@ We recommend using VSCode with the [Vala plugin](https://marketplace.visualstudi
4647
- [x] code completion
4748
- [x] basic (member access and scope-visible completion)
4849
- [ ] advanced (context-sensitive suggestions)
49-
- completion support relies heavily on changes made upstream to the Vala parser. See [this MR](https://gitlab.gnome.org/GNOME/vala/-/merge_requests/95) if you want to build VLS with improved completion ability
5050
- [x] document symbol outline
5151
- [x] goto definition
5252
- [x] symbol references
5353
- [x] goto implementation
5454
- [x] signature help
55-
- active parameter support requires upstream changes in vala and is disabled by default. use `meson -Dactive_parameter=true` to enable. see [this MR](https://gitlab.gnome.org/GNOME/vala/-/merge_requests/95)
55+
- active parameter support requires upstream changes in vala and is disabled by default. use `meson -Dactive_parameter=true` to enable. see [this MR](https://gitlab.gnome.org/GNOME/vala/-/merge_requests/95). VLS by default uses a workaround that should satisfy 90% of cases.
5656
- [x] hover
5757
- [x] symbol documentation
5858
- [x] basic (from comments)
@@ -66,10 +66,11 @@ We recommend using VSCode with the [Vala plugin](https://marketplace.visualstudi
6666
- [ ] supported IDEs (see Setup below):
6767
- [x] vim with `vim-lsp` plugin installed
6868
- [x] Visual Studio Code
69-
- [x] GNOME Builder >= 3.36
69+
- [x] GNOME Builder >= 3.36 with custom VLS plugin enabled (see below)
7070
- [ ] IntelliJ
7171
- [ ] supported project build systems
7272
- [x] meson
73+
- [x] `compile_commands.json`
7374
- [ ] autotoools
7475
- [ ] cmake
7576

@@ -78,6 +79,7 @@ We recommend using VSCode with the [Vala plugin](https://marketplace.visualstudi
7879
- `gobject-2.0`
7980
- `gio-2.0` and either `gio-unix-2.0` or `gio-windows-2.0`
8081
- `gee-0.8`
82+
- `json-glib-1.0`
8183
- `jsonrpc-glib-1.0`
8284
- `libvala-0.48 / vala-0.48` release
8385
- you also need the `posix` VAPI, which should come preinstalled
@@ -96,6 +98,25 @@ This will install `vala-language-server` to `$PREFIX/bin`
9698
### With Vim
9799
Once you have VLS installed, you can use it with `vim`.
98100

101+
#### coc.nvim
102+
1. Make sure [coc.nvim](https://github.com/neoclide/coc.nvim) is installed.
103+
2. After successful installation, in Vim run `:CocConfig` and add a new custom
104+
entry for VLS like below:
105+
106+
```json
107+
{
108+
...
109+
110+
"vala": {
111+
"command": "vala-language-server",
112+
"filetypes": ["vala", "genie"]
113+
},
114+
115+
...
116+
}
117+
```
118+
119+
#### vim-lsp
99120
1. Make sure [vim-lsp](https://github.com/prabirshrestha/vim-lsp) is installed
100121
2. Add the following to your `.vimrc`:
101122

@@ -104,7 +125,7 @@ if executable('vala-language-server')
104125
au User lsp_setup call lsp#register_server({
105126
\ 'name': 'vala-language-server',
106127
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'vala-language-server']},
107-
\ 'whitelist': ['vala'],
128+
\ 'whitelist': ['vala', 'genie'],
108129
\ })
109130
endif
110131
```

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('vala-language-server', 'vala', 'c',
2-
version: '0.48-alpha4',
2+
version: '0.48',
33
license: 'LGPL2.1+',
44
default_options: [
55
'default_library=static'

0 commit comments

Comments
 (0)