diff options
author | Joe <rrbo@proton.me> | 2023-09-01 17:07:55 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-09-01 17:07:55 +0200 |
commit | 3635045eeec150b18df7368f29b6ab554d962273 (patch) | |
tree | 0b1a0c9c4b657471204784d94e48d774d64ac863 /.config | |
parent | up (diff) | |
download | dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.tar.gz dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.tar.bz2 dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.tar.xz dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.tar.zst dotfiles-bsd-3635045eeec150b18df7368f29b6ab554d962273.zip |
hey
Diffstat (limited to '')
45 files changed, 157 insertions, 2 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..7cd3e97 --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,32 @@ +-- init.lua +-- ======================== +-- ===== =============== +-- ====== ================ +-- ====== ================ +-- ====== ==== ==== == +-- ====== === == = = +-- ====== === = == = +-- = === === = == ==== +-- = === === = == = = +-- == ===== ==== == +-- ======================== + +confdir = os.getenv('XDG_CONFIG_HOME') + +vim.cmd('set runtimepath^=/home/r_bousset/.config/nvim runtimepath+=/home/jozan/.config/nvim/after') +vim.cmd('let &packpath = &runtimepath') +require('plug') +vim.cmd('source ' .. confdir .. '/nvim/settings.vim') +vim.cmd('source ' .. confdir .. '/nvim/bindings.vim') +vim.cmd('source ' .. confdir .. '/nvim/sidebars.vim') +vim.cmd('source ' .. confdir .. '/nvim/langs.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/airline.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/asyncomplete.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/floaterm.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/nerd-commenter.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/org.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/quickscope.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/rainbow.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/startify.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/signify.vim') +vim.cmd('source ' .. confdir .. '/nvim/plug-config/vim-lsp.vim') diff --git a/.config/nvim/lua/plug.lua b/.config/nvim/lua/plug.lua new file mode 100644 index 0000000..a2fe882 --- /dev/null +++ b/.config/nvim/lua/plug.lua @@ -0,0 +1,46 @@ +local Plug = vim.fn['plug#'] + +vim.call('plug#begin', os.getenv("XDG_DATA_HOME") .. '/nvim/plugged') + +Plug('ap/vim-css-color') +Plug('brglng/vim-sidebar-manager') +Plug('dag/vim-fish') +Plug('jackguo380/vim-lsp-cxx-highlight') +Plug('jceb/vim-orgmode') +Plug('jiangmiao/auto-pairs') +Plug('junegunn/fzf') +Plug('junegunn/fzf.vim') +Plug('liuchengxu/vim-which-key') +Plug('luochen1990/rainbow') +Plug('mbbill/undotree') +Plug('mg979/vim-visual-multi') +Plug('mhinz/vim-signify') +Plug('mhinz/vim-startify') +Plug('morhetz/gruvbox') +Plug('prabirshrestha/async.vim') +Plug('prabirshrestha/asyncomplete.vim') +Plug('keremc/asyncomplete-clang.vim') +Plug('prabirshrestha/vim-lsp') +Plug('preservim/tagbar') +Plug('preservim/nerdcommenter') +Plug('preservim/nerdtree') +Plug('ryanoasis/vim-devicons') +Plug('sainnhe/gruvbox-material') +Plug('tpope/vim-dispatch') +Plug('tpope/vim-fugitive') +Plug('tpope/vim-speeddating') +Plug('tpope/vim-surround') +Plug('unblevable/quick-scope') +Plug('vifm/vifm.vim') +Plug('vim-airline/vim-airline') +Plug('vim-airline/vim-airline-themes') +Plug('vim-scripts/grep.vim') +Plug('voldikss/fzf-floaterm') +Plug('voldikss/vim-floaterm') +Plug('chrisbra/csv.vim') +Plug('nvim-telescope/telescope.nvim') +Plug('nvim-lua/plenary.nvim') +Plug('ThePrimeagen/harpoon') +Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'}) + +vim.call('plug#end') diff --git a/.config/nvim/old_init.vim b/.config/nvim/old_init.vim new file mode 100644 index 0000000..4dc2140 --- /dev/null +++ b/.config/nvim/old_init.vim @@ -0,0 +1,36 @@ +" init.vim +" ======================== +" ===== =============== +" ====== ================ +" ====== ================ +" ====== ==== ==== == +" ====== === == = = +" ====== === = == = +" = === === = == ==== +" = === === = == = = +" == ===== ==== == +" ======================== + +set runtimepath^=/home/r_bousset/.config/nvim runtimepath+=/home/jozan/.config/nvim/after +" let &packpath = &runtimepath +if ! filereadable(system('echo -n "$XDG_DATA_HOME/nvim/autoload/plug.vim"')) + echo "Downloading junegunn/vim-plug to manage plugins..." + silent !mkdir -p $XDG_DATA_HOME/nvim/autoload/ + silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $XDG_DATA_HOME/nvim/autoload/plug.vim + autocmd VimEnter * PlugInstall +endif +source $XDG_CONFIG_HOME/nvim/plug.vim +source $XDG_CONFIG_HOME/nvim/settings.vim +source $XDG_CONFIG_HOME/nvim/bindings.vim +source $XDG_CONFIG_HOME/nvim/sidebars.vim +source $XDG_CONFIG_HOME/nvim/langs.vim +source $XDG_CONFIG_HOME/nvim/plug-config/airline.vim +source $XDG_CONFIG_HOME/nvim/plug-config/asyncomplete.vim +source $XDG_CONFIG_HOME/nvim/plug-config/floaterm.vim +source $XDG_CONFIG_HOME/nvim/plug-config/nerd-commenter.vim +source $XDG_CONFIG_HOME/nvim/plug-config/org.vim +source $XDG_CONFIG_HOME/nvim/plug-config/quickscope.vim +source $XDG_CONFIG_HOME/nvim/plug-config/rainbow.vim +source $XDG_CONFIG_HOME/nvim/plug-config/startify.vim +source $XDG_CONFIG_HOME/nvim/plug-config/signify.vim +source $XDG_CONFIG_HOME/nvim/plug-config/vim-lsp.vim diff --git a/.config/nvim/plug.vim b/.config/nvim/plug.vim index 9e611b1..a9dccc5 100644 --- a/.config/nvim/plug.vim +++ b/.config/nvim/plug.vim @@ -31,8 +31,6 @@ Plug 'unblevable/quick-scope' Plug 'vifm/vifm.vim' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' -"Plug 'itchyny/lightline.vim' -"Plug 'shinchu/lightline-gruvbox.vim' Plug 'vim-scripts/grep.vim' Plug 'voldikss/fzf-floaterm' Plug 'voldikss/vim-floaterm' @@ -40,4 +38,5 @@ Plug 'chrisbra/csv.vim' Plug 'nvim-telescope/telescope.nvim' Plug 'nvim-lua/plenary.nvim' Plug 'ThePrimeagen/harpoon' +Plug 'nvim-treesitter/nvim-treesitter' {'do': ':TSUpdate'} call plug#end() diff --git a/.config/nvim/plugged/async.vim b/.config/nvim/plugged/async.vim new file mode 160000 +Subproject 2082d13bb195f3203d41a308b89417426a7deca diff --git a/.config/nvim/plugged/asyncomplete-clang.vim b/.config/nvim/plugged/asyncomplete-clang.vim new file mode 160000 +Subproject dcb2cbbe09a62f7a5aef41750de513f967e8d08 diff --git a/.config/nvim/plugged/asyncomplete.vim b/.config/nvim/plugged/asyncomplete.vim new file mode 160000 +Subproject b3fbac1930be2c9cdf956f4a0346c1dd0e9abd4 diff --git a/.config/nvim/plugged/auto-pairs b/.config/nvim/plugged/auto-pairs new file mode 160000 +Subproject 39f06b873a8449af8ff6a3eee716d3da14d63a7 diff --git a/.config/nvim/plugged/csv.vim b/.config/nvim/plugged/csv.vim new file mode 160000 +Subproject 15ff93edf5b26c466affbb356e0696b7d6a3b49 diff --git a/.config/nvim/plugged/fzf b/.config/nvim/plugged/fzf new file mode 160000 +Subproject f50a7058d6734b8213fb8bbe6a293b2ffd485ee diff --git a/.config/nvim/plugged/fzf-floaterm b/.config/nvim/plugged/fzf-floaterm new file mode 160000 +Subproject 66a30db85a7adf573af9b8a4f3f8c4ce0a2d665 diff --git a/.config/nvim/plugged/fzf.vim b/.config/nvim/plugged/fzf.vim new file mode 160000 +Subproject 811f34b70b60b4df2997e3ba8cd109e7d06d683 diff --git a/.config/nvim/plugged/grep.vim b/.config/nvim/plugged/grep.vim new file mode 160000 +Subproject 852ddb0c6590bbc41c508d7f5d2fc17112492de diff --git a/.config/nvim/plugged/gruvbox b/.config/nvim/plugged/gruvbox new file mode 160000 +Subproject f1ecde848f0cdba877acb0c740320568252cc48 diff --git a/.config/nvim/plugged/gruvbox-material b/.config/nvim/plugged/gruvbox-material new file mode 160000 +Subproject b5f8c6a6c1cda630c53b061b765068a0898d47a diff --git a/.config/nvim/plugged/harpoon b/.config/nvim/plugged/harpoon new file mode 160000 +Subproject 21f4c47c6803d64ddb934a5b314dcb1b8e7365d diff --git a/.config/nvim/plugged/nerdcommenter b/.config/nvim/plugged/nerdcommenter new file mode 160000 +Subproject d2e21d417f6c788b11ae3b90d7ac478930dead3 diff --git a/.config/nvim/plugged/nerdtree b/.config/nvim/plugged/nerdtree new file mode 160000 +Subproject c46e12a886b4a6618a9e834c90f624595256711 diff --git a/.config/nvim/plugged/nvim-treesitter b/.config/nvim/plugged/nvim-treesitter new file mode 160000 +Subproject 691d73287a94e8ed82a383df82aabfe77ab4bca diff --git a/.config/nvim/plugged/plenary.nvim b/.config/nvim/plugged/plenary.nvim new file mode 160000 +Subproject 0dbe561ae023f02c2fb772b879e905055b939ce diff --git a/.config/nvim/plugged/quick-scope b/.config/nvim/plugged/quick-scope new file mode 160000 +Subproject 256d81e391a22eeb53791ff62ce65f870418fa7 diff --git a/.config/nvim/plugged/rainbow b/.config/nvim/plugged/rainbow new file mode 160000 +Subproject 61f719aebe0dc5c3048330c50db72cfee1afdd3 diff --git a/.config/nvim/plugged/tagbar b/.config/nvim/plugged/tagbar new file mode 160000 +Subproject 402e3e117fc7b47e43dbb87c51064daae3bc3bf diff --git a/.config/nvim/plugged/telescope.nvim b/.config/nvim/plugged/telescope.nvim new file mode 160000 +Subproject 2c1ed33a6f6f2db3b69f5421f6b405eda1b0774 diff --git a/.config/nvim/plugged/undotree b/.config/nvim/plugged/undotree new file mode 160000 +Subproject 0e11ba7325efbbb3f3bebe06213afa3e7ec7513 diff --git a/.config/nvim/plugged/vifm.vim b/.config/nvim/plugged/vifm.vim new file mode 160000 +Subproject 8b671c02525b6772ba9a8a38d17d0f06bfcb06b diff --git a/.config/nvim/plugged/vim-airline b/.config/nvim/plugged/vim-airline new file mode 160000 +Subproject e6bb8427dc2d2dc3583ed1bf5ff6a9682c854d3 diff --git a/.config/nvim/plugged/vim-airline-themes b/.config/nvim/plugged/vim-airline-themes new file mode 160000 +Subproject dd81554c2231e438f6d0e8056ea38fd0e80ac02 diff --git a/.config/nvim/plugged/vim-css-color b/.config/nvim/plugged/vim-css-color new file mode 160000 +Subproject 6cc65734bc7105d9677ca54e2255fcbc953ba6b diff --git a/.config/nvim/plugged/vim-devicons b/.config/nvim/plugged/vim-devicons new file mode 160000 +Subproject 71f239af28b7214eebb60d4ea5bd040291fb7e3 diff --git a/.config/nvim/plugged/vim-dispatch b/.config/nvim/plugged/vim-dispatch new file mode 160000 +Subproject 6cc2691576f97d43f8751664d1a1a908b99927e diff --git a/.config/nvim/plugged/vim-fish b/.config/nvim/plugged/vim-fish new file mode 160000 +Subproject 50b95cbbcd09c046121367d49039710e9dc9c15 diff --git a/.config/nvim/plugged/vim-floaterm b/.config/nvim/plugged/vim-floaterm new file mode 160000 +Subproject 3bf0beb10a5a6f7a878195c93711515f2b7bdc9 diff --git a/.config/nvim/plugged/vim-fugitive b/.config/nvim/plugged/vim-fugitive new file mode 160000 +Subproject 572c8510123cbde02e8a1dafcd376c98e1e13f4 diff --git a/.config/nvim/plugged/vim-lsp b/.config/nvim/plugged/vim-lsp new file mode 160000 +Subproject 7dd6b72d0c3ecbee08cdcee7e42d520f52c9620 diff --git a/.config/nvim/plugged/vim-lsp-cxx-highlight b/.config/nvim/plugged/vim-lsp-cxx-highlight new file mode 160000 +Subproject 0e7476ff41cd65e55f92fdbc7326335ec33b59b diff --git a/.config/nvim/plugged/vim-orgmode b/.config/nvim/plugged/vim-orgmode new file mode 160000 +Subproject b27feaba9a316e8307cfd7a56797b378fb52df8 diff --git a/.config/nvim/plugged/vim-sidebar-manager b/.config/nvim/plugged/vim-sidebar-manager new file mode 160000 +Subproject 27f02ba3c4f4e42a6c15bdbd7939bdc3b90c4d8 diff --git a/.config/nvim/plugged/vim-signify b/.config/nvim/plugged/vim-signify new file mode 160000 +Subproject 7d538b77a5a8806e344b057f8846f6d0c035efa diff --git a/.config/nvim/plugged/vim-speeddating b/.config/nvim/plugged/vim-speeddating new file mode 160000 +Subproject 5a36fd29df63ea3f65562bd2bb837be48a5ec90 diff --git a/.config/nvim/plugged/vim-startify b/.config/nvim/plugged/vim-startify new file mode 160000 +Subproject 81e36c352a8deea54df5ec1e2f4348685569bed diff --git a/.config/nvim/plugged/vim-surround b/.config/nvim/plugged/vim-surround new file mode 160000 +Subproject 3d188ed2113431cf8dac77be61b842acb64433d diff --git a/.config/nvim/plugged/vim-visual-multi b/.config/nvim/plugged/vim-visual-multi new file mode 160000 +Subproject 724bd53adfbaf32e129b001658b45d4c5c29ca1 diff --git a/.config/nvim/plugged/vim-which-key b/.config/nvim/plugged/vim-which-key new file mode 160000 +Subproject 0b901c91ed2f18c745d34cf827e03e9d552ca34 diff --git a/.config/nvim/sidebars.lua b/.config/nvim/sidebars.lua new file mode 100644 index 0000000..efdddb2 --- /dev/null +++ b/.config/nvim/sidebars.lua @@ -0,0 +1,42 @@ +vim.g.NERDTreeWinPos = 'left' +vim.g.NERDTreeWinSize = 30 +vim.g.NERDTreeQuitOnOpen = 0 +vim.g.tagbar_left = 1 +vim.g.tagbar_width = 30 +vim.g.tagbar_autoclose = 0 +vim.g.tagbar_autofocus = 1 +vim.g.tagbar_sort = 0 +vim.g.undotree_SetFocusWhenToggle = 1 +vim.g.undotree_SplitWidth = 30 + +vim.g.sidebars = { + 'nerdtree': { + 'position': 'left', + 'check_win': {nr -> getwinvar(nr, '&filetype') ==# 'nerdtree'}, + 'open': 'NERDTree', + 'close': 'NERDTreeClose' + }, + 'tagbar': { + 'position': 'left', + 'check_win': {nr -> bufname(winbufnr(nr)) =~ '__Tagbar__'}, + 'open': 'TagbarOpen', + 'close': 'TagbarClose' + }, + 'undotree': { + 'position': 'left', + 'check_win': {nr -> getwinvar(nr, '&filetype') ==# 'undotree'}, + 'open': 'UndotreeShow', + 'close': 'UndotreeHide' + } + } + + + + + + + + + + + |