From 14a32b76ece68a999b78bed48c34cd932bf0fa05 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Wed, 20 Mar 2024 10:28:40 +0100 Subject: [PATCH] Vim: plugins --- modules/hm/vim.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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;