add neovim configs to dotconfig

This commit is contained in:
m3philis
2025-03-17 20:55:10 +01:00
parent a10cdb4333
commit 9eadf45634
5 changed files with 5991 additions and 0 deletions

5
nvim/.netrwhist Normal file
View File

@@ -0,0 +1,5 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =3
let g:netrw_dirhist_1='/home/lis/aboutyou/dev/cloudformation/bitbucket.collins.kg/aws/misc-project-stacks/dev-gitea-stacks'
let g:netrw_dirhist_2='/home/lis/.config/termite'
let g:netrw_dirhist_3='/home/lis/dev/ansible/git.sysexit.com/deployment-base'

2867
nvim/autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

2812
nvim/autoload/plug.vim.old Normal file

File diff suppressed because it is too large Load Diff

95
nvim/colors/groovym.vim Normal file
View File

@@ -0,0 +1,95 @@
" local syntax file
" Maintainer: groover <groover@streik.no-ip.org>
" Last Change: Sat Jan 16 14:59:23 CET 2010
" see: so $VIMRUNTIME/syntax/hitest.vim
" Remove existing highlighting first
highlight clear
set background=dark
if exists("syntax_on")
syntax reset
endif
let colors_name = "groovym"
if(&t_Co == 256)
hi SpecialKey cterm=none ctermfg=45 ctermbg=none
hi NonText cterm=none ctermfg=233 ctermbg=none
hi Directory cterm=bold ctermfg=21 ctermbg=none
hi ErrorMsg cterm=bold ctermfg=196 ctermbg=none
hi IncSearch cterm=underline ctermfg=40 ctermbg=none
hi Search cterm=none ctermfg=232 ctermbg=40
hi MoreMsg cterm=bold ctermfg=245 ctermbg=none
hi ModeMsg cterm=bold ctermfg=255 ctermbg=none
hi LineNr cterm=none ctermfg=247 ctermbg=none
hi Question cterm=bold ctermfg=40 ctermbg=none
hi StatusLine cterm=bold ctermfg=255 ctermbg=239
hi StatusLineNC cterm=none ctermfg=232 ctermbg=239
hi VertSplit cterm=none ctermfg=239 ctermbg=239
hi Title cterm=bold ctermfg=45 ctermbg=none
hi Visual cterm=reverse ctermfg=none ctermbg=none
"hi VisualNOS
hi WarningMsg cterm=bold ctermfg=202 ctermbg=none
hi WildMenu cterm=underline ctermfg=40 ctermbg=none
hi Folded cterm=none ctermfg=250 ctermbg=none
hi FoldColumn cterm=none ctermfg=250 ctermbg=none
"hi DiffAdd
"hi DiffChange
"hi DiffDelete
"hi DiffText
"hi SignColumn
"hi SpellBad
"hi SpellCap
"hi SpellRare
"hi SpellLocal
hi Pmenu cterm=none ctermfg=239 ctermbg=none
hi PmenuSel cterm=bold ctermfg=45 ctermbg=none
hi PmenuSbar cterm=none ctermfg=239 ctermbg=239
hi PmenuThumb cterm=none ctermfg=232 ctermbg=239
hi TabLine cterm=underline ctermfg=239 ctermbg=none
hi TabLineSel cterm=bold ctermfg=255 ctermbg=none
hi TabLineFill cterm=underline ctermfg=239 ctermbg=none
hi CursorColumn cterm=none ctermfg=255 ctermbg=234
hi CursorLine cterm=none ctermfg=none ctermbg=237
" syntax highlighting
hi MatchParen cterm=none ctermfg=255 ctermbg=242
hi Comment cterm=none ctermfg=6 ctermbg=none
hi Constant cterm=bold ctermfg=24 ctermbg=none
hi Special cterm=bold ctermfg=172 ctermbg=none
hi Identifier cterm=bold ctermfg=252 ctermbg=none
hi Statement cterm=bold ctermfg=178 ctermbg=none
hi PreProc cterm=bold ctermfg=31 ctermbg=none
hi Type cterm=bold ctermfg=255 ctermbg=none
hi Underlined cterm=underline ctermfg=none ctermbg=none
hi Ignore cterm=none ctermfg=232 ctermbg=none
hi Error cterm=bold ctermfg=255 ctermbg=196
hi Todo cterm=bold ctermfg=232 ctermbg=226
hi String cterm=none ctermfg=125 ctermbg=none
hi Number cterm=bold ctermfg=255 ctermbg=none
hi Function cterm=bold ctermfg=255 ctermbg=none
hi Conditional cterm=bold ctermfg=214 ctermbg=none
hi Operator cterm=bold ctermfg=214 ctermbg=none
hi Keyword cterm=bold ctermfg=214 ctermbg=none
hi Delimiter cterm=bold ctermfg=255 ctermbg=none
hi Normal cterm=none ctermfg=none ctermbg=none
hi Cursor cterm=reverse ctermfg=none ctermbg=none
endif
" Python
hi link pythonBuiltin Identifier
hi link pythonStatement Keyword
hi link pythonPreCondit Keyword
hi link pythonException Type
hi link pythonSync PreProc
" PHP
hi link phpKeyword Keyword
hi link phpStatement Keyword
hi link phpVarSelector Keyword
" :so $VIMRUNTIME/syntax/hitest.vim
" vim: tw=0 ts=4 sw=4

212
nvim/init.vim Normal file
View File

@@ -0,0 +1,212 @@
call plug#begin()
Plug 'airblade/vim-gitgutter'
Plug 'dense-analysis/ale'
Plug 'deoplete-plugins/deoplete-jedi'
Plug 'deoplete-plugins/deoplete-go'
Plug 'joshdick/onedark.vim'
Plug 'junegunn/fzf'
Plug 'luochen1990/rainbow'
Plug 'preservim/nerdtree'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'vim-airline/vim-airline'
Plug 'xuyuanp/nerdtree-git-plugin'
call plug#end()
" selection - "old", "inclusive" or "exclusive"; how selecting text behaves
set selection=exclusive
" enable syntax highlighting by default
syntax enable
" background - "dark" or "light"; the background color brightness
set background=dark
" scrolloff - number of screen lines to show around the cursor
"set so=0
set scrolloff=10
" wrap - long lines wrap
set wrap " nowrap
" linebreak - wrap long lines at a character in 'breakat' (local to window)
set linebreak " nolbr
" breakat - which characters might cause a line break
set breakat=\ \ !@*-+;:,./?
" number - show the line number for each line (local to window)
set number " nonu
" undolevels - maximum number of changes that can be undone
set undolevels=1000
" backspace - specifies what <BS>, CTRL-W, etc. can do in Insert mode
set backspace=2
" showmatch - When inserting a bracket, briefly jump to its match
set showmatch " nosm
" matchtime - tenth of a second to show a match for 'showmatch'
set matchtime=5
" matchpairs - list of pairs that match for the "%" command (local to buffer)
set matchpairs=(:),{:},[:],<:>
" tabstop - number of spaces a <Tab> in the text stands for (local to buffer)
set tabstop=2
" shiftwidth - number of spaces used for each step of (auto)indent (local to buffer)
set shiftwidth=2
" smarttab - a <Tab> in an indent inserts 'shiftwidth' spaces
set smarttab " nosta
" softtabstop - if non-zero, number of spaces to insert for a <Tab> (local to buffer)
set softtabstop=2
" shiftround - round to 'shiftwidth' for "<<" and ">>"
set shiftround " nosr
" expandtab - expand <Tab> to spaces in Insert mode (local to buffer)
set expandtab " noet
" autoindent - automatically set the indent of a new line (local to buffer)
set autoindent " noai
" smartindent - do clever autoindenting (local to buffer)
set smartindent " nosi
" splitbelow - a new window is put below the current one
set splitbelow " nosb
" splitright - a new window is put right of the current one
set splitright " nospr
" showcmd - show (partial) command keys in the status line
set showcmd " nosc
" showmode - display the current mode in the status line
set noshowmode " nosmd
" ruler - show cursor position below each window
set ruler " noru
" history - how many command lines are remembered
set history=100
" listchars - which characters to list
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,space:.
" list - show characters defined in listchars
set list " nolist
" cursorline - show a marker on the current line
set cursorline
" colortheme settings
let $NVIM_TUI_ENABLE_TRUE_COLOR = 1
let g:onedark_termcolors = 256
let g:onedark_terminal_italics = 0
" colorscheme - set default color theme
colorscheme onedark
hi Normal guibg=NONE ctermbg=NONE
" airline settings
let g:airline_theme = 'onedark'
let g:airline_powerline_fonts = 1
set encoding=utf-8
"
" Configuration gitgutter
"
let g:gitgutter_enabled = 1
let g:gitgutter_highlight_lines = 0
hi SignColumn cterm=none ctermbg=none
set updatetime=100
" Use deoplete.
let g:deoplete#enable_at_startup = 1
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
" deoplete-go settings
let g:deoplete#sources#go#gocode_binary = $GOPATH.'/bin/gocode'
let g:deoplete#sources#go#sort_class = ['package', 'func', 'type', 'var', 'const']
"
" deoplete-jedi settings
"
let g:deoplete#sources#jedi#ignore_errors = ['E501']
" Use goimports for Fmt
"
let g:go_fmt_command = "goimports"
"
" filetype (common for plugins)
"
filetype plugin on
"
" vim-go configuration
"
let g:go_gocode_autobuild = 1
let g:go_metalinter_deadline = "20s"
let g:go_autodetect_gopath = 0
"
" vim-python configuration
"
let g:pymode_lint_ignore = ["E501", "W",]
let g:python_highlight_all = 1
"
" ale configuration
"
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\}
let g:ale_fix_on_save = 1
let g:airline#extensions#ale#enabled = 1
let g:ale_lint_on_text_changed = 'never'
"
" vim-rainbow settings
"
let g:rainbow_active = 1
"
" gopass configuration
"
au BufNewFile,BufRead /dev/shm/gopass.* setlocal noswapfile nobackup noundofile
"
" NERDtree settings
"
" autocmd vimenter * NERDTree
map - :NERDTreeToggle<CR>
let g:NERDGitStatusTreeIndicatorMapCustom = {
\ "Modified" : "✹",
\ "Staged" : "✚",
\ "Untracked" : "✭",
\ "Renamed" : "➜",
\ "Unmerged" : "═",
\ "Deleted" : "✖",
\ "Dirty" : "✗",
\ "Clean" : "✔︎",
\ 'Ignored' : '☒',
\ "Unknown" : "?"
\ }