aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/files/shell/.tmux.conf28
-rw-r--r--src/config/files/shell/.vimrc10
-rw-r--r--src/config/tasks/main.yaml26
3 files changed, 48 insertions, 16 deletions
diff --git a/src/config/files/shell/.tmux.conf b/src/config/files/shell/.tmux.conf
index 2896f30..0fa8ec6 100644
--- a/src/config/files/shell/.tmux.conf
+++ b/src/config/files/shell/.tmux.conf
@@ -53,8 +53,34 @@ set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-option -g word-separators "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~"
+set-option -g renumber-windows on
+
+bind '"' split-window -c "#{pane_current_path}"
+bind % split-window -h -c "#{pane_current_path}"
+unbind -T copy-mode-vi MouseDragEnd1Pane
+# Linux only
+# Linux only
+set -g mouse on
+bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
+bind -n WheelDownPane select-pane -t= \; send-keys -M
+bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
+bind -T copy-mode-vi C-WheelUpPane send-keys -X halfpage-up
+bind -T copy-mode-vi C-WheelDownPane send-keys -X halfpage-down
+bind -T copy-mode-emacs C-WheelUpPane send-keys -X halfpage-up
+bind -T copy-mode-emacs C-WheelDownPane send-keys -X halfpage-down
+
+# To copy, left click and drag to highlight text in yellow,
+# once you release left click yellow text will disappear and will automatically be available in clibboard
+# # Use vim keybindings in copy mode
+setw -g mode-keys vi
+# Update default binding of `Enter` to also use copy-pipe
+unbind -T copy-mode-vi Enter
+bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c"
+bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
+set -g default-terminal "xterm-256color"
+set -ga terminal-overrides ",xterm-256color:Tc"
+
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
run '~/.tmux/plugins/tpm/tpm'
-
diff --git a/src/config/files/shell/.vimrc b/src/config/files/shell/.vimrc
index 5a4e376..6c998ad 100644
--- a/src/config/files/shell/.vimrc
+++ b/src/config/files/shell/.vimrc
@@ -10,12 +10,13 @@ call vundle#begin()
set bs=2
set ts=8
-set tw=80
+"set tw=80
set t_Co=256
set number
set ruler
set shiftwidth=2 smarttab
set expandtab
+set autochdir
@@ -29,6 +30,10 @@ map <F1> :NERDTreeTabsToggle<CR>
noremap <C-f> :Files <CR>
xnoremap <C-c> :s/^/\/\/ <CR>
nmap <C-p> <Plug>MarkdownPreviewToggle
+inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
+inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
+inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() : "\<CR>"
+map <C-l> :Lines<CR>
syntax on
@@ -44,11 +49,12 @@ Bundle 'jistr/vim-nerdtree-tabs'
Plugin 'scrooloose/nerdtree'
Plugin 'sainnhe/gruvbox-material'
Plugin 'sheerun/vim-polyglot'
-Plugin 'valloric/youcompleteme'
+" Plugin 'valloric/youcompleteme'
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
Plugin 'iamcco/markdown-preview.nvim'
Plugin 'tpope/vim-obsession'
+Plugin 'neoclide/coc.nvim'
" All of your Plugins must be added before the following line
let g:airline_theme='gruvbox_material'
diff --git a/src/config/tasks/main.yaml b/src/config/tasks/main.yaml
index 00f83b4..2eda1c5 100644
--- a/src/config/tasks/main.yaml
+++ b/src/config/tasks/main.yaml
@@ -7,31 +7,31 @@
- name: Setup oh-my-zsh
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.shell: 'sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended'
ignore_errors: true
- name: Setup zsh-autosuggestions
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.shell: 'git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions'
ignore_errors: true
- name: Setup zsh-syntax-highlighting
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.shell: 'git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting'
ignore_errors: true
- name: Setup powerlevel10k
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.shell: 'git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k'
ignore_errors: true
- name: Setup p10k, tmux and zshrc
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.copy:
src: shell/{{ item }}
dest: "/home/{{ config.username }}"
@@ -43,7 +43,7 @@
- name: Setup vimrc and vim bundles
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.copy:
src: shell/{{ item }}
dest: "/home/{{ config.username }}"
@@ -53,13 +53,13 @@
- name: Setup vundle
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.shell: 'git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim && vim +PluginInstall +qall'
ignore_errors: true
- name: Install autoload in right directory
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.copy:
src: "/home/{{ config.username }}/.vim/bundle/gruvbox-material/autoload/gruvbox_material.vim"
dest: "/home/{{ config.username }}/.vim/autoload/"
@@ -67,7 +67,7 @@
- name: Install colors in right directory
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.copy:
src: "/home/{{ config.username }}/.vim/bundle/gruvbox-material/colors/gruvbox-material.vim"
dest: "/home/{{ config.username }}/.vim/colors/"
@@ -75,7 +75,7 @@
- name: Setup vim/neovim directories
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.copy:
src: "{{ item }}"
dest: "/home/{{ config.username }}/.config"
@@ -87,7 +87,7 @@
- name: Install Dotfiles (Wayland)
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.copy:
src: "{{ item }}"
dest: "/home/{{ config.username }}/.config/"
@@ -97,7 +97,7 @@
- name: Install Dotfiles (Xorg)
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.copy:
src: "{{ item }}"
dest: "/home/{{ config.username }}/.config/"
@@ -107,7 +107,7 @@
- name: Install Dotfiles (All)
become: true
- become_user: {{ config.username }}
+ become_user: "{{ config.username }}"
ansible.builtin.copy:
src: "{{ item }}"
dest: "/home/{{ config.username }}/.config/"