1
0
Fork 0
forked from irl/nix-configs

feat: rounded tmux and vim status

This commit is contained in:
Iain Learmonth 2025-07-07 23:57:15 +01:00
parent 87219d0a5a
commit 6c4495ba95
2 changed files with 19 additions and 5 deletions

View file

@ -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}"

View file

@ -27,10 +27,14 @@ vim.keymap.set("n", "<leader>p", "<cmd>bp<CR>")
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>")
-- 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", "<leader>b", "<cmd>Telescope buffers<CR>")
@ -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
})