mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/coq-nvim: fix settings not being set when lsp is not enabled (#1408)
This commit is contained in:
parent
f4018967d4
commit
3a4de0bb2f
2 changed files with 13 additions and 2 deletions
|
@ -42,4 +42,10 @@
|
|||
{fingerprint = "20AF 0A65 9F2B 93AD 9184 15D1 A7DA 689C B3B0 78EC";}
|
||||
];
|
||||
};
|
||||
Kareem-Medhat = {
|
||||
email = "kareemmedhatnabil@gmail.com";
|
||||
github = "Kareem-Medhat";
|
||||
githubId = 39652808;
|
||||
name = "Kareem Medhat";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ with lib;
|
|||
originalName = "coq_nvim";
|
||||
defaultPackage = pkgs.vimPlugins.coq_nvim;
|
||||
|
||||
maintainers = [maintainers.traxys];
|
||||
maintainers = [maintainers.traxys helpers.maintainers.Kareem-Medhat];
|
||||
|
||||
extraOptions = {
|
||||
installArtifacts = mkEnableOption "and install coq-artifacts";
|
||||
|
@ -67,9 +67,14 @@ with lib;
|
|||
cfg.artifactsPackage
|
||||
];
|
||||
|
||||
globals = {
|
||||
coq_settings = cfg.settings;
|
||||
};
|
||||
|
||||
extraConfigLua = "require('coq')";
|
||||
|
||||
plugins.lsp = {
|
||||
preConfig = ''
|
||||
vim.g.coq_settings = ${helpers.toLuaObject cfg.settings}
|
||||
local coq = require 'coq'
|
||||
'';
|
||||
setupWrappers = [(s: ''coq.lsp_ensure_capabilities(${s})'')];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue