Install treesitter and update tmuxinator config

This commit is contained in:
Christian Nieves
2022-06-16 17:27:54 +00:00
parent 03223f3c2f
commit 453fa67d0b
7 changed files with 62 additions and 17 deletions

View File

@ -0,0 +1,20 @@
require('nvim-treesitter.configs').setup {
-- A list of parser names, or "all"
ensure_installed = { "c", "lua", "vim", "java", "kotlin"},
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
highlight = {
-- `false` will disable the whole extension
enable = true,
disable = {"java"},
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
}

View File

@ -68,18 +68,16 @@ set -g message-command-style bg=brightblack,fg=cyan
set -g status-style fg=white,bg=black set -g status-style fg=white,bg=black
set -g status-left '#{?pane_synchronized, ¤ ,}#{?window_zoomed_flag, ↕ ,}' set -g status-left '#{?pane_synchronized, ¤ ,}#{?window_zoomed_flag, ↕ ,}'
set -g status-right '#H'
set -g status-right "#{cpu_bg_color}#{cpu_fg_color} CPU:#{cpu_percentage} #{fg=black}$right_alt_sep#{ram_fg_color}#{ram_bg_color} RAM:#{ram_percentage} #{ram_bg_color} #[fg=black]$right_sep#[fg=default]#[bg=default] #H" set -g status-right "#{cpu_bg_color}#{cpu_fg_color} CPU:#{cpu_percentage} #{fg=black}$right_alt_sep#{ram_fg_color}#{ram_bg_color} RAM:#{ram_percentage} #{ram_bg_color} #[fg=black]$right_sep#[fg=default]#[bg=default] #H"
set -g status-right-length 55 set -g status-right-length 55
set -g pane-border-style fg=brightblack,bg=black set -g pane-border-style fg=brightblack,bg=black
set -g pane-active-border-style fg=colour104,bg=black set -g pane-active-border-style fg=colour104,bg=black
set-window-option -g window-status-style fg=colour104,bg=default set-window-option -g window-status-style fg=colour104,bg=default
set-window-option -g window-status-current-style fg=colour147,bg=default set-window-option -g window-status-current-style fg=colour147,bg=default
set-window-option -g window-status-activity-style bg=default,fg=yellow set-window-option -g window-status-activity-style bg=default,fg=yellow
set-window-option -g window-status-separator "#[fg=colour104]#[bg=default]$left_alt_sep" set-window-option -g window-status-separator " #[fg=colour104]#[bg=default]$left_alt_sep "
# Custom styling, http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ # Custom styling, http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/

View File

@ -2,25 +2,27 @@
name: dev name: dev
windows: windows:
- main: - gmscore:
layout: 02a8,363x89,0,0[363x74,0,0,14,363x14,0,75{181x14,0,75,15,181x14,182,75,17}] layout: 02a8,363x89,0,0[363x74,0,0,14,363x14,0,75{181x14,0,75,15,181x14,182,75,17}]
panes: panes:
- main: - main:
- cd ~/ - hgd gmscore
- vim -S ~/.sessions/gmscore.vim
- other: - other:
- cd ~/ - hgd gmscore
- other2: - other2:
- cd ~/ - hgd gmscore
- secondary: - experimental:
layout: 02a8,363x89,0,0[363x74,0,0,14,363x14,0,75{181x14,0,75,15,181x14,182,75,17}] layout: 02a8,363x89,0,0[363x74,0,0,14,363x14,0,75{181x14,0,75,15,181x14,182,75,17}]
panes: panes:
- main: - main:
- cd ~/ - hgd experimental
- vim -S ~/.sessions/experimental.vim
- other: - other:
- cd ~/ - hgd experimental
- other2: - other2:
- cd ~/ - hgd experimental
- notes: - notes:
layout: 02a8,363x89,0,0[363x74,0,0,14,363x14,0,75{181x14,0,75,15,181x14,182,75,17}] layout: 02a8,363x89,0,0[363x74,0,0,14,363x14,0,75{181x14,0,75,15,181x14,182,75,17}]
panes: panes:
@ -34,3 +36,13 @@ windows:
- other2: - other2:
- hgd notes - hgd notes
- cd ../company/users/cnieves/ - cd ../company/users/cnieves/
- vim:
layout: 02a8,363x89,0,0[363x74,0,0,14,363x14,0,75{181x14,0,75,15,181x14,182,75,17}]
panes:
- main:
- cd ~/.vim/prefs
- vim -S ~/.sessions/vim.vim
- other:
- cd ~/.vim/prefs
- other2:
- cd ~/.vim/prefs

View File

@ -14,6 +14,8 @@ Plug 'onsails/lspkind.nvim'
" required only for diagnostics " required only for diagnostics
Plug 'folke/trouble.nvim' Plug 'folke/trouble.nvim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" UI EXTENSIONS " UI EXTENSIONS
Plug 'ntpeters/vim-better-whitespace' "auto-set tab/space size Plug 'ntpeters/vim-better-whitespace' "auto-set tab/space size
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
@ -21,7 +23,7 @@ Plug 'vim-airline/vim-airline' " ...
Plug 'nathanaelkane/vim-indent-guides' Plug 'nathanaelkane/vim-indent-guides'
Plug 'Konfekt/vim-scratchpad' Plug 'Konfekt/vim-scratchpad'
Plug 'guns/xterm-color-table.vim' Plug 'guns/xterm-color-table.vim'
" Plug 'kyazdani42/nvim-web-devicons' Plug 'kyazdani42/nvim-web-devicons'
" Plug 'ryanoasis/vim-devicons' " Plug 'ryanoasis/vim-devicons'
" INTEGRATION " INTEGRATION

View File

@ -60,16 +60,17 @@ set scrolloff=3 " Minumum lines to keep above and below cursor
" makes sure that when opening, files are normal, i.e. not folded. " makes sure that when opening, files are normal, i.e. not folded.
set nofoldenable set nofoldenable
set foldmethod=syntax
let g:clipboard = #{ let g:clipboard = #{
\ name: 'xsel', \ name: 'xsel',
\ copy: { \ copy: {
\ '+': ['xclip', '--nodetach', '-i', '-b'], \ '+': ['xsel', '--nodetach', '-i', '-b'],
\ '*': ['xclip', '--nodetach', '-i', '-p'], \ '*': ['xsel', '--nodetach', '-i', '-p'],
\ }, \ },
\ paste: { \ paste: {
\ '+': ['xclip', '-o', '-b'], \ '+': ['xsel', '-o', '-b'],
\ '*': ['xclip', '-o', '-p'], \ '*': ['xsel', '-o', '-p'],
\ }, \ },
\ cache_enabled: 1, \ cache_enabled: 1,
\ } \ }
@ -79,7 +80,6 @@ set updatetime=100
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
source ~/.vim/prefs/plugins.vim source ~/.vim/prefs/plugins.vim
source ~/.vim/prefs/init.vim
if filereadable(expand("~/.vimrc.local")) if filereadable(expand("~/.vimrc.local"))
source ~/.vim/prefs/google.vim source ~/.vim/prefs/google.vim
endif endif
@ -96,6 +96,18 @@ call plug#begin('~/.vim/plugged')
" source ~/.vim/prefs/ycm.vim " source ~/.vim/prefs/ycm.vim
call plug#end() " required call plug#end() " required
" Require CiderLSP and Diagnostics modules
" IMPORTANT: Must come after plugins are loaded
lua << EOF
-- CiderLSP
vim.opt.completeopt = { "menu", "menuone", "noselect" }
require 'lspconfig'
require("lsp")
require("diagnostics")
require("treesitter")
EOF
source ~/.vim/prefs/cmp.vim source ~/.vim/prefs/cmp.vim
source ~/.vim/prefs/google_comments.vim source ~/.vim/prefs/google_comments.vim
" source ~/.vim/prefs/ale.vim " source ~/.vim/prefs/ale.vim

View File

@ -2,6 +2,7 @@
# Google Specific # Google Specific
# --------------- # ---------------
# For running crow against a remote X server # For running crow against a remote X server
xhost +
export PATH=$PATH:/google/src/head/depot/google3/experimental/users/cnieves/util export PATH=$PATH:/google/src/head/depot/google3/experimental/users/cnieves/util
export XAUTHORITY=~/.Xauthority export XAUTHORITY=~/.Xauthority
export GOROOT=/usr/lib/google-golang export GOROOT=/usr/lib/google-golang