diff --git a/lua/taken/utils/on_attach.lua b/lua/taken/utils/on_attach.lua index 862c06d..cd392f8 100644 --- a/lua/taken/utils/on_attach.lua +++ b/lua/taken/utils/on_attach.lua @@ -1,3 +1,5 @@ +--- @param client vim.lsp.Client +--- @param bufnr number local on_attach = function(client, bufnr) local function opts(desc) if desc then @@ -25,7 +27,7 @@ local on_attach = function(client, bufnr) -- vim.lsp.buf.code_action() -- end, opts("Get code actions")) vim.keymap.set("n", "vca", function() - require("tiny-code-action").code_action() + require("tiny-code-action").code_action({}) end, opts("Get code actions")) vim.keymap.set("n", "vr", function() return ":IncRename " .. vim.fn.expand("") @@ -45,10 +47,10 @@ local on_attach = function(client, bufnr) end end, opts("Toggle inlay hints")) vim.keymap.set("n", "[d", function() - vim.diagnostic.goto_next() + vim.diagnostic.jump({ count = 1, float = true }) end, opts("Go to next diagnostic")) vim.keymap.set("n", "]d", function() - vim.diagnostic.goto_prev() + vim.diagnostic.jump({ count = -1, float = true }) end, opts("Go to previous diagnostic")) vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() diff --git a/lua/taken/utils/themefuncs.lua b/lua/taken/utils/themefuncs.lua index 4316a6e..00ed381 100644 --- a/lua/taken/utils/themefuncs.lua +++ b/lua/taken/utils/themefuncs.lua @@ -6,7 +6,7 @@ local prefsFile = configDir .. "/lua/taken/prefs.lua" local getAllThemes = function() vim.api.nvim_exec_autocmds("User", { pattern = "ThemeSwitcher", modeline = false }) - local colors = vim.fn.globpath(vim.o.rtp, "colors/*", true, 1) + local colors = vim.fn.globpath(vim.o.rtp, "colors/*", true, true) local dataDir = vim.fn.stdpath("data") ---@diagnostic disable-next-line: param-type-mismatch local newpath = string.gsub(dataDir, "%-", "%%-")