From 14886706db4ff8efa78c8c544f42c0f68099cc1c Mon Sep 17 00:00:00 2001 From: ray-x Date: Tue, 4 May 2021 21:09:38 +1000 Subject: [PATCH] lazy plugin loading and autocmd to load the plugin --- README.md | 25 ++++++++++++++----------- lua/navigator.lua | 4 +++- lua/navigator/lspclient/clients.lua | 13 ++++++------- lua/navigator/lspclient/mapping.lua | 1 - 4 files changed, 23 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index ba6a6d7..239a876 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,14 @@ Easy code navigation through LSP and 🌲🏡Treesitter symbols, diagnostic erro # Features: -- LSP easy setup. Support some of the most commonly used lsp client setup +- LSP easy setup. Support some of the most commonly used lsp client setup. Smart loading lsp clients based on buffer type. +- Out of box experience. 10 lines of minimum vimrc can turn your neovim into a full-featured LSP powered IDE - Unorthodox UI with floating windows - Async request with lsp.buf_request for reference search -- Treesitter symbol search. It is handy for large file (Do you know some of LSP e.g. sumneko_lua, there is a 100kb limition?) +- Treesitter symbol search. It is handy for large filas (Some of LSP e.g. sumneko_lua, there is a 100kb file size limition?) - fzy search with Lua-JIT -- Better navigation for diagnostic errors, Navigate through files that contain errors/warnings -- Group references/implementation/incomming/outgoing based on file names. +- Better navigation for diagnostic errors, Navigate through all files/buffers that contain errors/warnings +- Grouping references/implementation/incomming/outgoing based on file names. - Nerdfont, emoji for LSP and Treesitter kind # Why a new plugin @@ -54,7 +55,7 @@ Easy setup **BOTH** lspconfig and navigator with one liner. Navigator covers aro lua require'navigator'.setup() ``` -## Sample vimrc +## Sample vimrc turning your neovim into a full-featured IDE ```vim call plug#begin('~/.vim/plugged') @@ -63,19 +64,22 @@ Plug 'neovim/nvim-lspconfig' Plug 'ray-x/guihua.lua', {'do': 'cd lua/fzy && make' } Plug 'ray-x/navigator.lua' -" optional if you need treesitter symbol support +" Plug 'hrsh7th/nvim-compe' and other plugins you commenly use... + +" optional, if you need treesitter symbol support Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} call plug#end() +" No need for rquire('lspconfig'), navigator will configure it for you lua <