You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
set relativenumber
set nu
set hidden
set incsearch
set scrolloff=6
set termguicolors
set shiftwidth=4
set tabstop=2
set softtabstop=2
syntax enable
set smartindent
set clipboard+=unnamedplus
filetype plugin indent on
set signcolumn=yes
set expandtab
set cursorline
set nowrap
set completeopt=menuone,noinsert,noselect
set shortmess+=c
call plug#begin('~/.vim/plugged')
Plug 'phanviet/vim-monokai-pro'
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-lua/completion-nvim'
Plug 'preservim/nerdcommenter'
Plug 'preservim/nerdtree'
Plug 'OmniSharp/omnisharp-vim'
call plug#end()
colorscheme monokai_pro
highlight Normal guibg=none
highlight EndOfBuffer guibg=none
lua <<EOF
local nvim_lsp = require'lspconfig'
local pid = vim.fn.getpid()
local omnisharp_bin = "/usr/bin/omnisharp"
local attach_callback = require'completion'.on_attach
nvim_lsp.rust_analyzer.setup({ on_attach=attach_callback })
nvim_lsp.clangd.setup({ on_attach=attach_callback })
nvim_lsp.omnisharp.setup{
cmd = { omnisharp_bin, "--languageserver" , "--hostPID", tostring(pid) };
on_attach=attach_callback
}
nvim_lsp.cmake.setup{ on_attach=attach_callback }
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
virtual_text = true,
signs = true,
update_in_insert = true,
}
)
EOF
" ====== KEYBINDS ======
let mapleader = " "
" lsp
nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>
nnoremap <silent> <leader>h <cmd>lua vim.lsp.buf.hover()<CR>
nnoremap <silent> gD <cmd>lua vim.lsp.buf.implementation()<CR>
nnoremap <silent> <leader>r <cmd>lua vim.lsp.buf.references()<CR>
nnoremap <silent> <leader>d <cmd>lua vim.lsp.buf.declaration()<CR>
nnoremap <silent> <leader>a <cmd>lua vim.lsp.buf.code_action()<CR>
nnoremap <silent> <leader>[ <cmd>lua vim.lsp.diagnostic.goto_prev()<CR>
nnoremap <silent> <leader>] <cmd>lua vim.lsp.diagnostic.goto_next()<CR>
" nerd commenter
nnoremap <silent> <leader>cc <cmd>NERDCommenterComment<CR>
nnoremap <silent> <leader>cu <cmd>NERDCommenterUncomment<CR>
" nerd tree
nnoremap <silent> <leader>t <cmd>NERDTreeToggle<CR>
How to reproduce
Open A file and attempt to write code, I was working on my projects a few days ago and it was working fine, I come back after the latest neovim update to find nothing working. I have tested it and it is the version of neovim which is the issue, so I recommend if anyone else is having this issue please rollback your neovim version, if you are using arch linux like me, I advice adding it to the ignore packages to stop it upgrading.
I could not find out what was causing this issue, I checked the health and the health check was identical, I presume whatever API changes which were made in the latest neovim version must have impacted the menu being drawn to the terminal.
Expected behavior
The menu should automatically pop up while typing, I have not disabled it.
Activity
sergekir commentedon Sep 29, 2021
#399 (comment) this solution helped me
mrkz commentedon Sep 29, 2021
@sergekir I confirm that change also resolved this issue for me. looking forward to the fix 😃
EDIT:
Also, wouldn't this be a duplicate of #399 ?