@@ -88,15 +88,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
88
88
description = "The server's name" ;
89
89
} ;
90
90
91
- capabilities = mkOption {
92
- type = nullOr ( attrsOf bool ) ;
93
- description = "Control resolved capabilities for the language server." ;
94
- default = null ;
95
- example = {
96
- documentFormattingProvider = false ;
97
- } ;
98
- } ;
99
-
100
91
extraOptions = mkOption {
101
92
type = attrsOf anything ;
102
93
description = "Extra options for the server" ;
@@ -187,25 +178,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
187
178
runWrappers =
188
179
wrappers : s :
189
180
if wrappers == [ ] then s else ( builtins . head wrappers ) ( runWrappers ( builtins . tail wrappers ) s ) ;
190
- updateCapabilities =
191
- let
192
- servers = builtins . filter (
193
- server : server . capabilities != null && server . capabilities != { }
194
- ) cfg . enabledServers ;
195
- in
196
- lib . concatMapStringsSep "\n " (
197
- server :
198
- let
199
- updates = lib . concatMapAttrsStringsSep "\n " ( name : enabled : ''
200
- client.server_capabilities.${ name } = ${ lib . nixvim . toLuaObject enabled }
201
- '' ) server . capabilities ;
202
- in
203
- ''
204
- if client.name == "${ server . name } " then
205
- ${ updates }
206
- end
207
- ''
208
- ) servers ;
209
181
in
210
182
''
211
183
-- LSP {{{
@@ -218,8 +190,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
218
190
local __lspServers = ${ lib . nixvim . toLuaObject cfg . enabledServers }
219
191
-- Adding lspOnAttach function to nixvim module lua table so other plugins can hook into it.
220
192
_M.lspOnAttach = function(client, bufnr)
221
- ${ updateCapabilities }
222
-
223
193
${ cfg . onAttach }
224
194
end
225
195
local __lspCapabilities = function()
0 commit comments