Skip to content

Commit fd09206

Browse files
committed
formatting fixes
1 parent 7e07b97 commit fd09206

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

lua/lazy-nix-helper/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local defaults = {
99
lazypath = nil,
1010
friendly_plugin_names = true,
1111
auto_plugin_discovery = false,
12-
input_plugin_table = {}
12+
input_plugin_table = {},
1313
}
1414

1515
M.options = {}

lua/lazy-nix-helper/core.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ local function get_friendly_plugin_path(plugin_name)
4040
end
4141

4242
function M.get_plugin_path(plugin_name)
43-
if (Config.options.auto_plugin_discovery and not PluginDiscovery.plugin_discovery_done) then
43+
if Config.options.auto_plugin_discovery and not PluginDiscovery.plugin_discovery_done then
4444
PluginDiscovery.populate_plugin_table()
4545
end
4646

@@ -59,5 +59,4 @@ function M.lazypath()
5959
return M.get_plugin_path("lazy.nvim") or Config.options.lazypath
6060
end
6161

62-
6362
return M

lua/lazy-nix-helper/plugin_discovery.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ local Config = require("lazy-nix-helper.config")
22
local PluginTable = require("lazy-nix-helper.plugin_table")
33
local Util = require("lazy-nix-helper.util")
44

5-
65
-- This module contains the original plugin discovery mechanism for Lazy-Nix-Helper
76
-- Searching the nix store like this is a nix anti-pattern.
87
-- This method works in only a subset of nix/nixos use cases and config arrangements.

tests/modules/plugin_discovery_spec.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ plenary.busted.describe("test parse_plugin_name_from_nix_store_path", function()
2424
PluginDiscovery.vimplugin_capture_group,
2525
"nvim-treesitter",
2626
},
27-
{ "parses plugin name from lua5.1 package set", lua_test_path, PluginDiscovery.lua5_1_capture_group, "telescope.nvim" },
27+
{
28+
"parses plugin name from lua5.1 package set",
29+
lua_test_path,
30+
PluginDiscovery.lua5_1_capture_group,
31+
"telescope.nvim",
32+
},
2833
{
2934
"parses plugin name from lua5.1 package set with date suffix",
3035
lua_test_path_with_date,

tests/modules/plugin_table_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ local assert = require("luassert.assert")
77
local mock = require("luassert.mock")
88

99
plenary.busted.describe("test populate_provided_plugin_paths", function()
10-
local plugin_name ="treesitter"
10+
local plugin_name = "treesitter"
1111
local plugin_path = "/nix/store/2s6wcjbxgwpjisdjw19r7vvx05sj042m-vimplugin-nvim-treesitter"
1212
local test_plugin_input_table = {}
1313
test_plugin_input_table[plugin_name] = plugin_path
@@ -17,7 +17,7 @@ plenary.busted.describe("test populate_provided_plugin_paths", function()
1717
"adds plugin to table when the file path exists",
1818
test_plugin_input_table,
1919
true,
20-
plugin_path
20+
plugin_path,
2121
},
2222
{
2323
"doesn't add plugin to table when file path does not exist",

0 commit comments

Comments
 (0)