" Set colorscheme and enable highlighting colorscheme catppuccin set termguicolors syntax on " Set tab stuff set tabstop=2 set shiftwidth=2 set expandtab set softtabstop=2 " Enable line numbers set number set relativenumber set cursorline " Make cursorlinenum a different color augroup colorAutoCmds autocmd! autocmd ColorScheme * highlight CursorLineNr cterm=bold guifg=#cba6f7 augroup END " Searching stuff set ignorecase set smartcase set hlsearch set incsearch " asyncomplete navigation inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" let g:vsnip_integ_debug = 1 let g:asyncomplete_auto_popup = 1 " Snippet expansion imap vsnip#expandable() ? '(vsnip-expand)' : '' smap vsnip#expandable() ? '(vsnip-expand)' : '' " Snippet placeholder navigation imap vsnip#available(1) ? '(vsnip-expand-or-jump)' : '' smap vsnip#available(1) ? '(vsnip-expand-or-jump)' : '' " Set different cursor shapes depending on mode let &t_SI = "\e[6 q" let &t_EI = "\e[2 q" augroup cursorCmds au! autocmd VimEnter * silent !echo -ne "\e[2 q" augroup END set omnifunc=lsp#complete if executable("nixd") autocmd User lsp_setup call lsp#register_server({ \ 'name': 'nixd', \ 'cmd': ['nixd'], \ 'allowlist': ['nix'], \ }) endif if executable("lua-language-server") autocmd User lsp_setup call lsp#register_server({ \ 'name': 'lua_ls', \ 'cmd': ['lua-language-server'], \ 'allowlist': ['lua'], \ }) endif