This commit is contained in:
asep komarudin 2023-01-15 08:44:42 +07:00
parent 00381b1a78
commit 36d88f69fb
2 changed files with 11 additions and 11 deletions

View file

@ -31,11 +31,11 @@ bufferline.setup({
numbers = "none", -- | "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, raise }): string, numbers = "none", -- | "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, raise }): string,
--close_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions" --close_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
close_command = function(bufnum) close_command = function(bufnum)
require('bufdelete').bufdelete(bufnum, true) require("bufdelete").bufdelete(bufnum, true)
end, end,
--right_mouse_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions" --right_mouse_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
right_mouse_command = function(bufnum) right_mouse_command = function(bufnum)
require('bufdelete').bufdelete(bufnum, true) require("bufdelete").bufdelete(bufnum, true)
end, end,
left_mouse_command = "buffer %d", -- can be a string | function, see "Mouse actions" left_mouse_command = "buffer %d", -- can be a string | function, see "Mouse actions"
middle_mouse_command = nil, -- can be a string | function, see "Mouse actions" middle_mouse_command = nil, -- can be a string | function, see "Mouse actions"
@ -91,14 +91,14 @@ bufferline.setup({
-- return true -- return true
-- end -- end
-- end, -- end,
offsets = { { offsets = {
{
filetype = "NvimTree", filetype = "NvimTree",
text = function() text = "Explorer",
return vim.fn.getcwd()
end,
highlight = "Directory", highlight = "Directory",
text_align = "left", text_align = "left",
padding = 1 } padding = 1,
},
}, },
show_buffer_icons = true, show_buffer_icons = true,
show_buffer_close_icons = true, show_buffer_close_icons = true,

View file

@ -74,7 +74,7 @@ nvim_tree.setup({
}, },
view = { view = {
width = 30, width = 30,
hide_root_folder = true, hide_root_folder = false,
side = "left", side = "left",
mappings = { mappings = {
list = { list = {