added emmet support for html and css files

This commit is contained in:
willsmanic 2023-01-09 11:21:14 +05:30 committed by GitHub
parent 4916072854
commit 1c8b6e3af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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 -- 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 } 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 -- Add custom plugins to packer from ~/.config/nvim/lua/custom/plugins.lua
local has_plugins, plugins = pcall(require, 'custom.plugins') local has_plugins, plugins = pcall(require, 'custom.plugins')
if has_plugins then if has_plugins then
@ -122,6 +125,10 @@ vim.wo.signcolumn = 'yes'
vim.o.termguicolors = true vim.o.termguicolors = true
vim.cmd [[colorscheme onedark]] 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 -- Set completeopt to have a better completion experience
vim.o.completeopt = 'menuone,noselect' vim.o.completeopt = 'menuone,noselect'