diff --git a/lua/editor/autocommands/autocommands.lua b/lua/editor/autocommands/autocommands.lua index 533cb3c..b00c002 100644 --- a/lua/editor/autocommands/autocommands.lua +++ b/lua/editor/autocommands/autocommands.lua @@ -11,3 +11,13 @@ vim.api.nvim_create_autocmd('TextYankPost', { vim.highlight.on_yank() end, }) + +-- Set the *.blade.php file to be filetype of blade +vim.api.nvim_create_augroup('BladeFileTypeRelated', { clear = true }) +vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, { + pattern = '*.blade.php', + callback = function() + vim.opt.filetype = 'blade' + end, + group = 'BladeFileTypeRelated', +}) diff --git a/lua/editor/options/options.lua b/lua/editor/options/options.lua index 226db77..68d2cbc 100644 --- a/lua/editor/options/options.lua +++ b/lua/editor/options/options.lua @@ -59,3 +59,8 @@ vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.opt.scrolloff = 20 + +-- Enable all functions, equivalent to the default +vim.g.user_emmet_mode = 'i' + +vim.wo.wrap = false diff --git a/lua/plugins/core/treesitter.lua b/lua/plugins/core/treesitter.lua index 0cf0d49..e780131 100644 --- a/lua/plugins/core/treesitter.lua +++ b/lua/plugins/core/treesitter.lua @@ -24,11 +24,9 @@ return { parser_config.blade = { install_info = { - url = 'https://github.com/EmranMR/tree-sitter-blade', - + highlight = true, files = { 'src/parser.c' }, - branch = 'main', },