From 3f21d6fa82b23d77f10701cfe579e81c9e93ec99 Mon Sep 17 00:00:00 2001 From: hanez Date: Sun, 10 Aug 2025 00:34:35 +0200 Subject: [PATCH] new vim configuration 0.1... :) --- .gitignore | 2 +- .vim/coc-settings.json | 19 +++++++++++++++++++ .vim/plugged/.gitkeep | 0 .vimrc | 10 +++++----- 4 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 .vim/coc-settings.json create mode 100644 .vim/plugged/.gitkeep diff --git a/.gitignore b/.gitignore index b09133c0..504132b7 100644 --- a/.gitignore +++ b/.gitignore @@ -49,7 +49,7 @@ !.Xresources !.vim !.vim/** -.vim/plugged/*/.git +.vim/plugged/* .vim/.netrwhist !.xinitrc !.zoha.toml diff --git a/.vim/coc-settings.json b/.vim/coc-settings.json new file mode 100644 index 00000000..233b1c7d --- /dev/null +++ b/.vim/coc-settings.json @@ -0,0 +1,19 @@ +languageserver": { + "ccls": { + "command": "ccls", + "args": ["--log-file=/tmp/ccls.log", "-v=1"], + "filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"], + "rootPatterns": [".ccls", "compile_commands.json"], + "initializationOptions": { + "cache": { + "directory": "/tmp/ccls" + }, + "client": { + "snippetSupport": true + } + } + } + }, + "clangd.path": "/usr/bin/clangd" +} + diff --git a/.vim/plugged/.gitkeep b/.vim/plugged/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/.vimrc b/.vimrc index 93493dd0..960ac9c4 100644 --- a/.vimrc +++ b/.vimrc @@ -3,21 +3,21 @@ call plug#begin() " List your plugins here Plug 'tpope/vim-sensible' Plug 'neoclide/coc.nvim', {'branch': 'release'} +Plug 'bluz71/vim-moonfly-colors', { 'as': 'moonfly' } +Plug 'flazz/vim-colorschemes' call plug#end() -" Execute pathogen -"execute pathogen#infect() +" feral gentooish grb256 jellygrass kalt last256 matrix +colorscheme feral " Load NERDTree plugin only if opening vim without a file "autocmd VimEnter * NERDTree "autocmd StdinReadPre * let s:std_in=1 "autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif - " Open NERDTree with Ctrl+n / Toggle " map :NERDTreeToggle - " close vim if the only window left open is a NERDTree -autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif +"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif " Remember position in file if has("autocmd")