tmux e nvim plugin
This commit is contained in:
parent
2e62243815
commit
3b15200507
@ -1,13 +0,0 @@
|
|||||||
return {
|
|
||||||
'MeanderingProgrammer/render-markdown.nvim',
|
|
||||||
dependencies = {
|
|
||||||
'nvim-treesitter/nvim-treesitter',
|
|
||||||
'nvim-tree/nvim-web-devicons'
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require('render-markdown').setup({
|
|
||||||
html = { enabled = false },
|
|
||||||
latex = { enabled = false },
|
|
||||||
})
|
|
||||||
end
|
|
||||||
}
|
|
||||||
@ -2,7 +2,7 @@ return {
|
|||||||
"tris203/precognition.nvim",
|
"tris203/precognition.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
-- startVisible = true,
|
startVisible = false,
|
||||||
-- showBlankVirtLine = true,
|
-- showBlankVirtLine = true,
|
||||||
-- highlightColor = { link = "Comment" },
|
-- highlightColor = { link = "Comment" },
|
||||||
-- hints = {
|
-- hints = {
|
||||||
|
|||||||
@ -1,72 +1,48 @@
|
|||||||
# 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
|
|
||||||
|
|
||||||
set-option -g focus-events on
|
set-option -g focus-events on
|
||||||
# set-option -g default-terminal "screen-256color"
|
# set-option -g default-terminal "screen-256color"
|
||||||
set-option -a terminal-features 'alacritty:RGB'
|
set-option -a terminal-features 'alacritty:RGB'
|
||||||
|
|
||||||
# easy reload config
|
|
||||||
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "reloaded."
|
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "reloaded."
|
||||||
|
unbind \%
|
||||||
# Pane splitting
|
|
||||||
unbind %
|
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
unbind '"'
|
# unbind '"'
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
|
||||||
# C-b is not acceptable -- Vim uses it
|
# C-b is not acceptable -- Vim uses it
|
||||||
set-option -g prefix C-a
|
set-option -g prefix C-a
|
||||||
bind-key C-a last-window
|
bind-key C-a last-window
|
||||||
|
|
||||||
# Start numbering at 1
|
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
|
||||||
# Allows for faster key repetition
|
# Allows for faster key repetition
|
||||||
set -s escape-time 50
|
set -s escape-time 50
|
||||||
|
|
||||||
# Rather than constraining window size to the maximum size of any client
|
# 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
|
# connected to the *session*, constrain window size to the maximum size of any
|
||||||
# client connected to *that window*. Much more reasonable.
|
# client connected to *that window*. Much more reasonable.
|
||||||
setw -g aggressive-resize on
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
||||||
# another TMUX session
|
# another TMUX session
|
||||||
bind-key a send-prefix
|
bind-key a send-prefix
|
||||||
|
|
||||||
# Activity monitoring
|
# Activity monitoring
|
||||||
setw -g monitor-activity on
|
setw -g monitor-activity on
|
||||||
set -g visual-activity on
|
set -g visual-activity on
|
||||||
|
|
||||||
# hjkl pane traversal
|
# hjkl pane traversal
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
bind j select-pane -D
|
bind j select-pane -D
|
||||||
bind k select-pane -U
|
bind k select-pane -U
|
||||||
bind l select-pane -R
|
bind l select-pane -R
|
||||||
|
|
||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
|
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
|
||||||
|
|
||||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "reloaded."
|
bind r source-file ~/.config/tmux/tmux.conf \; display-message "reloaded."
|
||||||
# Enable mouse support
|
# Enable mouse support
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# Increase scrollback buffer size
|
# Increase scrollback buffer size
|
||||||
set -g history-limit 1000000
|
set -g history-limit 1000000
|
||||||
|
|
||||||
# Start window and pane numbering at 1
|
# Start window and pane numbering at 1
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
set -g pane-base-index 1
|
set -g pane-base-index 1
|
||||||
|
|
||||||
# Detach sessions instead of killing them
|
# Detach sessions instead of killing them
|
||||||
set -g detach-on-destroy on
|
set -g detach-on-destroy on
|
||||||
|
|
||||||
# Renumber windows automatically after one is closed
|
# Renumber windows automatically after one is closed
|
||||||
set -g renumber-windows on
|
set -g renumber-windows on
|
||||||
|
|
||||||
# Use system clipboard
|
# Use system clipboard
|
||||||
set -g set-clipboard on
|
set -g set-clipboard on
|
||||||
|
|
||||||
# navigation
|
# navigation
|
||||||
bind -n M-1 select-window -t 1
|
bind -n M-1 select-window -t 1
|
||||||
bind -n M-2 select-window -t 2
|
bind -n M-2 select-window -t 2
|
||||||
@ -78,14 +54,12 @@ bind -n M-7 select-window -t 7
|
|||||||
bind -n M-8 select-window -t 8
|
bind -n M-8 select-window -t 8
|
||||||
bind -n M-9 select-window -t 9
|
bind -n M-9 select-window -t 9
|
||||||
bind -n M-0 select-window -t 10
|
bind -n M-0 select-window -t 10
|
||||||
|
|
||||||
# Set color scheme for status bar
|
# Set color scheme for status bar
|
||||||
set-option -g status-bg "#282828"
|
set-option -g status-bg "#282828"
|
||||||
set-option -g status-fg "#fe8019"
|
set-option -g status-fg "#fe8019"
|
||||||
set-option -g status-interval 5
|
set-option -g status-interval 5
|
||||||
set-option -g status-left-length 40
|
set-option -g status-left-length 40
|
||||||
set-option -g status-right-length 40
|
set-option -g status-right-length 40
|
||||||
|
|
||||||
# Customize status bar content
|
# Customize status bar content
|
||||||
set -g status-left "#[fg=#d3869b]S: #S #[fg=#d3869b]• #[fg=#d3869b]W: #I #[fg=#d3869b]• "
|
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"
|
set -g status-right "#[fg=#d3869b]%H:%M %d-%b-%y"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user