mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-07 15:54:31 +02:00
plugins: cleanup most extraConfig
args
- Remove `cfg` where it is unused. - Use `opts` where necessary.
This commit is contained in:
parent
63cfc84abe
commit
7b94afceaf
22 changed files with 98 additions and 99 deletions
|
@ -24,11 +24,9 @@ let
|
|||
};
|
||||
};
|
||||
idris2_lsp = {
|
||||
extraConfig =
|
||||
cfg:
|
||||
mkIf cfg.enable {
|
||||
plugins.idris2.enable = lib.mkDefault true;
|
||||
};
|
||||
extraConfig = {
|
||||
plugins.idris2.enable = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
jsonls = {
|
||||
settings = cfg: { json = cfg; };
|
||||
|
@ -115,7 +113,7 @@ let
|
|||
ts_ls = {
|
||||
# NOTE: Provide the plugin default filetypes so that
|
||||
# `plugins.lsp.servers.volar.tslsIntegration` doesn't wipe out the default filetypes
|
||||
extraConfig = cfg: {
|
||||
extraConfig = {
|
||||
plugins.lsp.servers.ts_ls = {
|
||||
filetypes = [
|
||||
"javascript"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue