mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-24 06:08:34 +02:00
feat: add my plugins
This commit is contained in:
parent
d350db2449
commit
41e7418c01
8 changed files with 1072 additions and 897 deletions
25
lua/custom/plugins/buffline.lua
Normal file
25
lua/custom/plugins/buffline.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
return {
|
||||
"akinsho/bufferline.nvim",
|
||||
version = "*",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
init = function()
|
||||
vim.opt.termguicolors = true
|
||||
require("bufferline").setup({
|
||||
options = {
|
||||
diagnostics = "nvim_lsp",
|
||||
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
||||
local s = " "
|
||||
for e, n in pairs(diagnostics_dict) do
|
||||
local sym = e == "error" and " " or (e == "warning" and " " or " ")
|
||||
s = s .. n .. sym
|
||||
end
|
||||
return s
|
||||
end,
|
||||
},
|
||||
--buffline stuff
|
||||
vim.keymap.set("n", "<D-'>", "<CMD>BufferLineCycleNext<CR>", { desc = "Next tab" }),
|
||||
vim.keymap.set("n", "<D-;>", "<CMD>BufferLineCyclePrev<CR>", { desc = "Prev tab" }),
|
||||
vim.keymap.set("n", "<D-k>", "<CMD>bd<CR>", { desc = "[K]ill tab" }),
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue