From 354dad1d7eff597e33562ccc1b0cf77fca2dbf87 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 4 Oct 2024 05:51:53 +0200 Subject: Updated --- alacritty.yml | 2 +- shenanigans.sh | 1 + vimrc | 56 ++++++++++++++++++++++---------------------------------- 3 files changed, 24 insertions(+), 35 deletions(-) diff --git a/alacritty.yml b/alacritty.yml index bc7eb22..cfb0914 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -7,7 +7,7 @@ window: lines: 60 font: - size: 16 + size: 18 normal: family: Berkeley Mono bold: diff --git a/shenanigans.sh b/shenanigans.sh index e7977e9..f402c51 100755 --- a/shenanigans.sh +++ b/shenanigans.sh @@ -53,6 +53,7 @@ export PATH=/usr/local/go/bin:$PATH export PATH=$HOME/.local/bin/zls-x86_64-linux-0.13.0:$PATH # export PATH=$HOME/.local/bin/zig-linux-x86_64-0.13.0:$PATH export PATH=$HOME/.local/bin/zig-linux-x86_64-0.14.0-dev.1587+feaee2ba1:$PATH +export PATH=$HOME/.local/bin/nim-2.0.8/bin:$PATH # FZF settings. diff --git a/vimrc b/vimrc index a498b84..681244e 100644 --- a/vimrc +++ b/vimrc @@ -1,44 +1,32 @@ -set nocompatible -set number relativenumber autoindent -set ignorecase smartcase incsearch -set hidden nowrap nobackup noswapfile autoread -set wildmenu wildmode=list:longest,full laststatus=2 +colorscheme sorbet +set number relativenumber autoindent signcolumn=yes +set hidden nowrap nobackup noswapfile autoread updatetime=300 set encoding=utf8 spelllang=en_us set backspace=2 scrolloff=4 set shiftwidth=4 tabstop=4 -set path+=** gp=grep\ -irn -filetype plugin indent on -syntax enable +" https://github.com/junegunn/vim-plug +call plug#begin() +Plug 'tpope/vim-sensible' +Plug 'tpope/vim-commentary' +Plug 'tpope/vim-fugitive' +Plug 'jiangmiao/auto-pairs' +Plug 'junegunn/fzf' +Plug 'junegunn/fzf.vim' +Plug 'neoclide/coc.nvim', {'branch': 'release', 'do': 'npm install'} +call plug#end() nnoremap :bnext nnoremap :bprevious -nnoremap :buffers:buffer nnoremap :copen +nnoremap :GFiles +nnoremap :Buffers +nnoremap :Rg -" Personal tabs/spaces settings. -autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 -autocmd Filetype c,cpp,zig setlocal expandtab tabstop=4 shiftwidth=4 -autocmd Filetype lua,nix,html,xml,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 - -" Code commenting - https://stackoverflow.com/a/1676672. -augroup CodeCommenting - autocmd! - autocmd FileType c,cpp,go,zig,javascript let b:comment_leader = '// ' - autocmd FileType sh,ruby,python let b:comment_leader = '# ' - autocmd FileType conf,fstab let b:comment_leader = '# ' - autocmd FileType lua,sql let b:comment_leader = '-- ' - autocmd FileType vim let b:comment_leader = '" ' -augroup END -noremap cc :silent s/^/=escape(b:comment_leader,'\/')/:nohlsearch -noremap cu :silent s/^\(\s*\)\V=escape(b:comment_leader,'\/')//e:nohlsearch - -" FZF - fuzzy finder integration. -function! FZF() - let t=tempname() - silent execute '!fzf --preview=''cat {}'' --multi|awk ''{print $1":1:0"}'' > '.fnameescape(t) - execute 'cfile '.t|redraw! - call delete(t) -endfunction -nnoremap :call FZF() +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) -- cgit v1.2.3