Rewrite autodetects in lua
This commit is contained in:
parent
70f1b8d48d
commit
889af814fc
6
.config/nvim/ftdetect/crontab.lua
Normal file
6
.config/nvim/ftdetect/crontab.lua
Normal 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
|
||||
})
|
@ -1 +0,0 @@
|
||||
autocmd filetype crontab setlocal nowritebackup
|
6
.config/nvim/ftdetect/html.twig.lua
Normal file
6
.config/nvim/ftdetect/html.twig.lua
Normal 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
|
||||
})
|
@ -1 +0,0 @@
|
||||
autocmd BufNewFile,BufRead *.html.twig set syntax=html
|
@ -75,7 +75,6 @@ require('packer').startup(function()
|
||||
-- Syntax.
|
||||
use 'leafOfTree/vim-vue-plugin'
|
||||
use 'mfussenegger/nvim-jdtls'
|
||||
use 'hhsnopek/vim-sugarss'
|
||||
use 'dart-lang/dart-vim-plugin'
|
||||
use {
|
||||
'akinsho/flutter-tools.nvim',
|
||||
|
Loading…
x
Reference in New Issue
Block a user