Skip to content

Commit f0ec773

Browse files
GaetanLepagenix-infra-bot
authored andcommitted
plugins/lsp: simplify implementation of per-server capabilities
1 parent 2e559d3 commit f0ec773

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/lsp/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
202202
lib.concatMapStringsSep "\n" (
203203
server:
204204
let
205-
updates = lib.concatMapStringsSep "\n" (name: ''
206-
client.server_capabilities.${name} = ${lib.nixvim.toLuaObject server.capabilities.${name}}
207-
'') (builtins.attrNames server.capabilities);
205+
updates = lib.concatMapAttrsStringsSep "\n" (name: enabled: ''
206+
client.server_capabilities.${name} = ${lib.nixvim.toLuaObject enabled}
207+
'') server.capabilities;
208208
in
209209
''
210210
if client.name == "${server.name}" then

0 commit comments

Comments
 (0)