Skip to content

Commit

Permalink
neovim: Add tailwindcss-colors.nvim
Browse files Browse the repository at this point in the history
May be upstreamed by NixOS/nixpkgs#277632
  • Loading branch information
donovanglover committed Dec 30, 2023
1 parent ac3699f commit d441145
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion home/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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', '<space>e', vim.diagnostic.open_float)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
Expand Down Expand Up @@ -306,7 +324,6 @@ in
'texlab',
'crystalline',
'prismals',
'tailwindcss',
'sqlls',
'emmet_language_server',
'astro',
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d441145

Please sign in to comment.