From 6c4495ba952abe3e6d6f4390f9d8288bc1897d10 Mon Sep 17 00:00:00 2001 From: irl Date: Mon, 7 Jul 2025 23:57:15 +0100 Subject: [PATCH] feat: rounded tmux and vim status --- modules/home-manager/tmux/tmux.conf | 11 +++++++++++ modules/home-manager/vim/init.lua | 13 ++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/modules/home-manager/tmux/tmux.conf b/modules/home-manager/tmux/tmux.conf index e69de29..abb7510 100644 --- a/modules/home-manager/tmux/tmux.conf +++ b/modules/home-manager/tmux/tmux.conf @@ -0,0 +1,11 @@ +set -g default-terminal "tmux-256color" + +# Configure the catppuccin plugin +set -g @catppuccin_flavor "mocha" +set -g @catppuccin_window_status_style "rounded" + +# Make the status line pretty and add some modules +set -g status-right-length 100 +set -g status-left-length 100 +set -g status-left "" +set -g status-right "#{E:@catppuccin_status_application}" diff --git a/modules/home-manager/vim/init.lua b/modules/home-manager/vim/init.lua index cab8b97..c7f480c 100644 --- a/modules/home-manager/vim/init.lua +++ b/modules/home-manager/vim/init.lua @@ -27,10 +27,14 @@ vim.keymap.set("n", "p", "bp") vim.keymap.set("n", "", "nohlsearch") -- Bufferline (tabs) -require("bufferline").setup{} +require("bufferline").setup {} -- Lualine (status line) -require("lualine").setup{} +require("lualine").setup { + options = { + section_separators = { left = '', right = '' } + } +} -- Telescope (anything search) vim.keymap.set("n", "b", "Telescope buffers") @@ -53,7 +57,7 @@ vim.api.nvim_create_autocmd('LspAttach', { desc = 'LSP actions', callback = function() local bufmap = function(mode, lhs, rhs) - local opts = {buffer = true} + local opts = { buffer = true } vim.keymap.set(mode, lhs, rhs, opts) end @@ -72,7 +76,7 @@ vim.api.nvim_create_autocmd('LspAttach', { -- Jumps to the definition of the type symbol bufmap('n', 'go', vim.lsp.buf.type_definition) - -- Lists all the references + -- Lists all the references bufmap('n', 'gr', vim.lsp.buf.references) -- Displays a function's signature information @@ -91,4 +95,3 @@ vim.api.nvim_create_autocmd('LspAttach', { bufmap('n', ']d', vim.diagnostic.goto_next) end }) -