Browse Source

barbar options

imac
Juni Kim 2 years ago
parent
commit
cf25710511
  1. 5
      after/plugin/barbar.lua
  2. 10
      lua/junikim/options.lua

5
after/plugin/barbar.lua

@ -39,3 +39,8 @@ map('n', '<Space>bb', '<Cmd>BufferOrderByBufferNumber<CR>', opts)
map('n', '<Space>bd', '<Cmd>BufferOrderByDirectory<CR>', opts)
map('n', '<Space>bl', '<Cmd>BufferOrderByLanguage<CR>', opts)
map('n', '<Space>bw', '<Cmd>BufferOrderByWindowNumber<CR>', opts)
require('bufferline').setup {
animation = false,
icon_pinned = '',
}

10
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)

Loading…
Cancel
Save