feat: rounded tmux and vim status
This commit is contained in:
parent
87219d0a5a
commit
6c4495ba95
2 changed files with 19 additions and 5 deletions
|
@ -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}"
|
|
@ -27,10 +27,14 @@ vim.keymap.set("n", "<leader>p", "<cmd>bp<CR>")
|
||||||
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
||||||
|
|
||||||
-- Bufferline (tabs)
|
-- Bufferline (tabs)
|
||||||
require("bufferline").setup{}
|
require("bufferline").setup {}
|
||||||
|
|
||||||
-- Lualine (status line)
|
-- Lualine (status line)
|
||||||
require("lualine").setup{}
|
require("lualine").setup {
|
||||||
|
options = {
|
||||||
|
section_separators = { left = '', right = '' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
-- Telescope (anything search)
|
-- Telescope (anything search)
|
||||||
vim.keymap.set("n", "<leader>b", "<cmd>Telescope buffers<CR>")
|
vim.keymap.set("n", "<leader>b", "<cmd>Telescope buffers<CR>")
|
||||||
|
@ -53,7 +57,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
desc = 'LSP actions',
|
desc = 'LSP actions',
|
||||||
callback = function()
|
callback = function()
|
||||||
local bufmap = function(mode, lhs, rhs)
|
local bufmap = function(mode, lhs, rhs)
|
||||||
local opts = {buffer = true}
|
local opts = { buffer = true }
|
||||||
vim.keymap.set(mode, lhs, rhs, opts)
|
vim.keymap.set(mode, lhs, rhs, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -72,7 +76,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
-- Jumps to the definition of the type symbol
|
-- Jumps to the definition of the type symbol
|
||||||
bufmap('n', 'go', vim.lsp.buf.type_definition)
|
bufmap('n', 'go', vim.lsp.buf.type_definition)
|
||||||
|
|
||||||
-- Lists all the references
|
-- Lists all the references
|
||||||
bufmap('n', 'gr', vim.lsp.buf.references)
|
bufmap('n', 'gr', vim.lsp.buf.references)
|
||||||
|
|
||||||
-- Displays a function's signature information
|
-- Displays a function's signature information
|
||||||
|
@ -91,4 +95,3 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
bufmap('n', ']d', vim.diagnostic.goto_next)
|
bufmap('n', ']d', vim.diagnostic.goto_next)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue