nixos-configs/home-manager/neovim/bufferline.lua
Pim Kunis 3b9b7d3c01 replace efm with none-ls
enable black formatter for black
enable stylua formatter for lua
update nix flake inputs
format lua files
2023-11-30 16:59:49 +01:00

13 lines
393 B
Lua

require("bufferline").setup({
options = {
diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level, diagnostics_dict, context)
local icon = level:match("error") and "" or ""
return " " .. icon .. count
end,
separator_style = "slant",
hover = { enabled = true, reveal = { "close" } },
},
})
vim.keymap.set("n", "<leader>ft", ":BufferLinePick<CR>", {})