merged tmux and neovim line. wip though

This commit is contained in:
2025-11-15 16:42:03 +01:00
parent 997dc98123
commit 9f55f21eef
6 changed files with 57 additions and 50 deletions

View File

@@ -28,11 +28,6 @@ local opts = {
} }
}, 'filename', 'branch', 'diff' }, }, 'filename', 'branch', 'diff' },
lualine_c = { lualine_c = {
{
require('tmux-status').tmux_windows,
cond = require('tmux-status').show,
padding = { left = 3 },
},
}, },
lualine_x = {}, lualine_x = {},
lualine_y = { 'filetype', { 'diagnostics', always_visible = true }, 'progress' }, lualine_y = { 'filetype', { 'diagnostics', always_visible = true }, 'progress' },

View File

@@ -13,7 +13,7 @@ M.colors = {
M.spec = { M.spec = {
normal = { normal = {
a = { fg = M.colors.transparent, bg = M.colors.nord8, gui = 'bold' }, a = { fg = M.colors.nord5, bg = M.colors.nord8 },
b = { fg = M.colors.nord5, bg = M.colors.nord1 }, b = { fg = M.colors.nord5, bg = M.colors.nord1 },
c = { fg = M.colors.transparent, bg = M.colors.transparent }, c = { fg = M.colors.transparent, bg = M.colors.transparent },
}, },

View File

@@ -8,15 +8,12 @@ return {
-- loading lualine delayed again because of transparency issues -- loading lualine delayed again because of transparency issues
vim.defer_fn(function() vim.defer_fn(function()
lualineConfig.setup() lualineConfig.setup()
if os.getenv("TMUX") then
vim.o.laststatus = 2
end
end, 100) end, 100)
end, end,
dependencies = { dependencies = {
require("plugins.spec.theme"), require("plugins.spec.theme"),
{
"christopher-francisco/tmux-status.nvim",
lazy = true,
opts = {},
},
} }
} }

View File

@@ -25,7 +25,7 @@ return {
}, },
-- you can enable a preset for easier configuration -- you can enable a preset for easier configuration
presets = { presets = {
bottom_search = true, -- use a classic bottom cmdline for search bottom_search = false, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim inc_rename = false, -- enables an input dialog for inc-rename.nvim

View File

@@ -0,0 +1,8 @@
return {
'vimpostor/vim-tpipeline',
config = function()
vim.g.tpipeline_autoembed = 1
vim.g.tpipeline_restore = 1
vim.g.tpipeline_clearstl = 1
end
}

View File

@@ -26,10 +26,17 @@ in
set-option -g mode-keys vi set-option -g mode-keys vi
set -g mouse on set -g mouse on
set -g status on set -g status on
set -g focus-events on
set -g status-style bg=default
set -g status-right '#(cat #{socket_path}-\#{session_id}-vimbridge-R)'
set -g status-left '#(cat #{socket_path}-\#{session_id}-vimbridge)'
set -g status-left-length 99
set -g status-right-length 99
set -g status-justify absolute-centre
''; '';
programs.tmux.plugins = [ programs.tmux.plugins = [
pkgs.tmuxPlugins.nord
{ {
plugin = pkgs.tmuxPlugins.resurrect; plugin = pkgs.tmuxPlugins.resurrect;
extraConfig = "set -g @resurrect-strategy-nvim 'session'"; extraConfig = "set -g @resurrect-strategy-nvim 'session'";