summaryrefslogtreecommitdiff
path: root/lua/tjk/plugins.lua
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-05-21 22:43:45 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-05-21 22:44:06 -0500
commitb289c88c8af8f35faf16ccc4fbb0af7798d2316a (patch)
treeda9908ca8312cce48863ecd33d8e3e09a64efc5c /lua/tjk/plugins.lua
parenta1991e505485abe9425560714d45b1fe1b2a7cfe (diff)
downloadnvim-b289c88c8af8f35faf16ccc4fbb0af7798d2316a.tar.xz
nvim-b289c88c8af8f35faf16ccc4fbb0af7798d2316a.zip
get rid of lazy.nvim in favor of natively installed packages. some general refactoring
Diffstat (limited to 'lua/tjk/plugins.lua')
-rw-r--r--lua/tjk/plugins.lua60
1 files changed, 60 insertions, 0 deletions
diff --git a/lua/tjk/plugins.lua b/lua/tjk/plugins.lua
new file mode 100644
index 0000000..b1c857a
--- /dev/null
+++ b/lua/tjk/plugins.lua
@@ -0,0 +1,60 @@
+vim.cmd.packadd "nvim.undotree"
+vim.cmd.packadd "nvim.difftool"
+
+-- https://github.com/m4xshen/autoclose.nvim
+require("autoclose").setup {
+ options = { pair_spaces = true },
+}
+
+-- TODO native cmp
+-- https://github.com/Saghen/blink.cmp
+require("blink-cmp").setup {
+ keymap = {
+ preset = "super-tab",
+ ["<C-k>"] = { "select_prev", "fallback" },
+ ["<C-j>"] = { "select_next", "fallback" },
+ },
+ cmdline = { enabled = false },
+}
+
+-- https://github.com/catgoose/nvim-colorizer.lua
+require("colorizer").setup {
+ lazy_load = true,
+ options = {
+ parsers = {
+ css = true, -- preset: enables names, hex, rgb, hsl, oklch, css_var
+ tailwind = { enable = true, update_names = true, lsp = true }, -- tailwind + lsp context
+ xterm = { enable = true }, -- xterm 256-color codes (#xNN, \e[38;5;NNNm)
+ xcolor = { enable = true }, -- LaTeX xcolor expressions (e.g. red!30)
+ },
+ },
+}
+
+-- https://git.tjkeller.xyz/minitab.nvim
+require("minitab").setup()
+
+-- https://github.com/nvim-treesitter/nvim-treesitter
+-- TODO "geigerzaehler/tree-sitter-jinja2", -- adds filetype for htmljinja, not recognized by ts by default. Requires gcc in path
+require("nvim-treesitter.configs").setup {
+ highlight = { enable = true, disable = { "yaml", "dockerfile" } },
+ indent = { enable = true, disable = { "yaml" } },
+}
+
+-- https://github.com/windwp/nvim-ts-autotag
+require("nvim-ts-autotag").setup {
+ per_filetype = { ["html"] = { enable_close = true } },
+}
+
+-- https://github.com/HiPhish/rainbow-delimiters.nvim
+--require("rainbow-delimiters.setup").setup()
+
+-- https://github.com/folke/snacks.nvim
+require("snacks").setup {
+ indent = {
+ enabled = true,
+ only_scope = true,
+ animate = { enabled = false },
+ scope = { enabled = false },
+ },
+ quickfile = { enabled = true },
+}