mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
neovim: Add tailwindcss-colors.nvim
May be upstreamed by https://github.com/NixOS/nixpkgs/pull/277632
This commit is contained in:
parent
ac3699fd6e
commit
d44114519a
@ -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', '<space>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
|
||||
|
Loading…
Reference in New Issue
Block a user