From 2e08f94b01047e73f42f3fb287431c59926f3206 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 21 Aug 2022 21:13:23 +0200 Subject: [PATCH] nvim: no textwidth for playlists --- .config/nvim/lua/my/filetypes.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/nvim/lua/my/filetypes.lua b/.config/nvim/lua/my/filetypes.lua index 1641892..32eec69 100644 --- a/.config/nvim/lua/my/filetypes.lua +++ b/.config/nvim/lua/my/filetypes.lua @@ -32,3 +32,9 @@ vim.api.nvim_create_autocmd({ 'FileType' }, { pattern = { 'gentoo-package-*' }, command = [[set tabstop=2 shiftwidth=2]] }) + +vim.api.nvim_create_autocmd({ 'BufEnter' }, { + group = 'config_fileformats', + pattern = { '*.m3u8', '*.m3u' }, + command = [[set textwidth=0]] +})