summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-05 13:48:45 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-05 13:48:45 +0900
commit4a6be24c3994a80bf5a355d2eee4ebfaa4707e09 (patch)
tree7c4c4264015401ec65f762652b5f549c04175a59
parent1f755938761193399cad1f740fe58ec2483c2eac (diff)
modified plugins/comment.lua, modified plugins/mini.lua, modified plugins/todo.lua, created plugins/colorizer.lua
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua69
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua54
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua208
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua64
4 files changed, 128 insertions, 267 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua
new file mode 100644
index 0000000..bb1b9d1
--- /dev/null
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua
@@ -0,0 +1,69 @@
+return {
+ "catgoose/nvim-colorizer.lua",
+ event = "BufReadPre",
+ opts = { -- set to setup table
+ },
+ config = function()
+ require("colorizer").setup({
+ filetypes = { "*" }, -- Filetype options. Accepts table like `user_default_options`
+ buftypes = {}, -- Buftype options. Accepts table like `user_default_options`
+ -- Boolean | List of usercommands to enable. See User commands section.
+ user_commands = true, -- Enable all or some usercommands
+ lazy_load = false, -- Lazily schedule buffer highlighting setup function
+ user_default_options = {
+ names = false, -- "Name" codes like Blue or red. Added from `vim.api.nvim_get_color_map()`
+ names_opts = { -- options for mutating/filtering names.
+ lowercase = true, -- name:lower(), highlight `blue` and `red`
+ camelcase = true, -- name, highlight `Blue` and `Red`
+ uppercase = true, -- name:upper(), highlight `BLUE` and `RED`
+ strip_digits = false, -- ignore names with digits,
+ -- highlight `blue` and `red`, but not `blue3` and `red4`
+ },
+ -- Expects a table of color name to #RRGGBB value pairs. # is optional
+ -- Example: { cool = "#107dac", ["notcool"] = "#ee9240" }
+ -- Set to false to disable, for example when setting filetype options
+ names_custom = false, -- Custom names to be highlighted: table|function|false
+ RGB = true, -- #RGB hex codes
+ RGBA = true, -- #RGBA hex codes
+ RRGGBB = true, -- #RRGGBB hex codes
+ RRGGBBAA = true, -- #RRGGBBAA hex codes
+ AARRGGBB = true, -- 0xAARRGGBB hex codes
+ rgb_fn = true, -- CSS rgb() and rgba() functions
+ hsl_fn = true, -- CSS hsl() and hsla() functions
+ css = true, -- Enable all CSS *features*:
+ -- names, RGB, RGBA, RRGGBB, RRGGBBAA, AARRGGBB, rgb_fn, hsl_fn
+ css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
+ -- Tailwind colors. boolean|'normal'|'lsp'|'both'. True sets to 'normal'
+ tailwind = true, -- Enable tailwind colors
+ tailwind_opts = { -- Options for highlighting tailwind names
+ update_names = false, -- When using tailwind = 'both', update tailwind names from LSP results. See tailwind section
+ },
+ -- parsers can contain values used in `user_default_options`
+ sass = { enable = false, parsers = { "css" } }, -- Enable sass colors
+ -- Highlighting mode. 'background'|'foreground'|'virtualtext'
+ mode = "background", -- Set the display mode
+ -- Virtualtext character to use
+ virtualtext = "■",
+ -- Display virtualtext inline with color. boolean|'before'|'after'. True sets to 'after'
+ virtualtext_inline = false,
+ -- Virtualtext highlight mode: 'background'|'foreground'
+ virtualtext_mode = "foreground",
+ -- update color values even if buffer is not focused
+ -- example use: cmp_menu, cmp_docs
+ always_update = false,
+ -- hooks to invert control of colorizer
+ hooks = {
+ -- called before line parsing. Accepts boolean or function that returns boolean
+ -- see hooks section below
+ disable_line_highlight = false,
+ },
+ },
+ })
+ end,
+ keys = {
+ { "<leader>zha", "<cmd>ColorizerAttachToBuffer<CR>", desc = "Attach colorizer" },
+ { "<leader>zhd", "<cmd>ColorizerDetachFromBuffer<CR>", desc = "Detach colorizer" },
+ { "<leader>zhr", "<cmd>ColorizerReloadAllBuffers<CR>", desc = "Refresh colorizer" },
+ { "<leader>zht", "<cmd>ColorizerToggle<CR>", desc = "Toggle colorizer" },
+ },
+}
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua
index fe82b02..eb93c01 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/comment.lua
@@ -1,50 +1,8 @@
return {
- {
- "numToStr/Comment.nvim",
- lazy = false,
- opts = {},
- config = function()
- require("Comment").setup()
- end,
- },
- {
- "folke/todo-comments.nvim",
- dependencies = { "nvim-lua/plenary.nvim" },
- opts = {},
- cmd = { "TodoTrouble", "TodoTelescope" },
- config = function()
- require("todo-comments").setup()
- end,
- init = function()
- local wk = require("which-key")
- wk.add({
- mode = { "n", "v" },
- { "<leader>t", group = "TODO" },
- })
- end,
- keys = {
- {
- "]t",
- function()
- require("todo-comments").jump_next()
- end,
- desc = "Next Todo Comment",
- },
- {
- "[t",
- function()
- require("todo-comments").jump_prev()
- end,
- desc = "Previous Todo Comment",
- },
- { "<leader>tt", "<cmd>Trouble todo toggle<cr>", desc = "Toggle TODO (Trouble)" },
- {
- "<leader>tT",
- "<cmd>Trouble todo toggle filter = {tag = {TODO,FIX,FIXME}}<cr>",
- desc = "Toggle Todo/Fix/Fixme (Trouble)",
- },
- { "<leader>ft", "<cmd>TodoTelescope<cr>", desc = "Find Todo" },
- { "<leader>fT", "<cmd>TodoTelescope keywords=TODO,FIX,FIXME<cr>", desc = "Find Todo/Fix/Fixme" },
- },
- },
+ "numToStr/Comment.nvim",
+ lazy = false,
+ opts = {},
+ config = function()
+ require("Comment").setup()
+ end,
}
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua
index 7a91208..6911076 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua
@@ -966,212 +966,4 @@ return {
})
end,
},
- {
- "echasnovski/mini.hipatterns",
- version = false,
- config = function()
- local hipatterns = require("mini.hipatterns")
- hipatterns.setup({
- highlighters = {
- -- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
- fixme = { pattern = "%f[%w]()FIXME()%f[%W]", group = "MiniHipatternsFixme" },
- hack = { pattern = "%f[%w]()HACK()%f[%W]", group = "MiniHipatternsHack" },
- todo = { pattern = "%f[%w]()TODO()%f[%W]", group = "MiniHipatternsTodo" },
- note = { pattern = "%f[%w]()NOTE()%f[%W]", group = "MiniHipatternsNote" },
-
- -- Highlight hex color strings (`#rrggbb`) using that color
- hex_color = hipatterns.gen_highlighter.hex_color(),
- },
- })
- end,
- },
- {
- "echasnovski/mini.indentscope",
- version = false, -- wait till new 0.7.0 release to put it back on semver
- event = "VeryLazy",
- opts = {
- mappings = {
- -- Textobjects
- object_scope = "i-",
- object_scope_with_border = "a-",
-
- -- Motions (jump to respective border line; if not present - body line)
- goto_top = "g,",
- goto_bottom = "g;",
- },
- draw = {
- animation = function()
- return 0
- end,
- },
- options = { try_as_border = true },
- symbol = "│",
- },
- init = function()
- vim.api.nvim_create_autocmd("FileType", {
- pattern = {
- "help",
- "Trouble",
- "trouble",
- "lazy",
- "mason",
- },
- callback = function()
- vim.b.miniindentscope_disable = true
- end,
- })
- end,
- },
- {
- "echasnovski/mini.map",
- version = false,
- config = function()
- require("mini.map").setup(
- -- No need to copy this inside `setup()`. Will be used automatically.
- {
- -- Highlight integrations (none by default)
- integrations = nil,
-
- -- Symbols used to display data
- symbols = {
- -- Encode symbols. See `:h MiniMap.config` for specification and
- -- `:h MiniMap.gen_encode_symbols` for pre-built ones.
- -- Default: solid blocks with 3x2 resolution.
- encode = nil,
-
- -- Scrollbar parts for view and line. Use empty string to disable any.
- scroll_line = "█",
- scroll_view = "┃",
- },
-
- -- Window options
- window = {
- -- Whether window is focusable in normal way (with `wincmd` or mouse)
- focusable = true,
-
- -- Side to stick ('left' or 'right')
- side = "right",
-
- -- Whether to show count of multiple integration highlights
- show_integration_count = true,
-
- -- Total width
- width = 10,
-
- -- Value of 'winblend' option
- winblend = 25,
-
- -- Z-index
- zindex = 10,
- },
- }
- )
- end,
- init = function()
- local wk = require("which-key")
- wk.add({
- mode = { "n", "v" },
- { "<leader>m", group = "Markdown/Map" },
- { "<leader>mt", group = "Toggle" },
- })
- end,
- keys = {
- { "<leader>mo", "<cmd>lua MiniMap.open()<cr>", desc = "Open map" },
- { "<leader>mm", "<cmd>lua MiniMap.refresh()<cr>", desc = "Refresh map" },
- { "<leader>mc", "<cmd>lua MiniMap.close()<cr>", desc = "Close map" },
- { "<leader>mtm", "<cmd>lua MiniMap.toggle()<cr>", desc = "Toggle map" },
- { "<leader>mts", "<cmd>lua MiniMap.toggle_side()<cr>", desc = "Toggle side map" },
- },
- },
- {
- "echasnovski/mini.move",
- version = false,
- config = function()
- -- No need to copy this inside `setup()`. Will be used automatically.
- require("mini.move").setup({
- -- Module mappings. Use `''` (empty string) to disable one.
- mappings = {
- -- Move visual selection in Visual mode. Defaults are Alt (Meta) + hjkl.
- left = "<M-m>",
- right = "<M-/>",
- down = "<M-,>",
- up = "<M-.>",
-
- -- Move current line in Normal mode
- line_left = "<M-m>",
- line_right = "<M-/>",
- line_down = "<M-,>",
- line_up = "<M-.>",
- },
-
- -- Options which control moving behavior
- options = {
- -- Automatically reindent selection during linewise vertical move
- reindent_linewise = true,
- },
- })
- end,
- },
- {
- "echasnovski/mini.pairs",
- version = false,
- event = "VeryLazy",
- config = function()
- require("mini.pairs").setup()
- end,
- keys = {
- {
- "<leader>zp",
- function()
- vim.g.minipairs_disable = not vim.g.minipairs_disable
- end,
- desc = "Toggle auto pairs",
- },
- },
- },
- {
- "echasnovski/mini.splitjoin",
- version = false,
- config = function()
- require("mini.splitjoin").setup()
-
- vim.keymap.set(
- "n",
- "<leader>zj",
- ":lua MiniSplitjoin.toggle()<cr>",
- { noremap = true, silent = true, desc = "Toggle split-join" }
- )
- vim.keymap.set(
- "n",
- "<leader>J",
- ":lua MiniSplitjoin.join()<cr>",
- { noremap = true, silent = true, desc = "Join" }
- )
- vim.keymap.set(
- "n",
- "<leader><cr>",
- ":lua MiniSplitjoin.split()<cr>",
- { noremap = true, silent = true, desc = "Split" }
- )
- end,
- },
- {
- "echasnovski/mini.trailspace",
- version = false,
- config = function()
- require("mini.trailspace").setup()
- vim.keymap.set(
- "n",
- "<leader>zt",
- ":lua MiniTrailspace.trim()<cr>",
- { noremap = true, silent = true, desc = "Trim trailing whitespace" }
- )
- vim.keymap.set(
- "n",
- "<leader>zl",
- ":lua MiniTrailspace.trim_last_lines()<cr>",
- { noremap = true, silent = true, desc = "Trim trailing empty lines" }
- )
- end,
- },
}
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua
index 19947ae..257881f 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/todo.lua
@@ -1,14 +1,56 @@
return {
- "vimichael/floatingtodo.nvim",
- config = function()
- require("floatingtodo").setup({
- target_file = "~/.local/share/vimwiki/todo.md",
- border = "single", -- single, rounded, etc.
- width = 0.8, -- width of window in % of screen size
- height = 0.8, -- height of window in % of screen size
- position = "center", -- topleft, topright, bottomleft, bottomright
- })
+ {
+ "vimichael/floatingtodo.nvim",
+ config = function()
+ require("floatingtodo").setup({
+ target_file = "~/.local/share/vimwiki/todo.md",
+ border = "single", -- single, rounded, etc.
+ width = 0.8, -- width of window in % of screen size
+ 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,
+ vim.keymap.set("n", "<leader>tf", ":Td<CR>", { silent = true, desc = "TODO floating" })
+ end,
+ },
+ {
+ "folke/todo-comments.nvim",
+ dependencies = { "nvim-lua/plenary.nvim" },
+ opts = {},
+ cmd = { "TodoTrouble", "TodoTelescope" },
+ config = function()
+ require("todo-comments").setup()
+ end,
+ init = function()
+ local wk = require("which-key")
+ wk.add({
+ mode = { "n", "v" },
+ { "<leader>t", group = "TODO" },
+ })
+ end,
+ keys = {
+ {
+ "]t",
+ function()
+ require("todo-comments").jump_next()
+ end,
+ desc = "Next Todo Comment",
+ },
+ {
+ "[t",
+ function()
+ require("todo-comments").jump_prev()
+ end,
+ desc = "Previous Todo Comment",
+ },
+ { "<leader>tt", "<cmd>Trouble todo toggle<cr>", desc = "Toggle TODO (Trouble)" },
+ {
+ "<leader>tT",
+ "<cmd>Trouble todo toggle filter = {tag = {TODO,FIX,FIXME}}<cr>",
+ desc = "Toggle Todo/Fix/Fixme (Trouble)",
+ },
+ { "<leader>ft", "<cmd>TodoTelescope<cr>", desc = "Find Todo" },
+ { "<leader>fT", "<cmd>TodoTelescope keywords=TODO,FIX,FIXME<cr>", desc = "Find Todo/Fix/Fixme" },
+ },
+ },
}