1
0
Fork 0

nvim: automatically translate ANSI colour escape sequences

This commit is contained in:
tastytea 2022-09-29 22:58:12 +02:00
parent 3d646d1024
commit 73e1c7742d
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 10 additions and 4 deletions

View File

@ -15,9 +15,9 @@ require 'nvim-treesitter.configs'.setup {
require('orgmode').setup {}
require('orgmode').setup_ts_grammar()
vim.api.nvim_create_augroup('config_fileformats', { clear = true })
local ffgroup = vim.api.nvim_create_augroup('config_ff', { clear = true })
vim.api.nvim_create_autocmd({ 'FileType' }, {
group = 'config_fileformats',
group = ffgroup,
pattern = { 'org' },
callback = function()
-- allow to hide stuff, like links
@ -27,17 +27,23 @@ vim.api.nvim_create_autocmd({ 'FileType' }, {
})
vim.api.nvim_create_autocmd({ 'FileType' }, {
group = 'config_fileformats',
group = ffgroup,
pattern = { 'gentoo-package-*' },
command = [[set tabstop=2 shiftwidth=2]]
})
vim.api.nvim_create_autocmd({ 'BufEnter' }, {
group = 'config_fileformats',
group = ffgroup,
pattern = { '*.m3u8', '*.m3u' },
command = [[set textwidth=0]]
})
vim.api.nvim_create_autocmd({ 'BufEnter' }, {
group = ffgroup,
pattern = { '*.log' },
command = [[AnsiEsc]]
})
require("todo-comments").setup({
signs = false,
highlight = {