feat: Add Emmet

This commit is contained in:
punkfairie 2025-03-01 14:01:58 -08:00
parent 5af51c43b0
commit aefd0e189e
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
3 changed files with 34 additions and 2 deletions

View file

@ -228,11 +228,28 @@
"type": "github"
}
},
"plugins-nvim-emmet": {
"flake": false,
"locked": {
"lastModified": 1717158539,
"narHash": "sha256-LgKASQ1xBL8ugxK1g4R3BLQ3ha05cFtZaSYvd2Hy73c=",
"owner": "olrtg",
"repo": "nvim-emmet",
"rev": "cde4fb2968704aae5c18b7f8a9bc2508767bb78d",
"type": "github"
},
"original": {
"owner": "olrtg",
"repo": "nvim-emmet",
"type": "github"
}
},
"root": {
"inputs": {
"neovim-nightly-overlay": "neovim-nightly-overlay",
"nixCats": "nixCats",
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_2",
"plugins-nvim-emmet": "plugins-nvim-emmet"
}
},
"treefmt-nix": {

View file

@ -11,6 +11,11 @@
url = "github:nix-community/neovim-nightly-overlay";
};
"plugins-nvim-emmet" = {
url = "github:olrtg/nvim-emmet";
flake = false;
};
# see :help nixCats.flake.inputs
# If you want your plugin to be loaded by the standard overlay,
# i.e. if it wasnt on nixpkgs, but doesnt have an extra build step.
@ -112,7 +117,7 @@
# NOTE: lazy doesnt care if these are in startupPlugins or optionalPlugins
# also you dont have to download everything via nix if you dont want.
# but you have the option, and that is demonstrated here.
startupPlugins = with pkgs.vimPlugins; {
startupPlugins = with pkgs.vimPlugins; with pkgs.neovimPlugins; {
general = [
# LazyVim
lazy-nvim
@ -189,6 +194,7 @@
# Custom
rose-pine
diffview-nvim
nvim-emmet
];
};

View file

@ -0,0 +1,9 @@
return {
{
'nvim-emmet',
keys = {
{ '<LEADER>xe', mode = { 'n', 'v' }, require('nvim-emmet').wrap_with_abbreviation, desc = 'Wrap with Emmet abbr' },
},
ft = { 'html', 'css', 'scss', 'vue', 'blade' },
},
}