From 1c8b6e3af27562c3514002b1b7c5659fe0c6d70f Mon Sep 17 00:00:00 2001 From: willsmanic <57890520+nesper8@users.noreply.github.com> Date: Mon, 9 Jan 2023 11:21:14 +0530 Subject: [PATCH] added emmet support for html and css files --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.lua b/init.lua index ac291dad..ff957ced 100644 --- a/init.lua +++ b/init.lua @@ -60,6 +60,9 @@ require('packer').startup(function(use) -- Fuzzy Finder Algorithm which requires local dependencies to be built. Only load if `make` is available use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make', cond = vim.fn.executable 'make' == 1 } + -- Emmet support + use 'mattn/emmet-vim' + -- Add custom plugins to packer from ~/.config/nvim/lua/custom/plugins.lua local has_plugins, plugins = pcall(require, 'custom.plugins') if has_plugins then @@ -122,6 +125,10 @@ vim.wo.signcolumn = 'yes' vim.o.termguicolors = true vim.cmd [[colorscheme onedark]] +-- Enable Emmet only for html and css +vim.g.user_emmet_install_global = 0 +vim.cmd('autocmd FileType html,css EmmetInstall') + -- Set completeopt to have a better completion experience vim.o.completeopt = 'menuone,noselect'