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 has been archived by the owner on Jul 6, 2021. It is now read-only.
Using nvim lsp + completion + diagnostics, things seem to work fine expect for warnings from diagnostics. For example, when using rust-analyzer and importing something I don't use, I get no warning. I can't seem to find the issue. I'm using ubuntu with most recent neovim nightly and plugins.
call plug#begin('~/.config/nvim/plugged')
Plug 'mhinz/vim-startify'
Plug 'https://github.com/joshdick/onedark.vim.git'
Plug 'itchyny/lightline.vim'
Plug 'nvim-lua/completion-nvim'
Plug 'neovim/nvim-lsp'
Plug 'nvim-lua/diagnostic-nvim'
call plug#end()
" SWAP AND UNDOFILE SETUP
set noswapfile
set nobackup
set nowritebackup
set undodir=~/.config/nvim/undodir
set undofile
" CORE CHANGES
set hidden
set tabstop=8
set softtabstop=4
set shiftwidth=4
set expandtab
set nowrap
set number relativenumber
set autoindent
set termguicolors
set mouse=a
" Make sure clipboard works
set clipboard=unnamedplus
" Hide netrw banner
let g:netrw_banner=0
" REMAPPING
let mapleader = " "
nnoremap <leader>y "*y
vnoremap <leader>y "*y
nnoremap <leader>p "*p
vnoremap <leader>p "*p
nnoremap <leader>P "*P
" Remove highlight when esc is pressed
nmap <silent><ESC> :noh<CR>
" LSP CONFIG
lua require 'lsp'
set signcolumn=yes
set completeopt-=menu
set completeopt-=longest " Don't insert the longest common text
set completeopt-=preview " Hide the documentation preview window
set completeopt+=menuone " Show the completions UI even with only 1 item
set completeopt+=noinsert " Don't insert text automatically
set completeopt+=noselect " Do not select a match in the menu
" Lightline config
let g:lightline = {
\ 'colorscheme': 'onedark',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'readonly', 'filename', 'modified' ] ]
\ },
\ }
" Startify config
let g:startify_custom_header = [
\ ' __ ___ ',
\ ' \ \ / (_)_ __ ___ ',
\ ' \ \ / /| | ''_ ` _ \ ',
\ ' \ V / | | | | | | | ',
\ ' \_/ |_|_| |_| |_| ',
\ '',
\ '',
\ ]
" COLORS, SYNTAX, AND LATE CHANGES
"let g:onedark_terminal_italics=1
let g:onedark_hide_endofbuffer=1
colorscheme onedark
The text was updated successfully, but these errors were encountered:
Removing diagnostic-nvim from the on-attach did indeed allow visual text errors to appear, but not warnings. I know rust-analyzer supplies these features but maybe it's doing something weird.
Using nvim lsp + completion + diagnostics, things seem to work fine expect for warnings from diagnostics. For example, when using rust-analyzer and importing something I don't use, I get no warning. I can't seem to find the issue. I'm using ubuntu with most recent neovim nightly and plugins.
Lua settings:
Init vim settings:
The text was updated successfully, but these errors were encountered: