Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy committed Jun 10, 2024
1 parent 78870c8 commit 107f74a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
17 changes: 5 additions & 12 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema-zh-tw.json",
"diagnostics": {
"globals": [
"vim"
],
"disable": [
"different-requires"
]
},
"runtime": {
"version": "LuaJIT"
},
"diagnostics": {
"globals": ["vim"],
"disable": ["different-requires", "undefined-field"]
},
"workspace": {
"maxPreload": 100000,
"preloadFileSize": 10000,
"ignoreDir": [
".vscode",
".git"
],
"ignoreDir": [".vscode", ".git"],
"library": [
"/usr/local/opt/neovim/share/nvim/runtime/lua",
"/usr/local/opt/neovim/share/nvim/runtime/plugin"
Expand Down
2 changes: 1 addition & 1 deletion lua/modules/plugins/lang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ lang["chrisbra/csv.vim"] = {
ft = "csv",
}
lang["gauteh/vim-cppman"] = {
lazy = true,
enabled = false,
lazy = true,
ft = { "c", "cpp" },
keys = "K", -- only activate this plugin when we're searching for documentation.
}
Expand Down
2 changes: 1 addition & 1 deletion lua/modules/plugins/tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ tool["nvim-telescope/telescope.nvim"] = {
cmd = "Telescope",
config = require("tool.telescope"),
dependencies = {
{ "nvim-tree/nvim-web-devicons" },
{ "nvim-lua/plenary.nvim" },
{ "nvim-tree/nvim-web-devicons" },
{ "jvgrootveld/telescope-zoxide" },
{ "nvim-telescope/telescope-frecency.nvim" },
{ "nvim-telescope/telescope-file-browser.nvim" },
Expand Down
2 changes: 1 addition & 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 Expand Up @@ -167,6 +166,7 @@ function M.extend_hl(name, def)
local current_def = vim.api.nvim_get_hl(0, { name = name, link = false })
local combined_def = vim.tbl_deep_extend("force", current_def, def)

---@diagnostic disable-next-line: param-type-mismatch
vim.api.nvim_set_hl(0, name, combined_def)
end

Expand Down

0 comments on commit 107f74a

Please sign in to comment.