set termguicolors filetype plugin indent on set tabstop=4 softtabstop=4 shiftwidth=4 set expandtab smarttab set autoindent set incsearch ignorecase smartcase hlsearch set encoding=utf-8 set textwidth=0 set number set hidden set title set noshowmode set noruler set noshowcmd set nobackup set nowritebackup set updatetime=300 set signcolumn=yes let mapleader = "\" " Tab-trigger completion inoremap \ coc#pum#visible() ? coc#pum#next(1) : \ CheckBackspace() ? "\" : \ coc#refresh() inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" inoremap coc#pum#visible() ? coc#pum#confirm() : \ "\u\\=coc#on_enter()\" function! CheckBackspace() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction inoremap coc#refresh() nmap [g (coc-diagnostic-prev) nmap ]g (coc-diagnostic-next) nmap gd (coc-definition) nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) nnoremap K :call ShowDocumentation() function! ShowDocumentation() if CocAction('hasProvider', 'hover') call CocActionAsync('doHover') else call feedkeys('K', 'in') endif endfunction autocmd CursorHold * silent call CocActionAsync('highlight') " Telescope nnoremap ff Telescope find_files nnoremap fg Telescope live_grep nnoremap fb Telescope buffers nnoremap fh help_tags lua require('init') color catppuccin