Compare commits

..

No commits in common. "df75ab6508b787fbd949778b312c99ebdebd97be" and "3c7942494075ffe0d5c713d8aea067bd8a390a2f" have entirely different histories.

6 changed files with 32 additions and 55 deletions

View File

@ -52,9 +52,6 @@ return {
}, },
{ {
{ 'n' }, '<C-w><Right>', '<cmd>wincmd l<CR>', { desc = "Window Right" } { 'n' }, '<C-w><Right>', '<cmd>wincmd l<CR>', { desc = "Window Right" }
},
{
{ 'n', 'i' }, '<C-b>', '<cmd>Neotree toggle<CR>', { desc = "Toggle Neotree" }
} }
} }

View File

@ -148,13 +148,13 @@ return {
end, end,
bg = function(tabpage) bg = function(tabpage)
if tabpage.is_active then if tabpage.is_active then
return "lualine_a_command" return "NeoTreeTabActive"
end end
return "NeoTreeTabInactive" return "NeoTreeTabInactive"
end, end,
fg = function(tabpage) fg = function(tabpage)
if tabpage.is_active then if tabpage.is_active then
return "lualine_a_command" return "NeoTreeTabActive"
end end
return "NeoTreeTabInactive" return "NeoTreeTabInactive"
end end
@ -170,24 +170,17 @@ return {
tabpage:close() tabpage:close()
end, end,
bg = function(_) bg = function(_)
return "lualine_a_command" return "NeoTreeTabActive"
end, end,
fg = function(_) fg = function(_)
return "lualine_a_command" return "NeoTreeTabActive"
end end
} }
}, },
}, },
rhs = { rhs = {
{ {
text = " TAB ", text = "󰓩 2 tabs"
on_click = function(_, _, _, _, _)
vim.defer_fn(function()
vim.cmd("tabnew")
end, 100)
end,
fg = "NeoTreeTabActive",
bg = "NeoTreeTabActive"
} }
}, },
sidebar = { sidebar = {

View File

@ -1,10 +0,0 @@
return {
{
"RRethy/vim-illuminate",
config = function (_, _)
require('illuminate').configure({
})
end
}
}

View File

@ -52,27 +52,10 @@ return {
added = '+', added = '+',
modified = '~', modified = '~',
removed = '-', removed = '-',
}, }
on_click = function ()
vim.defer_fn(function()
vim.cmd("Gitsigns diffthis")
end, 100)
end,
}, },
}, },
lualine_x = { lualine_x = {
{
function ()
local client_id = vim.lsp.get_client_by_id(1)
return ' LSP ~ ' .. client_id.name
end,
on_click = function ()
vim.defer_fn(function()
vim.cmd("LspInfo")
end, 100)
end,
color = 'lualine_c_inactive'
},
{ {
'diagnostics', 'diagnostics',
symbols = { symbols = {
@ -84,13 +67,21 @@ return {
sources = { sources = {
'nvim_diagnostic' 'nvim_diagnostic'
}, },
update_in_insert = true, update_in_insert = true
},
{
function ()
local client_id = vim.lsp.get_client_by_id(1)
return ' LSP - ' .. client_id.name
end,
on_click = function () on_click = function ()
vim.defer_fn(function() vim.defer_fn(function()
vim.cmd("TroubleToggle") vim.cmd("LspInfo")
end, 100) end, 100)
end, end
}, },
'encoding',
'fileformat',
{ {
'filetype', 'filetype',
colored = true, colored = true,
@ -99,13 +90,9 @@ return {
vim.cmd("Telescope filetypes") vim.cmd("Telescope filetypes")
end, 100) end, 100)
end end
}
}, },
'encoding', lualine_y = {'progress'},
'fileformat'
},
lualine_y = {
{ 'progress' }
},
lualine_z = {'location'} lualine_z = {'location'}
}, },
inactive_sections = { inactive_sections = {

View File

@ -11,6 +11,16 @@ return {
local options = require("options") local options = require("options")
return { return {
sources = {
"filesystem",
"buffers",
"git_status",
"document_symbols"
},
source_selector = {
winbar = true,
statusline = false
},
close_if_last_window = true, close_if_last_window = true,
popup_border_style = options.ui.border, popup_border_style = options.ui.border,
default_component_configs = { default_component_configs = {

View File

@ -15,10 +15,10 @@ return {
{ {
sign = { sign = {
name = { "Diagnostic" }, name = { "Diagnostic" },
colwidth = 2, colwidth = 1,
maxwidth = 1 maxwidth = 1,
condition = { true }
}, },
auto = true,
click = "v:lua.ScSa" click = "v:lua.ScSa"
}, },
-- line numbers -- line numbers