diff options
author | lonkaars <l.leblansch@gmail.com> | 2020-11-14 20:03:00 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2020-11-14 20:03:00 +0100 |
commit | ad30ab956b95a35a08d84ae170e8b3adbc6b5544 (patch) | |
tree | 8406bfe8cace0ce9f9c550ee5661609fd08dd7b6 /.config/nvim | |
parent | 47bbee4a98ad6317032f3c72886db797f9b703f3 (diff) |
moved to bliss :tada:
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/bliss-lightline.vim | 25 | ||||
-rw-r--r-- | .config/nvim/coc-settings.json | 13 | ||||
-rw-r--r-- | .config/nvim/init.vim | 24 |
3 files changed, 52 insertions, 10 deletions
diff --git a/.config/nvim/bliss-lightline.vim b/.config/nvim/bliss-lightline.vim new file mode 100644 index 0000000..aac8433 --- /dev/null +++ b/.config/nvim/bliss-lightline.vim @@ -0,0 +1,25 @@ +let s:bg = [ '#121213', 'NONE' ] +let s:fg = [ '#fdf9f7', 'NONE' ] +let s:mode = [ '#222222', 'NONE' ] +let s:faint = [ '#393b3b', 'NONE' ] +let s:none = [ 'NONE', 'NONE' ] +let s:test = [ '#ff00ff', 'NONE' ] + +let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} +let s:p.normal.left = [ [ s:fg, s:mode ], [ s:faint, s:bg ] ] +let s:p.normal.right = [ [ s:faint, s:bg ] ] +let s:p.normal.middle = [ [ s:none, s:none ] ] +let s:p.normal.error = [ [ s:test, s:test ] ] +let s:p.normal.warning = [ [ s:test, s:test ] ] +let s:p.inactive.left = copy(s:p.normal.left) +let s:p.inactive.right = copy(s:p.normal.right) +let s:p.inactive.middle = copy(s:p.normal.middle) +let s:p.insert.left = copy(s:p.normal.left) +let s:p.replace.left = copy(s:p.insert.left) +let s:p.visual.left = copy(s:p.insert.left) +let s:p.tabline.left = copy(s:p.normal.middle) +let s:p.tabline.tabsel = [ [ s:fg, s:faint ] ] +let s:p.tabline.middle = copy(s:p.normal.middle) +let s:p.tabline.right = copy(s:p.normal.middle) + +let g:lightline#colorscheme#bliss#palette = lightline#colorscheme#flatten(s:p) diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json index 0dcf343..b98f17d 100644 --- a/.config/nvim/coc-settings.json +++ b/.config/nvim/coc-settings.json @@ -4,6 +4,19 @@ "command": "clangd", "rootPatterns": ["compile_flags.txt", "compile_commands.json"], "filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"] + }, + "dart": { + "command": "dart", + "args": [ + "/opt/dart-sdk/bin/snapshots/analysis_server.dart.snapshot", + "--lsp", + "--client-id", + "vim", + "--client-version", + "coc.nvim" + ], + "filetypes": ["dart"], + "trace.server": "verbose" } } } diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 873f0fa..b07548e 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -29,12 +29,12 @@ hi! link CocFloating SneakScope cabbrev help tab help autocmd BufNewFile,BufRead *.jdscn set syntax=json -" if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) -" echo "Downloading junegunn/vim-plug to manage plugins..." -" silent !mkdir -p ~/.config/nvim/autoload/ -" silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim -" autocmd VimEnter * PlugInstall -" endif +if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) + echo "Downloading junegunn/vim-plug to manage plugins..." + silent !mkdir -p ~/.config/nvim/autoload/ + silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim + autocmd VimEnter * PlugInstall +endif " plugged call plug#begin('~/.config/nvim/plugged') @@ -63,6 +63,9 @@ Plug 'lervag/vimtex' Plug 'pangloss/vim-javascript' Plug 'hail2u/vim-css3-syntax' Plug 'octol/vim-cpp-enhanced-highlight' +Plug 'dart-lang/dart-vim-plugin' +Plug 'bartlomiejdanek/vim-dart' +Plug 'natebosch/dartlang-snippets' " 'vim=ide' Plug 'neoclide/coc.nvim', {'branch': 'release'} @@ -81,6 +84,7 @@ Plug 'scheakur/vim-scheakur' Plug 'mkarmona/materialbox' Plug 'morhetz/gruvbox' Plug 'co1ncidence/mountaineer' +Plug 'co1ncidence/bliss' call plug#end() " keybinds @@ -167,7 +171,7 @@ map <leader>.v :tabnew ~/.config/nvim/init.vim<cr> map <leader>.c :tabnew ~/.config/picom.conf<cr> map <leader>.z :tabnew ~/.zshrc<cr> map <leader>.i :tabnew ~/.config/i3/config<cr> -map <leader>.p :tabnew ~/.config/polybar/config.ini<cr> +map <leader>.p :tabnew ~/.config/polybar/config<cr> map <leader>.x :tabnew ~/.config/xb.rc<cr> let g:which_key_map['.'] = { \ 'name': '+config', @@ -183,9 +187,9 @@ cnoreabbrev W w cnoreabbrev sudow w !sudo tee % " colorscheme thingers -colorscheme mountaineer +colorscheme bliss let g:lightline = { - \ 'colorscheme': 'mountaineer', + \ 'colorscheme': 'bliss', \ 'mode_map': { \ 'n' : 'norm', \ 'i' : 'ins', @@ -215,7 +219,7 @@ let g:lightline = { \ 'right': [ ] \ }, \ } -source $HOME/.config/nvim/mountaineer-lightline.vim +source $HOME/.config/nvim/bliss-lightline.vim hi! SignColumn guibg=NONE ctermbg=NONE " vimtex config |