summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorschemes.lua12
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua16
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua29
3 files changed, 42 insertions, 15 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorschemes.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorschemes.lua
index dd6296d..c5be5b2 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorschemes.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorschemes.lua
@@ -1,8 +1,16 @@
function ColorMyPencils(color)
color = color or "catppuccin"
vim.cmd.colorscheme(color)
- vim.api.nvim_set_hl(0, "Normal", { bg = "NONE" })
- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "NONE" })
+
+ local set = vim.api.nvim_set_hl
+ set(0, "Normal", { bg = "NONE" })
+ set(0, "NormalFloat", { bg = "NONE" })
+ set(0, "@comment.todo", { bg = "NONE" })
+ set(0, "@comment.note", { bg = "NONE" })
+ set(0, "@comment.warning", { bg = "NONE" })
+ set(0, "@comment.error", { bg = "NONE" })
+ set(0, "@number", { bg = "NONE" })
+ set(0, "@string.special.url", { bg = "NONE" })
end
return {
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
index 8f73a06..89b8594 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
@@ -419,10 +419,8 @@ return {
require("otter").setup()
end,
},
- "nvim-cmp",
+ "hrsh7th/nvim-cmp",
"neovim/nvim-lspconfig",
- "nvim-treesitter/nvim-treesitter",
- "otter.nvim",
},
ft = { "quarto", "markdown" },
command = "QuartoActivate",
@@ -494,6 +492,12 @@ return {
dependencies = { "3rd/image.nvim" },
build = ":UpdateRemotePlugins",
init = function()
+ local wk = require("which-key")
+ wk.add({
+ mode = { "n", "v", "x" },
+ { "<leader>j", group = "Molten (Jupyter)" },
+ })
+
vim.g.molten_auto_image_popup = true
vim.g.molten_auto_init_behavior = "raise"
vim.g.molten_auto_open_html_in_browser = false
@@ -518,12 +522,6 @@ return {
-- optional, works for virt text and the output window
vim.g.molten_wrap_output = true
vim.g.molten_virt_text_max_lines = 20
-
- local wk = require("which-key")
- wk.add({
- mode = { "n", "v", "x" },
- { "<leader>j", group = "Molten (Jupyter)" },
- })
end,
config = function()
-- image nvim options table. Pass to `require('image').setup`
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua
index 257881f..76eca3a 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua
@@ -9,17 +9,38 @@ return {
height = 0.8, -- height of window in % of screen size
position = "center", -- topleft, topright, bottomleft, bottomright
})
-
vim.keymap.set("n", "<leader>tf", ":Td<CR>", { silent = true, desc = "TODO floating" })
end,
},
{
"folke/todo-comments.nvim",
+ event = { "BufReadPre", "BufNewFile" },
dependencies = { "nvim-lua/plenary.nvim" },
- opts = {},
- cmd = { "TodoTrouble", "TodoTelescope" },
config = function()
- require("todo-comments").setup()
+ require("todo-comments").setup({
+ keywords = {
+ FIX = {
+ icon = " ", -- icon used for the sign, and in search results
+ color = "error", -- can be a hex color, or a named color (see below)
+ alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords
+ -- signs = false, -- configure signs for some keywords individually
+ },
+ TODO = { icon = " ", color = "info" },
+ HACK = { icon = " ", color = "warning" },
+ WARN = { icon = " ", color = "warning", alt = { "WARNING", "XXX" } },
+ PERF = { icon = " ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
+ NOTE = { icon = " ", color = "hint", alt = { "INFO" } },
+ TEST = { icon = "󱎫 ", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
+ },
+ colors = {
+ error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
+ warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
+ info = { "DiagnosticInfo", "#2563EB" },
+ hint = { "DiagnosticHint", "#10B981" },
+ default = { "Identifier", "#7C3AED" },
+ test = { "Identifier", "#FF00FF" },
+ },
+ })
end,
init = function()
local wk = require("which-key")