feat: Add Emmet
This commit is contained in:
parent
5af51c43b0
commit
aefd0e189e
3 changed files with 34 additions and 2 deletions
19
flake.lock
19
flake.lock
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
|
9
lua/plugins/nvim-emmet.lua
Normal file
9
lua/plugins/nvim-emmet.lua
Normal 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' },
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue