diff --git a/home/neovim.nix b/home/neovim.nix index bbd596ed..98093a3e 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -12,6 +12,18 @@ let hash = "sha256-Q+Jx6/MgeE2hsd/a6FqfXpAOaRcNymZW6t75hYCcH4E="; }; }; + + tailwindcss-colors-nvim = with pkgs.vimUtils; buildVimPlugin { + pname = "tailwindcss-colors-nvim"; + version = "ccb5be2f84673c1a0ef90a0c0a76733e85e5265b"; + + src = pkgs.fetchFromGitHub { + owner = "themaxmarchuk"; + repo = "tailwindcss-colors.nvim"; + rev = "ccb5be2f84673c1a0ef90a0c0a76733e85e5265b"; + hash = "sha256-2eUr4rB8gpax0xJ8U4O2O93UXUxF+HZV6Co8LwPZ3JE="; + }; + }; in { programs.bat.enable = true; @@ -265,6 +277,12 @@ in }) end } + lspconfig.tailwindcss.setup { + capabilities = capabilities, + on_attach = function(client, bufnr) + require("tailwindcss-colors").buf_attach(bufnr) + end + } vim.keymap.set('n', 'e', vim.diagnostic.open_float) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) vim.keymap.set('n', ']d', vim.diagnostic.goto_next) @@ -306,7 +324,6 @@ in 'texlab', 'crystalline', 'prismals', - 'tailwindcss', 'sqlls', 'emmet_language_server', 'astro', @@ -565,6 +582,13 @@ in require('nvim-surround').setup() ''; } + { + plugin = tailwindcss-colors-nvim; + type = "lua"; + config = /* lua */ '' + require('tailwindcss-colors').setup() + ''; + } cosco-vim fzf-vim vim-caddyfile