Nix-Configs/configs/programs/neovim/init.vim

35 lines
817 B
VimL
Raw Normal View History

2022-12-18 15:15:15 +00:00
:colo laserwave
:let g:airline_theme="fruit_punch"
:let g:EditorConfig_exclude_patterns = ['scp://.*']
:let g:instant_username = "Emi"
lua << EOF
require'colorizer'.setup()
require('hop').setup()
2023-03-09 13:30:47 +00:00
require('nvim-surround').setup()
2022-12-18 15:15:15 +00:00
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true, -- false will disable the whole extension
}
}
EOF
" https://github.com/neoclide/coc.nvim
" Used in keybindings
function! CheckBackspace() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
function! ShowDocumentation()
if CocAction('hasProvider', 'hover')
call CocActionAsync('doHover')
else
call feedkeys('K', 'in')
endif
2022-12-18 18:49:19 +00:00
endfunction
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"