Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help - Mac OS M2 - No Popups #842

Open
adoreparler opened this issue Jun 25, 2023 · 1 comment
Open

Need Help - Mac OS M2 - No Popups #842

adoreparler opened this issue Jun 25, 2023 · 1 comment

Comments

@adoreparler
Copy link

I am having trouble getting my vim to look like the demo. I tried the demo config and nothings changed. I think highlighting is working along with auto completion and I think lint is working.

System:
Mac OS M2 Max

VIM:
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Apr 15 2023 04:26:46)
macOS version - arm64
Included patches: 1-1424
Compiled by root@apple.com

.vimrc:

vnoremap <C-c> :w !pbcopy<CR><CR> 
noremap <C-v> :r !pbpaste<CR><CR>
nnoremap <C-n> :NERDTree<CR>

" Use tab for trigger completion with characters ahead and navigate
" NOTE: There's always complete item selected by default, you may want to enable
" no select by `"suggest.noselect": true` in your configuration file
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config
inoremap <silent><expr> <TAB>
      \ coc#pum#visible() ? coc#pum#next(1) :
      \ CheckBackspace() ? "\<Tab>" :
      \ coc#refresh()
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"

" Make <CR> to accept selected completion item or notify coc.nvim to format
" <C-g>u breaks current undo, please make your own choice
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
                              \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"

function! CheckBackspace() abort
  let col = col('.') - 1
  return !col || getline('.')[col - 1]  =~# '\s'
endfunction

call plug#begin()

" Polyglot is Syntax highlighting
Plug 'sheerun/vim-polyglot'

" Code Completion
Plug 'neoclide/coc.nvim', {'branch': 'release'}

" Side Bar
Plug 'preservim/nerdtree'

" ColorScheme
Plug 'NLKNguyen/papercolor-theme'

" Bottom Bar
Plug 'vim-airline/vim-airline'

Plug 'pangloss/vim-javascript'
Plug 'leafgarland/typescript-vim'
Plug 'peitalin/vim-jsx-typescript'

Plug 'OmniSharp/omnisharp-vim'
Plug 'dense-analysis/ale'
Plug 'nickspoons/vim-sharpenup'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'


call plug#end()

set number

set background=dark
colorscheme PaperColor
set mouse=a

command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument

let g:OmniSharp_server_display_loading = 1
let g:OmniSharp_server_use_net6 = 1
let g:OmniSharp_loglevel = 'debug'

let g:ale_linters = { 'cs': ['OmniSharp'] }

The above vimrc is without all the stuff from the example config and is what the below video is showing. There is no change when using the example config.

omnisharpvim

@nickspoons
Copy link
Member

nickspoons commented Jun 25, 2023

The popups don't open automatically. You can put the cursor on a variable or method or whatever and do :OmniSharpDocumentation (\osd is the default vim-sharpenup mapping), or inside a method call argument list and do :OmniSharpSignatureHelp (<C-\> with vim-sharpenup in normal and insert modes), either of those will open a popup.

For the completion documentation popup, that opens when you navigate through the completion options, not as you type. So with your config it looks like you'd use <Tab> to scroll through the completion options, or the standard vim <C-n>/<C-p>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants