mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-21 17:59:41 +01:00
treewide: remove internal use of helpers module arg
This commit is contained in:
parent
7add68e918
commit
dad19c1238
68 changed files with 687 additions and 758 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ helpers, ... }:
|
||||
{ lib, ... }:
|
||||
{
|
||||
example = {
|
||||
keymaps = [
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
mkKeymaps = {
|
||||
keymaps =
|
||||
helpers.keymaps.mkKeymaps
|
||||
lib.nixvim.keymaps.mkKeymaps
|
||||
{
|
||||
mode = "x";
|
||||
options.silent = true;
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
mkKeymapsOnEvents = {
|
||||
keymapsOnEvents = {
|
||||
"InsertEnter" =
|
||||
helpers.keymaps.mkKeymaps
|
||||
lib.nixvim.keymaps.mkKeymaps
|
||||
{
|
||||
mode = "x";
|
||||
options.silent = true;
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
};
|
||||
|
||||
files-default-empty =
|
||||
{ config, helpers, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
files = {
|
||||
# lua type
|
||||
|
|
@ -90,11 +90,11 @@
|
|||
|
||||
assertions = [
|
||||
{
|
||||
assertion = !helpers.hasContent config.files."test.lua".content;
|
||||
assertion = !lib.nixvim.hasContent config.files."test.lua".content;
|
||||
message = "Default content of test.lua file is expected to be empty.";
|
||||
}
|
||||
{
|
||||
assertion = !helpers.hasContent config.files."test.vim".content;
|
||||
assertion = !lib.nixvim.hasContent config.files."test.vim".content;
|
||||
message = "Default content of test.vim file is expected to be empty.";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ helpers, ... }:
|
||||
{ lib, ... }:
|
||||
{
|
||||
empty = {
|
||||
plugins.flash.enable = true;
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
"cmp_menu"
|
||||
"noice"
|
||||
"flash_prompt"
|
||||
(helpers.mkRaw ''
|
||||
(lib.nixvim.mkRaw ''
|
||||
function(win)
|
||||
-- exclude non-focusable windows
|
||||
return not vim.api.nvim_win_get_config(win).focusable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue