try to migrate to nix

This commit is contained in:
kp2pml30 2025-01-11 20:48:22 +04:00
parent f2f4ead62f
commit 94da1ce936
26 changed files with 830 additions and 181 deletions

View file

@ -0,0 +1,75 @@
set termguicolors
set nowrap
set nu rnu
set list
set listchars=tab:┆\ ,space,nbsp:␣
set tabstop=2
set shiftwidth=2
set noexpandtab
nmap <F2> :w<CR>
imap <F2> <C-O>:w<CR>
noremap <expr> <Home> (col('.') == matchend(getline('.'), '^\s*')+1 ? '0' : '^')
imap <Home> <C-o><Home>
vnoremap > >gv
vnoremap < <gv
let s:i = 1
while s:i < 10
execute printf('nmap <Space>%i %i<C-w><C-w>', s:i, s:i)
let s:i += 1
endwhile
set clipboard=unnamedplus
colorscheme tokyonight-night
if exists(':GuiRenderLigatures')
GuiRenderLigatures 1
endif
if exists(':GuiFont')
GuiFont FiraCode\ Nerd\ Font
endif
if exists(':NERDTreeToggle')
map <F3> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
endif
if exists(':BufferGoto')
let s:i = 1
while s:i < 10
execute printf('nmap <Leader>%i :BufferGoto %i<CR>', s:i, s:i)
let s:i += 1
endwhile
nmap <C-Right> :BufferNext<CR>
nmap <C-Left> :BufferPrevious<CR>
nmap <C-q> :BufferClose<CR>
endif
if exists(':DetectIndent')
autocmd BufRead * DetectIndent
endif
if exists(':CocInfo')
inoremap <silent><expr> <c-space> coc#refresh()
inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#pum#confirm() : "\<Tab>"
nmap <silent> <Space>ld <Plug>(coc-definition)
nmap <silent> <Space>lt <Plug>(coc-type-definition)
nmap <silent> <Space>li <Plug>(coc-implementation)
nmap <silent> <Space>lr <Plug>(coc-references)
endif
if exists(':LeaderGuide')
nnoremap <silent> <leader> :<c-u>LeaderGuide '\'<CR>
nnoremap <silent> <Space> :<c-u>LeaderGuide '<Space>'<CR>
let g:smap = get(g:, 'smap', {})
" let g:smap['<Space>'] = get(g:smap, '<Space>', {})
" let g:smap['<Space>'].l = 'language'
let g:smap.l = {'name' : 'language'}
call leaderGuide#register_prefix_descriptions("<Space>", "g:smap")
endif

View file

@ -3,6 +3,7 @@ call plug#begin()
Plug 'kyazdani42/nvim-web-devicons'
Plug 'romgrk/barbar.nvim'
Plug 'jiangmiao/auto-pairs'
Plug 'RaafatTurki/hex.nvim'
if executable('node')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
endif
@ -73,3 +74,4 @@ let g:smap.l = {'name' : 'language'}
call leaderGuide#register_prefix_descriptions("<Space>", "g:smap")
lua require('feline').setup()
lua require('hex').setup()