Compare commits

..

2 Commits

Author SHA1 Message Date
Ray Elliott f7cee27291 add nvim-cmp 2021-09-05 17:52:28 +01:00
Ray Elliott 16266dada9 add lsp diagnostics color scheme 2021-09-05 17:48:05 +01:00
3 changed files with 45 additions and 11 deletions

View File

@ -73,7 +73,7 @@
ui_fg_error = ["#d70000", 196, "red"] ui_fg_error = ["#d70000", 196, "red"]
ui_fg_warning = ["#d75f00", 166, "yellow"] ui_fg_warning = ["#d75f00", 166, "yellow"]
ui_fg_question = ["#56acd7", 247, "darkgray"] ui_fg_question = ["#d7a100", 247, "darkgray"]
# Step 3: highlights # Step 3: highlights
highlights = [ highlights = [

View File

@ -91,7 +91,7 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
hi ErrorMsg ctermbg=NONE ctermfg=196 cterm=italic guibg=NONE guifg=#d70000 gui=italic hi ErrorMsg ctermbg=NONE ctermfg=196 cterm=italic guibg=NONE guifg=#d70000 gui=italic
hi ModeMsg ctermbg=NONE ctermfg=255 cterm=italic guibg=NONE guifg=#555555 gui=italic hi ModeMsg ctermbg=NONE ctermfg=255 cterm=italic guibg=NONE guifg=#555555 gui=italic
hi MoreMsg ctermbg=NONE ctermfg=255 cterm=italic guibg=NONE guifg=#555555 gui=italic hi MoreMsg ctermbg=NONE ctermfg=255 cterm=italic guibg=NONE guifg=#555555 gui=italic
hi Question ctermbg=NONE ctermfg=247 cterm=italic guibg=NONE guifg=#56acd7 gui=italic hi Question ctermbg=NONE ctermfg=247 cterm=italic guibg=NONE guifg=#d7a100 gui=italic
hi WarningMsg ctermbg=NONE ctermfg=166 cterm=italic guibg=NONE guifg=#d75f00 gui=italic hi WarningMsg ctermbg=NONE ctermfg=166 cterm=italic guibg=NONE guifg=#d75f00 gui=italic
hi CursorColumn ctermbg=250 ctermfg=NONE cterm=NONE guibg=#eeeeee guifg=NONE gui=NONE hi CursorColumn ctermbg=250 ctermfg=NONE cterm=NONE guibg=#eeeeee guifg=NONE gui=NONE
hi EndOfBuffer ctermbg=234 ctermfg=234 cterm=NONE guibg=#ffffff guifg=#ffffff gui=NONE hi EndOfBuffer ctermbg=234 ctermfg=234 cterm=NONE guibg=#ffffff guifg=#ffffff gui=NONE
@ -297,19 +297,14 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
hi link jsonValue String hi link jsonValue String
hi link jsonQuote Noise hi link jsonQuote Noise
hi link octobercmsSectionDelimiter Noise hi link octobercmsSectionDelimiter Noise
hi link CocErrorSign ErrorMsg hi link LspDiagnosticsDefaultError ErrorMsg
hi link CocWarningSign WarningMsg hi link LspDiagnosticsDefaultWarning WarningMsg
hi link CocInfoSign Question hi link LspDiagnosticsDefaultInformation Question
hi link CocHintSign Question hi link LspDiagnosticsDefaultHint Question
hi link CocHighlightText IncSearch
hi link CocUnderline Error
hi link LspErrorText ErrorMsg hi link LspErrorText ErrorMsg
hi link LspWarningText WarningMsg hi link LspWarningText WarningMsg
hi link LspInformationText Question hi link LspInformationText Question
hi link LspHintText Question hi link LspHintText Question
hi link ALEError CocUnderline
hi link ALEErrorSign ErrorMsg
hi link ALEErrorSign ErrorMsg
hi link mkdCodeStart Comment hi link mkdCodeStart Comment
hi link mkdListItem Conditional hi link mkdListItem Conditional
hi link netrwTreeBar Noise hi link netrwTreeBar Noise

View File

@ -50,6 +50,16 @@ let g:material_style = 'lighter'
" setings after plug#end " setings after plug#end
"}}} "}}}
" #nvim-cmp {{{
" https://github.com/hrsh7th/nvim-cmp/
" completion
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-path'
" Plug 'hrsh7th/cmp-nvim-ultisnips'
"}}}
" keeping " keeping
" #vim-hexokinase {{{ " #vim-hexokinase {{{
@ -480,6 +490,35 @@ end
EOF EOF
"}}} "}}}
" #cmp-nvim-ultisnips {{{
lua <<EOF
local cmp = require'cmp'
cmp.setup({
completion = {
keyword_length = 4
-- autocomplete = false
},
-- snippet = {
-- expand = function(args)
-- vim.fn["vsnip#anonymous"](args.body)
-- end,
-- },
mapping = {
['<C-n>'] = cmp.mapping.complete(),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
['<C-e>'] = cmp.mapping.abort(),
},
sources = {
{ name = 'buffer' },
{ name = 'nvim_lsp' },
{ name = 'path' },
--{ name = 'ultisnips' },
...
}
})
EOF
"}}}