diff options
Diffstat (limited to 'lua/tjk/plugins.lua')
| -rw-r--r-- | lua/tjk/plugins.lua | 60 |
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 }, +} |
