Rewrite autodetects in lua

This commit is contained in:
Eugen Wissner 2025-01-09 00:25:53 +01:00
parent 70f1b8d48d
commit 889af814fc
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
5 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,6 @@
vim.api.nvim_create_autocmd({ "filetype" }, {
pattern = "crontab",
callback = function()
vim.api.nvim_buf_set_option(vim.api.nvim_get_current_buf(), "writebackup", false)
end
})

View File

@ -1 +0,0 @@
autocmd filetype crontab setlocal nowritebackup

View File

@ -0,0 +1,6 @@
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
pattern = "*.html.twig",
callback = function()
vim.api.nvim_buf_set_option(vim.api.nvim_get_current_buf(), "syntax", "html")
end
})

View File

@ -1 +0,0 @@
autocmd BufNewFile,BufRead *.html.twig set syntax=html

View File

@ -75,7 +75,6 @@ require('packer').startup(function()
-- Syntax. -- Syntax.
use 'leafOfTree/vim-vue-plugin' use 'leafOfTree/vim-vue-plugin'
use 'mfussenegger/nvim-jdtls' use 'mfussenegger/nvim-jdtls'
use 'hhsnopek/vim-sugarss'
use 'dart-lang/dart-vim-plugin' use 'dart-lang/dart-vim-plugin'
use { use {
'akinsho/flutter-tools.nvim', 'akinsho/flutter-tools.nvim',