added emmet support for html and css files
This commit is contained in:
parent
4916072854
commit
1c8b6e3af2
7
init.lua
7
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
|
-- 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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue