File tree 2 files changed +24
-0
lines changed
plugins/by-name/blink-cmp
tests/test-sources/plugins/by-name/blink-cmp
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -42,4 +42,20 @@ lib.nixvim.plugins.mkNeovimPlugin {
42
42
} ;
43
43
signature . enabled = true ;
44
44
} ;
45
+
46
+ extraOptions = {
47
+ setupLspCapabilities = lib . nixvim . options . mkEnabledOption "LSP capabilities for blink-cmp" ;
48
+ } ;
49
+
50
+ extraConfig = cfg : {
51
+ # TODO: On Neovim 0.11+ and Blink.cmp 0.10+ with vim.lsp.config, you may skip this step.
52
+ # This is still required when using nvim-lspconfig, until this issue is completed:
53
+ # https://github.com/neovim/nvim-lspconfig/issues/3494
54
+ plugins . lsp . capabilities =
55
+ lib . mkIf cfg . setupLspCapabilities # lua
56
+ ''
57
+ -- Capabilities configuration for blink-cmp
58
+ capabilities = require("blink-cmp").get_lsp_capabilities(capabilities)
59
+ '' ;
60
+ } ;
45
61
}
Original file line number Diff line number Diff line change 406
406
} ;
407
407
} ;
408
408
} ;
409
+
410
+ lsp-compat = {
411
+ plugins . blink-cmp = {
412
+ enable = true ;
413
+ setupLspCapabilities = true ;
414
+ } ;
415
+ plugins . lsp . enable = true ;
416
+ } ;
409
417
}
You can’t perform that action at this time.
0 commit comments