diff --git a/init.vim b/init.vim index 9e83e09..d71b2d3 100644 --- a/init.vim +++ b/init.vim @@ -46,7 +46,7 @@ Plug 'nvim-telescope/telescope.nvim' Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' } " improve sort performance Plug 'pwntester/octo.nvim' -"Plug 'github/copilot.vim' +Plug 'github/copilot.vim' " {{{ CocPlugins Plug 'neoclide/coc-json', { 'do': 'yarn install --frozen-lockfile' } @@ -131,13 +131,18 @@ filetype plugin indent on " required " THEME{{{ colorscheme solarized -set background=dark +"set background=dark " Use light theme if whole shell is in light mode let themeenv=$THEME_SWITCHER if themeenv=='light' set background=light endif + + +hi CocFloating ctermbg=248 ctermfg=238 guibg=#b3b3b3 +hi CocMenuSel ctermbg=250 ctermfg=239 guibg=#c9c9c9 + " }}} " SETTINGS{{{ @@ -281,7 +286,27 @@ require'nvim-treesitter.configs'.setup { -- }, }, }, - }, + move = { + enable = true, + set_jumps = true, -- whether to set jumps in the jumplist + goto_next_start = { + ["]m"] = "@function.outer", + ["]]"] = { query = "@class.outer", desc = "Next class start" }, + }, + goto_next_end = { + ["]M"] = "@function.outer", + ["]["] = "@class.outer", + }, + goto_previous_start = { + ["[m"] = "@function.outer", + ["[["] = "@class.outer", + }, + goto_previous_end = { + ["[M"] = "@function.outer", + ["[]"] = "@class.outer", + }, + }, + }, } EOF " }}} @@ -308,6 +333,7 @@ let g:nv_main_directory = '~/notes' " ALE {{{ let g:airline#extensions#ale#enabled = 1 +let g:ale_writegood_options = '--no-eprime' "}}} let vim_tags_ctags_binary='~/bin/phpctags'" @@ -513,4 +539,10 @@ let g:doge_javascript_settings = { let g:doge_doc_standard_python = 'google' let g:doge_mapping_comment_jump_forward = '' +" Copilot settings +" accept on enter, if no suggestion is selected fallback to default +imap