mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/lsp: simplify implementation of per-server capabilities
This commit is contained in:
parent
2e559d3c3a
commit
f0ec773869
1 changed files with 3 additions and 3 deletions
|
@ -202,9 +202,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
lib.concatMapStringsSep "\n" (
|
lib.concatMapStringsSep "\n" (
|
||||||
server:
|
server:
|
||||||
let
|
let
|
||||||
updates = lib.concatMapStringsSep "\n" (name: ''
|
updates = lib.concatMapAttrsStringsSep "\n" (name: enabled: ''
|
||||||
client.server_capabilities.${name} = ${lib.nixvim.toLuaObject server.capabilities.${name}}
|
client.server_capabilities.${name} = ${lib.nixvim.toLuaObject enabled}
|
||||||
'') (builtins.attrNames server.capabilities);
|
'') server.capabilities;
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
if client.name == "${server.name}" then
|
if client.name == "${server.name}" then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue