Compare commits
3 Commits
18fa9e7bb2
...
ccb2a67d46
Author | SHA1 | Date | |
---|---|---|---|
ccb2a67d46 | |||
96dfb38bba | |||
ceed8c8bfd |
@ -153,6 +153,7 @@ call plug#begin('~/.config/nvim/plugged')
|
|||||||
Plug 'kyazdani42/nvim-tree.lua'
|
Plug 'kyazdani42/nvim-tree.lua'
|
||||||
|
|
||||||
Plug 'z0mbix/vim-shfmt', { 'for': 'sh' }
|
Plug 'z0mbix/vim-shfmt', { 'for': 'sh' }
|
||||||
|
Plug 'zainin/vim-mikrotik'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" LUA
|
" LUA
|
||||||
@ -169,6 +170,7 @@ local on_attach = function(client, bufnr)
|
|||||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'ge', '<cmd>lua vim.diagnostic.setqflist()<CR>', opts)
|
||||||
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
||||||
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
||||||
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
||||||
@ -437,6 +439,7 @@ nmap <Leader>e <cmd>Telescope buffers<cr>
|
|||||||
nmap <Leader>w <cmd>Telescope find_files<cr>
|
nmap <Leader>w <cmd>Telescope find_files<cr>
|
||||||
nmap <Leader>q <cmd>Telescope live_grep<cr>
|
nmap <Leader>q <cmd>Telescope live_grep<cr>
|
||||||
nmap <Leader>g <cmd>Telescope git_branches<cr>
|
nmap <Leader>g <cmd>Telescope git_branches<cr>
|
||||||
|
nmap <Leader>a <cmd>Telescope diagnostics<cr>
|
||||||
|
|
||||||
" Resize window
|
" Resize window
|
||||||
nnoremap <C-L> :vertical resize +5<CR>
|
nnoremap <C-L> :vertical resize +5<CR>
|
||||||
@ -598,6 +601,9 @@ autocmd BufWritePre *.go lua go_org_imports()
|
|||||||
" Conf
|
" Conf
|
||||||
au BufNewFile,BufRead *.conf setfiletype conf
|
au BufNewFile,BufRead *.conf setfiletype conf
|
||||||
|
|
||||||
|
" Mikrotik
|
||||||
|
au BufNewFile,BufRead *.mikrotik setfiletype routeros
|
||||||
|
|
||||||
" Automatically deletes all trailing whitespace and newlines at end of file on save.
|
" Automatically deletes all trailing whitespace and newlines at end of file on save.
|
||||||
autocmd BufWritePre * %s/\s\+$//e
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
autocmd BufWritepre * %s/\n\+\%$//e
|
autocmd BufWritepre * %s/\n\+\%$//e
|
||||||
|
67
.tmux.conf
67
.tmux.conf
@ -1,15 +1,38 @@
|
|||||||
set -g prefix C-a
|
# Default shell configuration
|
||||||
set-option -g default-shell /bin/zsh
|
set-option -g default-shell /bin/zsh
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
set -ga terminal-overrides ",*256col*:Tc"
|
set -ga terminal-overrides ",*256col*:Tc"
|
||||||
bind-key p command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -JS -32768 ; save-buffer %1 ; delete-buffer'
|
|
||||||
unbind C-b
|
# Keybindings
|
||||||
bind-key C-a send-prefix
|
unbind C-b # Unbind a default keys conbination
|
||||||
unbind q
|
unbind q # Unbind a q key
|
||||||
bind q confirm kill-window
|
set -g prefix C-a # Set a default keys conbination
|
||||||
bind Q confirm kill-pane
|
bind-key C-a send-prefix # Set a default keys conbination
|
||||||
set -g status on
|
bind q confirm kill-window # Set a kill-window keybind
|
||||||
|
bind Q confirm kill-pane # Set a kill-pane keybind
|
||||||
|
bind - split-window -v # Split window vertical
|
||||||
|
bind _ split-window -h # Split window horizontal
|
||||||
|
bind > swap-pane -D # Swap current pane with the next one
|
||||||
|
bind < swap-pane -U # Swap current pane with the previous one
|
||||||
|
bind C-w select-pane -l # Go to last panel
|
||||||
|
bind h select-pane -L # Go to left panel
|
||||||
|
bind j select-pane -D # Go to down panel
|
||||||
|
bind k select-pane -U # Go to up panel
|
||||||
|
bind l select-pane -R # Go to right panel
|
||||||
|
bind -r H resize-pane -L 2 # Resize panel left
|
||||||
|
bind -r J resize-pane -D 2 # Resize panel down
|
||||||
|
bind -r K resize-pane -U 2 # Resize panel up
|
||||||
|
bind -r L resize-pane -R 2 # Resize panel right
|
||||||
|
bind -r C-h previous-window # Select previous window
|
||||||
|
bind -r C-l next-window # Select next window
|
||||||
|
bind Tab last-window # Move to last active window
|
||||||
|
bind C-c new-session # Keybind for a new session
|
||||||
|
bind C-f command-prompt -p find-session 'switch-client -t %%'
|
||||||
bind-key -n C-f copy-mode \; send-key ?
|
bind-key -n C-f copy-mode \; send-key ?
|
||||||
|
|
||||||
|
# Copying a output from panel the terminal to file ~/tmux.history
|
||||||
|
bind-key p command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -JS -32768 ; save-buffer %1 ; delete-buffer'
|
||||||
|
|
||||||
set -g history-limit 20000
|
set -g history-limit 20000
|
||||||
set-option -sg escape-time 0
|
set-option -sg escape-time 0
|
||||||
set -g base-index 1 # start windows numbering at 1
|
set -g base-index 1 # start windows numbering at 1
|
||||||
@ -23,26 +46,14 @@ set -g status-interval 10 # redraw status line every 10 seconds
|
|||||||
set -g monitor-activity on
|
set -g monitor-activity on
|
||||||
set -g visual-activity off
|
set -g visual-activity off
|
||||||
set -g visual-bell off
|
set -g visual-bell off
|
||||||
bind C-c new-session
|
|
||||||
bind C-f command-prompt -p find-session 'switch-client -t %%'
|
|
||||||
bind - split-window -v
|
|
||||||
bind _ split-window -h
|
|
||||||
bind > swap-pane -D # swap current pane with the next one
|
|
||||||
bind < swap-pane -U # swap current pane with the previous one
|
|
||||||
bind h select-pane -L
|
|
||||||
bind j select-pane -D
|
|
||||||
bind k select-pane -U
|
|
||||||
bind l select-pane -R
|
|
||||||
bind -r H resize-pane -L 2
|
|
||||||
bind -r J resize-pane -D 2
|
|
||||||
bind -r K resize-pane -U 3
|
|
||||||
bind -r L resize-pane -R 2
|
|
||||||
bind -r C-h previous-window # select previous window
|
|
||||||
bind -r C-l next-window # select next window
|
|
||||||
bind Tab last-window # move to last active window
|
|
||||||
|
|
||||||
# Source of example configuration
|
# Coloring of the panel
|
||||||
# https://arcolinux.com/everything-you-need-to-know-about-tmux-status-bar/
|
set -g pane-border-style fg=default
|
||||||
|
set -g pane-active-border-style "bg=default fg=color244"
|
||||||
|
|
||||||
|
# Status bar
|
||||||
|
## Source of example configuration
|
||||||
|
## https://arcolinux.com/everything-you-need-to-know-about-tmux-status-bar/
|
||||||
set-option -g status on
|
set-option -g status on
|
||||||
set-option -g status-interval 1
|
set-option -g status-interval 1
|
||||||
set-option -g status-position bottom
|
set-option -g status-position bottom
|
||||||
@ -52,5 +63,3 @@ set-option -g status-left-style default
|
|||||||
set-option -g status-right-length 140
|
set-option -g status-right-length 140
|
||||||
set-option -g status-right-style default
|
set-option -g status-right-style default
|
||||||
set-option -g status-right "%a %H:%M:%S %Y-%m-%d"
|
set-option -g status-right "%a %H:%M:%S %Y-%m-%d"
|
||||||
set -g pane-border-style fg=default
|
|
||||||
set -g pane-active-border-style "bg=default fg=color244"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user