tmux e la formattazione di windows vanno daccordo PD
This commit is contained in:
parent
cd2e84628c
commit
a7328d4cff
@ -37,8 +37,8 @@ vim.opt.wrap = false -- don't wrap lines
|
||||
vim.opt.conceallevel = 2
|
||||
|
||||
-- lang spell cheecking for italian and english
|
||||
vim.opt.spell = true
|
||||
vim.opt.spelllang = "en,it"
|
||||
-- vim.opt.spell = true
|
||||
-- vim.opt.spelllang = "en,it"
|
||||
-- local spell_dir = vim.fn.stdpath("data") .. "/spell"
|
||||
-- vim.opt.spellfile = {
|
||||
-- spell_dir .. "/en.utf-8.add",
|
||||
|
||||
@ -3,21 +3,15 @@ local lsp_servers = {
|
||||
"ts_ls",
|
||||
"texlab",
|
||||
"marksman",
|
||||
"clangd",
|
||||
"docker_compose_language_service",
|
||||
"dockerls",
|
||||
"tailwindcss",
|
||||
"jedi_language_server",
|
||||
"cssls",
|
||||
"astro"
|
||||
}
|
||||
|
||||
local tools = {
|
||||
"luacheck",
|
||||
"latexindent",
|
||||
"google-java-format",
|
||||
"ruff",
|
||||
"clang-format"
|
||||
}
|
||||
|
||||
local on_attach = function(_, bufnr)
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
# Set color scheme
|
||||
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
|
||||
# set-option -g status-style bg=colour235,fg=colour136,default # bg=base02, fg=yellow
|
||||
|
||||
# template dove al post delle XXX metto il terminale che lancia tmux
|
||||
# set-option -a terminal-features 'XXX:RGB'
|
||||
set-option -a terminal-features 'kgx:RGB'
|
||||
set-option -g default-shell /bin/zsh
|
||||
set-option -g focus-events on
|
||||
set-option -g default-terminal "screen-256color"
|
||||
|
||||
# easy reload config
|
||||
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "reloaded."
|
||||
|
||||
# Pane splitting
|
||||
unbind %
|
||||
@ -11,15 +13,40 @@ bind | split-window -h -c "#{pane_current_path}"
|
||||
unbind '"'
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# Pane creation
|
||||
|
||||
# C-b is not acceptable -- Vim uses it
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a last-window
|
||||
|
||||
# Start numbering at 1
|
||||
set -g base-index 1
|
||||
|
||||
# Allows for faster key repetition
|
||||
set -s escape-time 50
|
||||
|
||||
# Rather than constraining window size to the maximum size of any client
|
||||
# connected to the *session*, constrain window size to the maximum size of any
|
||||
# client connected to *that window*. Much more reasonable.
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
||||
# another TMUX session
|
||||
bind-key a send-prefix
|
||||
|
||||
# Activity monitoring
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
|
||||
# hjkl pane traversal
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
|
||||
|
||||
# Reload config
|
||||
unbind r
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded..."
|
||||
|
||||
# Options
|
||||
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "reloaded."
|
||||
# Enable mouse support
|
||||
set -g mouse on
|
||||
|
||||
@ -39,7 +66,7 @@ set -g renumber-windows on
|
||||
# Use system clipboard
|
||||
set -g set-clipboard on
|
||||
|
||||
# navigation
|
||||
# navigation
|
||||
bind -n M-1 select-window -t 1
|
||||
bind -n M-2 select-window -t 2
|
||||
bind -n M-3 select-window -t 3
|
||||
@ -51,20 +78,6 @@ bind -n M-8 select-window -t 8
|
||||
bind -n M-9 select-window -t 9
|
||||
bind -n M-0 select-window -t 10
|
||||
|
||||
|
||||
# Navigation between panes using arrow keys with the prefix key
|
||||
bind -r k select-pane -U
|
||||
bind -r j select-pane -D
|
||||
bind -r h select-pane -L
|
||||
bind -r l select-pane -R
|
||||
|
||||
# Rename session
|
||||
unbind n
|
||||
bind n command-prompt -p "Name of session: " "rename-session '%%'"
|
||||
|
||||
# Keybinding to kill pane
|
||||
bind x kill-pane
|
||||
|
||||
# Set color scheme for status bar
|
||||
set-option -g status-bg "#282828"
|
||||
set-option -g status-fg "#fe8019"
|
||||
@ -75,4 +88,3 @@ set-option -g status-right-length 40
|
||||
# Customize status bar content
|
||||
set -g status-left "#[fg=#d3869b]S: #S #[fg=#d3869b]• #[fg=#d3869b]W: #I #[fg=#d3869b]• "
|
||||
set -g status-right "#[fg=#d3869b]%H:%M %d-%b-%y"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user