mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-30 12:24:28 +02:00
misc: refactor imports, prefer adding helpers
to args rather than importing it
This commit is contained in:
parent
541b694873
commit
b6724702b4
160 changed files with 697 additions and 736 deletions
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.plugins.none-ls;
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
in {
|
||||
imports = [
|
||||
./servers.nix
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
mkServer = {
|
||||
name,
|
||||
sourceType,
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
} @ args: let
|
||||
helpers = import ./helpers.nix args;
|
||||
}: let
|
||||
helpers = import ./helpers.nix;
|
||||
serverData = {
|
||||
code_actions = {
|
||||
eslint = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue