diff --git a/modules/hm/vim.nix b/modules/hm/vim.nix index 2f68732..bf7c737 100644 --- a/modules/hm/vim.nix +++ b/modules/hm/vim.nix @@ -236,6 +236,39 @@ let vp = pkgs.vimPlugins; in { # vp.nvim-treesitter-textobjects # vp.nvim-treesitter + + # Highlighting + { + plugin = vp.nvim-colorizer-lua; + type = "lua"; + config = '' + local colorizer = require ("colorizer") + colorizer.setup { + css = true, + mode = "background", + tailwind = true, + } + + --[[ + require("colorizer").attach_to_buffer(0, { mode = "background", css = true}) + require("colorizer").detach_from_buffer(0, { mode = "virtualtext", css = true}) + ]]-- + + ''; + } + + # Formatting + { + plugin = vp.conform-nvim; + type = "lua"; + config = '' + require("conform").setup({ + formatters_by_ft = { + -- lua = { "stylua" } + } + }) + ''; + } ]; # settings = { ignorecase = true; }; # coc.enable = true;