mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +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" (
|
||||
server:
|
||||
let
|
||||
updates = lib.concatMapStringsSep "\n" (name: ''
|
||||
client.server_capabilities.${name} = ${lib.nixvim.toLuaObject server.capabilities.${name}}
|
||||
'') (builtins.attrNames server.capabilities);
|
||||
updates = lib.concatMapAttrsStringsSep "\n" (name: enabled: ''
|
||||
client.server_capabilities.${name} = ${lib.nixvim.toLuaObject enabled}
|
||||
'') server.capabilities;
|
||||
in
|
||||
''
|
||||
if client.name == "${server.name}" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue