You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
We recommend using VSCode with the [Vala plugin](https://marketplace.visualstudio.com/items?itemName=prince781.vala).
7
7
8
8
- Arch Linux (via AUR): `yay -S vala-language-server`
9
+
or `yay -S vala-language-server-git`
9
10
10
11
- Alpine Linux Edge: `apk add vala-language-server`
11
12
@@ -46,13 +47,12 @@ We recommend using VSCode with the [Vala plugin](https://marketplace.visualstudi
46
47
- [x] code completion
47
48
- [x] basic (member access and scope-visible completion)
48
49
- [ ] 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
50
50
- [x] document symbol outline
51
51
- [x] goto definition
52
52
- [x] symbol references
53
53
- [x] goto implementation
54
54
- [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.
56
56
- [x] hover
57
57
- [x] symbol documentation
58
58
- [x] basic (from comments)
@@ -66,10 +66,11 @@ We recommend using VSCode with the [Vala plugin](https://marketplace.visualstudi
66
66
- [ ] supported IDEs (see Setup below):
67
67
- [x] vim with `vim-lsp` plugin installed
68
68
- [x] Visual Studio Code
69
-
- [x] GNOME Builder >= 3.36
69
+
- [x] GNOME Builder >= 3.36 with custom VLS plugin enabled (see below)
70
70
- [ ] IntelliJ
71
71
- [ ] supported project build systems
72
72
- [x] meson
73
+
- [x] `compile_commands.json`
73
74
- [ ] autotoools
74
75
- [ ] cmake
75
76
@@ -78,6 +79,7 @@ We recommend using VSCode with the [Vala plugin](https://marketplace.visualstudi
78
79
- `gobject-2.0`
79
80
- `gio-2.0` and either `gio-unix-2.0` or `gio-windows-2.0`
80
81
- `gee-0.8`
82
+
- `json-glib-1.0`
81
83
- `jsonrpc-glib-1.0`
82
84
- `libvala-0.48 / vala-0.48` release
83
85
- you also need the `posix` VAPI, which should come preinstalled
@@ -96,6 +98,25 @@ This will install `vala-language-server` to `$PREFIX/bin`
96
98
### With Vim
97
99
Once you have VLS installed, you can use it with `vim`.
98
100
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
99
120
1. Make sure [vim-lsp](https://github.com/prabirshrestha/vim-lsp) is installed
100
121
2. Add the following to your `.vimrc`:
101
122
@@ -104,7 +125,7 @@ if executable('vala-language-server')
0 commit comments