" 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 set ignorecase set smartcase set hlsearch set incsearch " 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 " Completion menu "inoremap pumvisible() ? "\" : "\" "inoremap pumvisible() ? "\" : "\" "inoremap pumvisible() ? asyncomplete#close_popup() : "\" set omnifunc=ale#completion#OmniFunc nnoremap K ALEHover nnoremap gd ALEGoToDefinition nnoremap gr ALEFindReferences nnoremap ca ALECodeAc let g:ale_completion_enabled = 1 autocmd User lsp_setup call lsp#register_server({ \ 'name': 'nixd', \ 'cmd': ['nixd'], \ 'allowlist': ['nix'], \ }) let g:ale_linters = { \ 'nix': ['nixd'], \} let g:ale_fixers = { \ 'nix': ['alejandra'], \} let g:ale_fix_on_save = 1