Need to press keymap twice to bring up hover information with LSP

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • tmux

    tmux source code

  • filetype plugin indent on "------------------------------------------------------------------------------ " Plugins "------------------------------------------------------------------------------ call plug#begin(stdpath('data') . '/plugged') Plug 'sainnhe/gruvbox-material' Plug 'morhetz/gruvbox' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' Plug 'sheerun/vim-polyglot' Plug 'tpope/vim-commentary' Plug 'neovim/nvim-lspconfig' call plug#end() "------------------------------------------------------------------------------ " Basic settings "------------------------------------------------------------------------------ set path+=** " Searches current directory recursively (incl. subfolders) set wildmode=longest,list,full " Better tab completion set laststatus=0 " 2 = always show, 0 = never show set expandtab " Use spaces instead of tabs set shiftwidth=4 " One tab equals four spaces set tabstop=4 " One tab equals four spaces set nohlsearch " Disable highlight search matches set ignorecase " Searches are case sensitive only when term has at least one capital set nobackup " Disable automatic backup files set noswapfile " Disable swapfile set scrolloff=5 " Always show 5 lines when scrolling set splitbelow " Split below set splitright " Split right set omnifunc=syntaxcomplete#Complete " Enable omnifunc (C-x C-o) set clipboard=unnamedplus " Use system clipboard set guicursor= " Disable different cursor styles set updatetime=300 " Default is 4000 ms let loaded_matchparen = 1 " Disable highlighting of matching brackets " set number " set signcolumn=number "------------------------------------------------------------------------------ " Color settings "------------------------------------------------------------------------------ " https://github.com/tmux/tmux/issues/1246 " if has('nvim') || exists('+termguicolors') " let &t_8f = "\[38;2;%lu;%lu;%lum" " let &t_8b = "\[48;2;%lu;%lu;%lum" " set termguicolors " endif " let g:gruvbox_contrast_dark='hard' colorscheme gruvbox " colorscheme gruvbox-material " Customize fzf colors to match your color scheme " - fzf#wrap translates this to a set of `--color` options let g:fzf_colors = \ { 'fg': ['fg', 'Normal'], \ 'bg': ['bg', 'Normal'], \ 'hl': ['fg', 'Comment'], \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], \ 'hl+': ['fg', 'Statement'], \ 'info': ['fg', 'PreProc'], \ 'border': ['fg', 'Ignore'], \ 'prompt': ['fg', 'Conditional'], \ 'pointer': ['fg', 'Exception'], \ 'marker': ['fg', 'Keyword'], \ 'spinner': ['fg', 'Label'], \ 'header': ['fg', 'Comment'] } " Highlight trailing whitespace (https://vim.fandom.com/wiki/Highlight_unwanted_spaces) highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@ " Keep selection when shifting vnoremap > >gv vnoremap < zz nnoremap zz " Fuzzy searching nnoremap :Files nnoremap b :Buffers nnoremap :Rg "------------------------------------------------------------------------------ " Use ripgrep instead of default vimgrep "------------------------------------------------------------------------------ set grepprg=rg\ --vimgrep "------------------------------------------------------------------------------ " Useful command to trim trailing whitespace "------------------------------------------------------------------------------ function! TrimWhiteSpace() %s/\s\+$//e endfunction command Trim :call TrimWhiteSpace() "------------------------------------------------------------------------------ " Set up netrw instead of Nerdtree (save a plugin) "------------------------------------------------------------------------------ " Make it look cleaner like NERDTree let g:netrw_banner=0 let g:netrw_liststyle=3 let g:netrw_browse_split=4 let g:netrw_winsize=25 " Function to toggle explorer on and off let g:NetrwIsOpen=0 function! ToggleNetrw() if g:NetrwIsOpen let i = bufnr("$") while (i >= 1) if (getbufvar(i, "&filetype") == "netrw") silent exe "bwipeout " . i endif let i-=1 endwhile let g:NetrwIsOpen=0 else let g:NetrwIsOpen=1 silent Lexplore endif endfunction " Toggle explorer with leader+e " 'v': vertical split, 'o': horizontal split, 't': new tab noremap e :call ToggleNetrw()

  • neovim

    Vim-fork focused on extensibility and usability

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts