Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
  • Loading branch information
Jint-lzxy committed Jun 7, 2024
1 parent 59bc46b commit 0322c31
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 25 deletions.
2 changes: 1 addition & 1 deletion lua/core/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function autocmd.nvim_create_augroups(definitions)
vim.api.nvim_command("augroup " .. group_name)
vim.api.nvim_command("autocmd!")
for _, def in ipairs(definition) do
local command = table.concat(vim.iter({ "autocmd", def }):flatten(), " ")
local command = table.concat(vim.iter({ "autocmd", def }):flatten(math.huge):totable(), " ")
vim.api.nvim_command(command)
end
vim.api.nvim_command("augroup END")
Expand Down
11 changes: 0 additions & 11 deletions lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,6 @@ You're recommended to install PowerShell for better experience.]],
end
end

local _v0_10_workarounds = function()
local ok, watchfile = pcall(require, "vim.lsp._watchfiles")
if ok then
-- Disable lsp watcher
watchfile._watchfunc = function()
return function() end
end
end
end

local load_core = function()
createdir()
disable_distribution_plugins()
Expand All @@ -164,7 +154,6 @@ local load_core = function()
neovide_config()
clipboard_config()
shell_config()
_v0_10_workarounds()

require("core.options")
require("core.mapping")
Expand Down
2 changes: 1 addition & 1 deletion lua/core/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ local function load_options()
end

for name, value in pairs(require("modules.utils").extend_config(global_local, "user.options")) do
vim.o[name] = value
vim.api.nvim_set_option_value(name, value, {})
end
end

Expand Down
9 changes: 0 additions & 9 deletions lua/modules/configs/editor/autotag.lua
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
return function()
require("modules.utils").load_plugin("nvim-ts-autotag", {
opts = {
-- Defaults
enable_close = true, -- Auto close tags
enable_rename = true, -- Auto rename pairs of tags
enable_close_on_slash = false, -- Auto close on trailing </
},
-- Also override individual filetype configs, these take priority.
-- Empty by default, useful if one of the "opts" global settings
-- doesn't work well in a specific filetype
per_filetype = {
["html"] = {
enable_close = true,
},
},
})
end
1 change: 0 additions & 1 deletion lua/modules/configs/lang/crates-keymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ local bind = require("keymap.bind")
local map_callback = bind.map_callback

local crates = require("crates")

local crates_keymap = {
["n|<leader>ct"] = map_callback(function()
crates.toggle()
Expand Down
3 changes: 2 additions & 1 deletion lua/modules/plugins/tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tool["tpope/vim-fugitive"] = {
lazy = true,
cmd = { "Git", "G" },
}
-- only for fcitx5 user who uses non-English language during coding
-- This is specifically for fcitx5 users who code in languages other than English
-- tool["pysan3/fcitx5.nvim"] = {
-- lazy = true,
-- event = "BufReadPost",
Expand All @@ -14,6 +14,7 @@ tool["tpope/vim-fugitive"] = {
tool["Bekaboo/dropbar.nvim"] = {
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
"nvim-telescope/telescope-fzf-native.nvim",
},
}
Expand Down
1 change: 0 additions & 1 deletion lua/modules/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ end
---@param background string @The background color to blend with
---@param alpha number|string @Number between 0 and 1 for blending amount.
function M.blend(foreground, background, alpha)
---@diagnostic disable-next-line: cast-local-type
alpha = type(alpha) == "string" and (tonumber(alpha, 16) / 0xff) or alpha
local bg = hex_to_rgb(background)
local fg = hex_to_rgb(foreground)
Expand Down

0 comments on commit 0322c31

Please sign in to comment.