|
@@ -109,7 +109,7 @@ ncvim.plugin {
|
|
local get_window_buffer = function(window)
|
|
local get_window_buffer = function(window)
|
|
local success, buff_nr = pcall(vim.api.nvim_win_get_buf, window.number)
|
|
local success, buff_nr = pcall(vim.api.nvim_win_get_buf, window.number)
|
|
if success == false then
|
|
if success == false then
|
|
- print("tab err: " .. buff_nr)
|
|
|
|
|
|
+ -- print("tab err: " .. buff_nr)
|
|
return nil
|
|
return nil
|
|
end
|
|
end
|
|
return buffersApi.get_buffer(buff_nr)
|
|
return buffersApi.get_buffer(buff_nr)
|
|
@@ -165,6 +165,8 @@ ncvim.plugin {
|
|
end
|
|
end
|
|
|
|
|
|
require('cokeline').setup({
|
|
require('cokeline').setup({
|
|
|
|
+ show_if_buffers_are_at_least = 2,
|
|
|
|
+
|
|
default_hl = {
|
|
default_hl = {
|
|
fg = function(tabpage)
|
|
fg = function(tabpage)
|
|
return
|
|
return
|
|
@@ -197,18 +199,20 @@ ncvim.plugin {
|
|
},
|
|
},
|
|
|
|
|
|
sidebar = {
|
|
sidebar = {
|
|
- filetype = { 'NvimTree', 'neo-tree' },
|
|
|
|
- components = {
|
|
|
|
- {
|
|
|
|
- text = function(buf)
|
|
|
|
- return "Files"
|
|
|
|
- end,
|
|
|
|
- fg = highlight.inactive.fg,
|
|
|
|
- bg = function() return get_hex('NvimTreeNormal', 'bg') end,
|
|
|
|
- bold = true,
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
|
|
+ -- sidebar = {
|
|
|
|
+ -- filetype = { 'NvimTree', 'neo-tree' },
|
|
|
|
+ -- components = {
|
|
|
|
+ -- {
|
|
|
|
+ -- text = function(buf)
|
|
|
|
+ -- return "Files"
|
|
|
|
+ -- end,
|
|
|
|
+ -- fg = highlight.inactive.fg,
|
|
|
|
+ -- bg = function() return get_hex('NvimTreeNormal', 'bg') end,
|
|
|
|
+ -- bold = true,
|
|
|
|
+ -- },
|
|
|
|
+ -- }
|
|
|
|
+ -- },
|
|
|
|
|
|
tabs = {
|
|
tabs = {
|
|
placement = "left",
|
|
placement = "left",
|