Last active
March 16, 2024 02:47
-
-
Save WilliamAnimate/10d1c4f440dce16e578cb26fa70c6c4e to your computer and use it in GitHub Desktop.
my crappy neovim config. i don't use this anymore.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
" Code Completion | |
inoremap <expr> <Tab> pumvisible() ? "\<C-y>" : "\<Tab>" | |
" | |
" General UI | |
set nocompatible | |
set tabstop=4 | |
set shiftwidth=4 | |
set number | |
set laststatus=3 | |
set ttyfast | |
set noswapfile | |
set wildmode=longest,list | |
set autoindent | |
highlight CocErrorFloat ctermfg=Red guifg=#ff0000 " code errors highight red | |
highlight CocErrorFloat guifg=#ff0000 ctermfg=Red " code errors highight red | |
autocmd VimLeave * !echo -ne "\e[6 q" | |
" uncomment if running linux (i use arch btw) | |
highlight StatusLine ctermfg=black ctermbg=white " for :split, because laststatus doesn't cooperate | |
highlight StatusLineNC ctermfg=black ctermbg=white | |
highlight LineNr ctermfg=gray | |
autocmd FileType fern set laststatus=0 | |
autocmd WinEnter * if &filetype != 'fern' | set laststatus=1 | else | set laststatus=0 | endif | |
" | |
" plugin garbage | |
call plug#begin('~/.local/share/nvim/site/plugged') | |
Plug 'lambdalisue/fern.vim' " files (invoked with :F (see below)) | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
call plug#end() | |
"autocmd FileType fern setlocal nonumber " remove the numbers column in fern, this may be a stupid idea for some but this is MY config and i can do whateverthehelliwanttodowithitandidontlikethenumbersinfern | |
" | |
" omg code ing | |
function! ToggleFern() | |
execute "Fern . -reveal=" . expand("%") . " -drawer -width=20 -toggle" | |
endfunction | |
function! ChangeFocus() | |
wincmd w | |
endfunction | |
command! F call ToggleFern() | |
command! C call ChangeFocus() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment