Skip to content

Commit

Permalink
fix: #102
Browse files Browse the repository at this point in the history
  • Loading branch information
shellRaining committed May 23, 2024
1 parent f433d10 commit 8aef948
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 30 deletions.
1 change: 1 addition & 0 deletions lua/hlchunk/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ local hlchunk = {}
hlchunk.setup = function(userConf)
for mod_name, mod_conf in pairs(userConf) do
if mod_conf.enable then
-- mod_name = underscoreToCamelCase(mod_name)
local mod_path = "hlchunk.mods." .. mod_name
local Mod = require(mod_path) --[[@as BaseMod]]
local mod = Mod(mod_conf)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local class = require("hlchunk.utils.class")
local BaseConf = require("hlchunk.mods.BaseMod.BaseConf")
local Scope = require("hlchunk.utils.Scope")
local BaseConf = require("hlchunk.mods.base_mod.base_conf")
local Scope = require("hlchunk.utils.scope")

local api = vim.api
local fn = vim.fn
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local class = require("hlchunk.utils.class")
local IndentConf = require("hlchunk.mods.Indent.IndentConf")
local IndentConf = require("hlchunk.mods.indent.indent_conf")

---@class UserBlankConf : UserIndentConf

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local IndentMod = require("hlchunk.mods.Indent")
local BlankConf = require("hlchunk.mods.Blank.BlankConf")
local IndentMod = require("hlchunk.mods.indent")
local BlankConf = require("hlchunk.mods.blank.blank_conf")
local class = require("hlchunk.utils.class")
local indentHelper = require("hlchunk.utils.indentHelper")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local class = require("hlchunk.utils.class")
local BaseConf = require("hlchunk.mods.BaseMod.BaseConf")
local BaseConf = require("hlchunk.mods.base_mod.base_conf")

---@class UserChunkConf : UserBaseConf
---@field use_treesitter? boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local BaseMod = require("hlchunk.mods.BaseMod")
local ChunkConf = require("hlchunk.mods.Chunk.ChunkConf")
local BaseMod = require("hlchunk.mods.base_mod")
local ChunkConf = require("hlchunk.mods.chunk.chunk_conf")
local chunkHelper = require("hlchunk.utils.chunkHelper")

local class = require("hlchunk.utils.class")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local class = require("hlchunk.utils.class")
local BaseConf = require("hlchunk.mods.BaseMod.BaseConf")
local BaseConf = require("hlchunk.mods.base_mod.base_conf")

---@class UserIndentConf : UserBaseConf
---@field chars? string[]
Expand Down
6 changes: 3 additions & 3 deletions lua/hlchunk/mods/indent/init.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
local BaseMod = require("hlchunk.mods.BaseMod")
local IndentConf = require("hlchunk.mods.Indent.IndentConf")
local BaseMod = require("hlchunk.mods.base_mod")
local IndentConf = require("hlchunk.mods.indent.indent_conf")
local class = require("hlchunk.utils.class")
local utils = require("hlchunk.utils.utils")
local indentHelper = require("hlchunk.utils.indentHelper")
local Scope = require("hlchunk.utils.Scope")
local Scope = require("hlchunk.utils.scope")

local api = vim.api
local fn = vim.fn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local BaseMod = require("hlchunk.mods.BaseMod")
local LineNumConf = require("hlchunk.mods.Line_Num.LineNumConf")
local BaseMod = require("hlchunk.mods.base_mod")
local LineNumConf = require("hlchunk.mods.line_num.line_num_conf")

local class = require("hlchunk.utils.class")
local utils = require("hlchunk.utils.utils")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local class = require("hlchunk.utils.class")
local BaseConf = require("hlchunk.mods.BaseMod.BaseConf")
local BaseConf = require("hlchunk.mods.base_mod.base_conf")

---@class UserLineNumConf : UserBaseConf
---@field use_treesitter? boolean
Expand Down
13 changes: 0 additions & 13 deletions lua/hlchunk/utils/Debounce.lua

This file was deleted.

2 changes: 1 addition & 1 deletion lua/hlchunk/utils/indentHelper.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local api = vim.api
local fn = vim.fn
local Scope = require("hlchunk.utils.Scope")
local Scope = require("hlchunk.utils.scope")

local indentHelper = {}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lua/hlchunk/utils/utils.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local ft = require("hlchunk.utils.ts_node_type")
local Scope = require("hlchunk.utils.Scope")
local Scope = require("hlchunk.utils.scope")
local fn = vim.fn
local treesitter = vim.treesitter

Expand Down

0 comments on commit 8aef948

Please sign in to comment.