diff --git a/after/plugin/barbar.lua b/after/plugin/barbar.lua index 45c51af..0bc0ef4 100644 --- a/after/plugin/barbar.lua +++ b/after/plugin/barbar.lua @@ -39,3 +39,8 @@ map('n', 'bb', 'BufferOrderByBufferNumber', opts) map('n', 'bd', 'BufferOrderByDirectory', opts) map('n', 'bl', 'BufferOrderByLanguage', opts) map('n', 'bw', 'BufferOrderByWindowNumber', opts) + +require('bufferline').setup { + animation = false, + icon_pinned = '', +} diff --git a/lua/junikim/options.lua b/lua/junikim/options.lua index c009d79..8d27c01 100644 --- a/lua/junikim/options.lua +++ b/lua/junikim/options.lua @@ -45,6 +45,16 @@ vim.api.nvim_create_autocmd("FileType", { end }) +vim.api.nvim_create_autocmd( + { "BufRead", "BufNewFile" }, + { + pattern = { "*.ms", "*.me", "*.mom" }, + callback = function(args) + vim.bo.filetype = "groff" + end + } +) + vim.api.nvim_create_autocmd("FileType", { pattern = { "tex", "text" }, callback = function(args)