neovim: Add tailwindcss-colors.nvim

May be upstreamed by https://github.com/NixOS/nixpkgs/pull/277632
This commit is contained in:
Donovan Glover 2023-12-29 19:44:28 -05:00
parent ac3699fd6e
commit d44114519a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -12,6 +12,18 @@ let
hash = "sha256-Q+Jx6/MgeE2hsd/a6FqfXpAOaRcNymZW6t75hYCcH4E="; 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 in
{ {
programs.bat.enable = true; programs.bat.enable = true;
@ -265,6 +277,12 @@ in
}) })
end 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', '<space>e', vim.diagnostic.open_float)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next) vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
@ -306,7 +324,6 @@ in
'texlab', 'texlab',
'crystalline', 'crystalline',
'prismals', 'prismals',
'tailwindcss',
'sqlls', 'sqlls',
'emmet_language_server', 'emmet_language_server',
'astro', 'astro',
@ -565,6 +582,13 @@ in
require('nvim-surround').setup() require('nvim-surround').setup()
''; '';
} }
{
plugin = tailwindcss-colors-nvim;
type = "lua";
config = /* lua */ ''
require('tailwindcss-colors').setup()
'';
}
cosco-vim cosco-vim
fzf-vim fzf-vim
vim-caddyfile vim-caddyfile