nvim/lua/custom/plugins/emmet.lua
Lucas Barbieri 6afe9d61c3 add the rest of my config
pretty much all of it, i just need to probably add some sort of barbar.nvim thingy or bufferline, idk.
2023-08-01 20:43:02 -03:00

16 lines
458 B
Lua

return {
"mattn/emmet-vim",
config = function()
vim.g.user_emmet_leader_key = ","
vim.g.user_emmet_install_global = 0
local autocmd = vim.api.nvim_create_autocmd
autocmd("FileType", { pattern = "html", command = [[EmmetInstall]] })
autocmd("FileType", { pattern = "css", command = [[EmmetInstall]] })
vim.keymap.set("n", "<leader>e", function()
vim.cmd(string.format("Emmet %s", vim.fn.input("Emmet: ")))
end)
end
}