diff --git a/.config/nvim/ftdetect/crontab.lua b/.config/nvim/ftdetect/crontab.lua new file mode 100644 index 0000000..1bd9eff --- /dev/null +++ b/.config/nvim/ftdetect/crontab.lua @@ -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 +}) diff --git a/.config/nvim/ftdetect/crontab.vim b/.config/nvim/ftdetect/crontab.vim deleted file mode 100644 index d85038e..0000000 --- a/.config/nvim/ftdetect/crontab.vim +++ /dev/null @@ -1 +0,0 @@ -autocmd filetype crontab setlocal nowritebackup diff --git a/.config/nvim/ftdetect/html.twig.lua b/.config/nvim/ftdetect/html.twig.lua new file mode 100644 index 0000000..0329b14 --- /dev/null +++ b/.config/nvim/ftdetect/html.twig.lua @@ -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 +}) diff --git a/.config/nvim/ftdetect/html.twig.vim b/.config/nvim/ftdetect/html.twig.vim deleted file mode 100644 index 2f2247c..0000000 --- a/.config/nvim/ftdetect/html.twig.vim +++ /dev/null @@ -1 +0,0 @@ -autocmd BufNewFile,BufRead *.html.twig set syntax=html diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 1be0ef1..00c6df2 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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',