initial commit
This commit is contained in:
parent
c0c365a8b2
commit
7bb3bdeda1
2812
.vim/autoload/plug.vim
Normal file
2812
.vim/autoload/plug.vim
Normal file
File diff suppressed because it is too large
Load diff
38
.vim/config.vim
Normal file
38
.vim/config.vim
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
"Nerd Commenter
|
||||||
|
let g:NERDCreateDefaultMappings = 1
|
||||||
|
let g:NERDSpaceDelims = 1
|
||||||
|
let g:NERDCompactSexyComs = 1
|
||||||
|
let g:NERDDefaultAlign = 'left'
|
||||||
|
let g:NERDAltDelims_java = 1
|
||||||
|
let g:NERDCustomDelimiters = { 'css': { 'left': '/**', 'right': '*/' } }
|
||||||
|
let g:NERDCommentEmptyLines = 1
|
||||||
|
let g:NERDTrimTrailingWhitespace = 1
|
||||||
|
let g:NERDToggleCheckAllLines = 1
|
||||||
|
|
||||||
|
"Nerdtree
|
||||||
|
let NERDTreeQuitOnOpen=1
|
||||||
|
if empty(argv())
|
||||||
|
autocmd VimEnter * NERDTree
|
||||||
|
endif
|
||||||
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists ('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
|
||||||
|
nnoremap <leader>n :NERDTreeFocus<CR>
|
||||||
|
nnoremap <C-n> :NERDTree<CR>
|
||||||
|
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||||
|
nnoremap <C-f> :NERDTreeFind<CR>
|
||||||
|
|
||||||
|
" Indentline
|
||||||
|
let g:indentLine_enabled = 1
|
||||||
|
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
|
||||||
|
|
||||||
|
" Airline
|
||||||
|
let g:airline_theme = 'onedark'
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
|
||||||
|
" Floaterm
|
||||||
|
let g:floaterm_keymap_new = '<F5>'
|
||||||
|
let g:floaterm_keymap_next = '<F6>'
|
||||||
|
let g:floaterm_keymap_prev = '<S-F6>'
|
||||||
|
let g:floaterm_keymap_toggle = '<F8>'
|
||||||
|
let g:floaterm_keymap_kill = '<S-F5>'
|
4
.vim/ftdetect/hypr.vim
Normal file
4
.vim/ftdetect/hypr.vim
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
augroup hypr_ftdetect
|
||||||
|
au!
|
||||||
|
au BufRead,BufNewFile *hypr/*.conf,*hypr/*/*.conf set ft=hypr
|
||||||
|
augroup END
|
1
.vim/ftplugin/hypr.vim
Normal file
1
.vim/ftplugin/hypr.vim
Normal file
|
@ -0,0 +1 @@
|
||||||
|
setlocal commentstring=#\ %s
|
3
.vim/ftplugin/json.vim
Normal file
3
.vim/ftplugin/json.vim
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal softtabstop=4
|
||||||
|
setlocal noexpandtab
|
3
.vim/ftplugin/lua.vim
Normal file
3
.vim/ftplugin/lua.vim
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
setlocal shiftwidth=2
|
||||||
|
setlocal softtabstop=2
|
||||||
|
setlocal noexpandtab
|
3
.vim/ftplugin/vim.vim
Normal file
3
.vim/ftplugin/vim.vim
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal softtabstop=4
|
||||||
|
setlocal noexpandtab
|
12
.vim/keymaps.vim
Normal file
12
.vim/keymaps.vim
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
noremap <esc><esc> :nohls<CR>
|
||||||
|
nnoremap <A-j> :m .+1<CR>==
|
||||||
|
nnoremap <A-k> :m .-2<CR>==
|
||||||
|
inoremap <A-j> <Esc>:m .+1<CR>==gi
|
||||||
|
inoremap <A-k> <Esc>:m .-2<CR>==gi
|
||||||
|
inoremap <C-A> <C-O>O
|
||||||
|
inoremap <C-E> <C-O>$
|
||||||
|
vnoremap <A-j> :m '>+1<CR>gv=gv
|
||||||
|
vnoremap <A-k> :m '<-2<CR>gv=gv
|
||||||
|
nnoremap <F9> :set invnumber<CR>
|
||||||
|
nnoremap <F10> :!%:p<CR>
|
||||||
|
nnoremap <leader>t :tabnew<CR>
|
0
.vim/minimal.vim
Normal file
0
.vim/minimal.vim
Normal file
1
.vim/plugged/auto-pairs
Submodule
1
.vim/plugged/auto-pairs
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 39f06b873a8449af8ff6a3eee716d3da14d63a76
|
1
.vim/plugged/dracula
Submodule
1
.vim/plugged/dracula
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 6495b4ff40479ec7705addb4ea800ec308026648
|
1
.vim/plugged/nerdcommenter
Submodule
1
.vim/plugged/nerdcommenter
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e361a44230860d616f799a337bc58f5218ab6e9c
|
1
.vim/plugged/nerdtree
Submodule
1
.vim/plugged/nerdtree
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit bc606c43e2d8ef0987d6d3d1ec8c17360a2e29d5
|
1
.vim/plugged/onedark.vim
Submodule
1
.vim/plugged/onedark.vim
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 57b77747694ea5676c3ca0eeaf9567dc499730c0
|
1
.vim/plugged/tokyonight-vim
Submodule
1
.vim/plugged/tokyonight-vim
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 4e82e0f0452a6ce8f387828ec71013015515035a
|
1
.vim/plugged/vim-airline
Submodule
1
.vim/plugged/vim-airline
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit ff7352e4bff02eb600a136b6fd741404f3195371
|
1
.vim/plugged/vim-devicons
Submodule
1
.vim/plugged/vim-devicons
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 71f239af28b7214eebb60d4ea5bd040291fb7e33
|
1
.vim/plugged/vim-floaterm
Submodule
1
.vim/plugged/vim-floaterm
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 3f01a623376957437f9376327637491b74719e38
|
1
.vim/plugged/vim-kitty
Submodule
1
.vim/plugged/vim-kitty
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 891475671feebc4bf0f29f0a0987067913a81686
|
1
.vim/plugged/vim-nightfly-colors
Submodule
1
.vim/plugged/vim-nightfly-colors
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 56fe47bd16272d9644fd9946a2596fa2c3905c35
|
1
.vim/plugged/vim-plug
Submodule
1
.vim/plugged/vim-plug
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit ca0ae0a8b1bd6380caba2d8be43a2a19baf7dbe2
|
1
.vim/plugged/vim-polyglot
Submodule
1
.vim/plugged/vim-polyglot
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit bc8a81d3592dab86334f27d1d43c080ebf680d42
|
1
.vim/plugged/vim-smoothie
Submodule
1
.vim/plugged/vim-smoothie
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit df1e324e9f3395c630c1c523d0555a01d2eb1b7e
|
19
.vim/plugins.vim
Normal file
19
.vim/plugins.vim
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
call plug#begin()
|
||||||
|
Plug 'junegunn/vim-plug'
|
||||||
|
Plug 'scrooloose/nerdtree'
|
||||||
|
Plug 'preservim/nerdcommenter'
|
||||||
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
Plug 'voldikss/vim-floaterm'
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
Plug 'psliwka/vim-smoothie'
|
||||||
|
"UI
|
||||||
|
Plug 'vim-airline/vim-airline'
|
||||||
|
Plug 'ryanoasis/vim-devicons'
|
||||||
|
"etc
|
||||||
|
Plug 'fladson/vim-kitty'
|
||||||
|
"Themes
|
||||||
|
Plug 'joshdick/onedark.vim'
|
||||||
|
Plug 'dracula/vim', { 'as': 'dracula' }
|
||||||
|
Plug 'bluz71/vim-nightfly-colors'
|
||||||
|
Plug 'ghifarit53/tokyonight-vim'
|
||||||
|
call plug#end()
|
66
.vim/syntax/hypr.vim
Normal file
66
.vim/syntax/hypr.vim
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
" Vim syntax file
|
||||||
|
" Language: Hyprland config file
|
||||||
|
" Maintainer: Gabriel Carneiro
|
||||||
|
" Latest Revision: 26 October 2022
|
||||||
|
|
||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Strings
|
||||||
|
syn match Path "\(\.\|\~\)\/.*" display
|
||||||
|
syn match Symbol "=" skipwhite display nextgroup=Value
|
||||||
|
syn match Str "[a-zA-Z _ .-\"\'?]\+$" contained display
|
||||||
|
syn match Num "\d\+\(\.\d\+\)\?" contained display
|
||||||
|
syn match Num "e[+-]\d\+" contained display
|
||||||
|
syn match Num "[+-]\d\+\(\.\d\+\)\?" contained display
|
||||||
|
syn match ShellVar "\$\w\+" contained display
|
||||||
|
syn keyword Logical on off true false no yes contained display
|
||||||
|
syn region HyprSimpleString keepend start='[^ \t]' end='$\|#' contained contains=HyprVar,HyprComment
|
||||||
|
syn match HyprQuotedString '"[^"]\+"' contained
|
||||||
|
syn cluster HyprString contains=HyprSimpleString,HyprQuotedString
|
||||||
|
|
||||||
|
" Settings
|
||||||
|
syn keyword Block input general animations decoration gestures misc dwindle master
|
||||||
|
syn region OptBlock start="{" end="}" fold transparent display contains=HyprVar,Value,OptBlock,Num,Str,HyprComment,Disp,ShellVar
|
||||||
|
syn match HyprVar '\s[a-z _ .]\+ ' skipwhite contained display nextgroup=Symbol
|
||||||
|
syn region Value start="=" end="$\|," transparent display contains=Str,Num,Logical,ShellVar,Path,HyprComment,Disp,Dispatchers
|
||||||
|
syn match Disp '[a-zA-Z][a-zA-Z0-9 _.]\+,' contained display contains=Num
|
||||||
|
syn match N ', [a-zA-Z][a-zA-Z0-9 _.]\+,' contained skipwhite
|
||||||
|
|
||||||
|
" Commands
|
||||||
|
syn region Command start='^[a-zA-Z][a-zA-Z_. -]\+ =' end='$' skipwhite transparent contains=HyprKeyModifier,ShellVar,HyprConfigCommand,Dispatchers,HyprComment,Str,Disp,Path,Num
|
||||||
|
syn keyword HyprKeyModifier SUPER SHIFT CTRL ALT Mod1 Mod2 Mod3 Mod4 Mod5 Mode_switch nextgroup=N
|
||||||
|
syn keyword HyprConfigCommand bind bindm monitor source windowrule nextgroup=Symbol contained
|
||||||
|
|
||||||
|
" Comments
|
||||||
|
syn keyword HyprTodo contained TODO FIXME XXX NOTE
|
||||||
|
syn match HyprComment "\(#\|\/\/\).*$" contains=HyprTodo
|
||||||
|
|
||||||
|
|
||||||
|
highlight link Dispatchers Special
|
||||||
|
highlight link Windowrules Special
|
||||||
|
highlight link Disp Special
|
||||||
|
|
||||||
|
highlight link Num Constant
|
||||||
|
highlight link NumRule Constant
|
||||||
|
|
||||||
|
highlight link HyprVar Identifier
|
||||||
|
highlight link HyprConfigCommand Identifier
|
||||||
|
|
||||||
|
highlight link HyprKeyModifier Constant
|
||||||
|
highlight link KeyBind Constant
|
||||||
|
highlight link Logical Constant
|
||||||
|
|
||||||
|
highlight link Str String
|
||||||
|
highlight link BindCmd String
|
||||||
|
highlight link Path String
|
||||||
|
highlight link HyprSimpleString String
|
||||||
|
highlight link HyprQuotedString String
|
||||||
|
|
||||||
|
highlight link Block Define
|
||||||
|
|
||||||
|
highlight link ShellVar Define
|
||||||
|
|
||||||
|
highlight link HyprTodo Todo
|
||||||
|
highlight link HyprComment Comment
|
16
.vim/themes/dracula.vim
Normal file
16
.vim/themes/dracula.vim
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
" Dracula theme
|
||||||
|
let g:dracula_bold = 1
|
||||||
|
let g:dracula_italic = 1
|
||||||
|
let g:dracula_underline = 1
|
||||||
|
let g:dracula_undercurl = 1
|
||||||
|
let g:dracula_full_special_attrs_support = 1
|
||||||
|
let g:dracula_high_contrast_diff = 0
|
||||||
|
let g:dracula_inverse = 1
|
||||||
|
let g:dracula_colorterm = 0
|
||||||
|
|
||||||
|
augroup dracula_customization
|
||||||
|
au!
|
||||||
|
autocmd ColorScheme dracula hi CursorLine cterm=underline term=underline
|
||||||
|
autocmd ColorScheme dracula hi Comment gui=italic cterm=italic term=italic
|
||||||
|
augroup END
|
||||||
|
colorscheme dracula
|
14
.vim/themes/nightfly.vim
Normal file
14
.vim/themes/nightfly.vim
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
let g:nightflyCursorColor = v:true
|
||||||
|
"let g:nightflyItalics = v:true
|
||||||
|
let g:nightflyTerminalColors = v:true
|
||||||
|
let g:nightflyTransparent = v:true
|
||||||
|
let g:nightflyUndercurls = v:true
|
||||||
|
let g:nightflyUnderlineMatchParen = v:true
|
||||||
|
let g:nightflyWinSeparator = 2
|
||||||
|
|
||||||
|
augroup CustomHighlight
|
||||||
|
autocmd!
|
||||||
|
autocmd ColorScheme nightfly highlight Function guifg=#82aaff gui=italic
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
colorscheme nightfly
|
19
.vim/themes/onedark.vim
Normal file
19
.vim/themes/onedark.vim
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
let g:onedark_terminal_italics=1
|
||||||
|
let g:onedark_termcolors=256
|
||||||
|
|
||||||
|
if (has("autocmd") && !has("gui_running"))
|
||||||
|
augroup colorset
|
||||||
|
autocmd!
|
||||||
|
let s:white = { "gui": "#dde7f7", "cterm": "145", "cterm16": "7" }
|
||||||
|
let s:green = { "gui": "#50fa7b", "cterm": "83", "cterm16": "10" }
|
||||||
|
let s:purple = { "gui": "#bd93f9", "cterm": "141", "cterm16": "4" }
|
||||||
|
let s:red = { "gui": "#ff5555", "cterm": "203", "cterm16": "1" }
|
||||||
|
let s:pale_yellow = { "gui": "#ffffa5", "cterm": "229", "cterm16": "11" }
|
||||||
|
autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white })
|
||||||
|
autocmd ColorScheme * call onedark#set_highlight("Constant", { "fg": s:green })
|
||||||
|
autocmd ColorScheme * call onedark#set_highlight("String", { "fg": s:pale_yellow })
|
||||||
|
autocmd ColorScheme * call onedark#set_highlight("Identifier", { "fg": s:green, "gui": "italic", "cterm": "italic" })
|
||||||
|
augroup END
|
||||||
|
endif
|
||||||
|
|
||||||
|
colorscheme onedark
|
9
.vim/themes/tokyonight.vim
Normal file
9
.vim/themes/tokyonight.vim
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
let g:tokyonight_style = 'night'
|
||||||
|
let g:tokyonight_enable_italic = 1
|
||||||
|
let g:tokyonight_transparent_background = 0
|
||||||
|
let g:tokyonight_menu_selection_background = 'green'
|
||||||
|
let g:tokyonight_cursor = 'green'
|
||||||
|
let g:tokyonight_current_word = 'underline'
|
||||||
|
let g:airline_theme = "tokyonight"
|
||||||
|
|
||||||
|
colorscheme tokyonight
|
42
.vimrc
Normal file
42
.vimrc
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
set nocompatible
|
||||||
|
|
||||||
|
"Function to source only if file exists {
|
||||||
|
function! SourceIfExist(file)
|
||||||
|
if filereadable(expand(a:file))
|
||||||
|
exe 'source' a:file
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
" }
|
||||||
|
call SourceIfExist("/etc/vimrc")
|
||||||
|
"Vim Plug Plugins
|
||||||
|
call SourceIfExist("~/.vim/plugins.vim")
|
||||||
|
|
||||||
|
let mapleader = " "
|
||||||
|
|
||||||
|
" Plugin configurations
|
||||||
|
call SourceIfExist("~/.vim/config.vim")
|
||||||
|
|
||||||
|
syntax on
|
||||||
|
filetype on
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
|
set mouse=v
|
||||||
|
set clipboard=unnamedplus
|
||||||
|
set autoindent
|
||||||
|
set incsearch
|
||||||
|
set hlsearch
|
||||||
|
set showmatch
|
||||||
|
set t_RV=
|
||||||
|
set tabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
set termguicolors
|
||||||
|
"set is highlight ai ic scs
|
||||||
|
|
||||||
|
" Theme
|
||||||
|
call SourceIfExist("~/.vim/themes/onedark.vim")
|
||||||
|
" Import Keymaps
|
||||||
|
call SourceIfExist("~/.vim/keymaps.vim")
|
||||||
|
|
||||||
|
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
|
autocmd FileType lua setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
|
|
Loading…
Reference in a new issue