From fc98753bf1d6f130b6989fc0342e3562c58043c6 Mon Sep 17 00:00:00 2001 From: ray-x Date: Wed, 21 Apr 2021 08:25:31 +1000 Subject: [PATCH] bug fix for log level, update README --- README.md | 5 +++++ lua/navigator/symbols.lua | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09e014d..76da6e0 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Easy code navigation. - 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. +- Nerdfont for LSP kind # Why a new plugin @@ -59,6 +60,10 @@ Use or `:q!` to kill the floating window, to move and to o ![reference](https://github.com/ray-x/files/blob/master/img/navigator/ref.gif?raw=true) +### Document Symbol + +![document symbol](https://github.com/ray-x/files/blob/master/img/navigator/doc_symbol.gif?raw=true) + ### Diagnostic ![diagnostic](https://github.com/ray-x/files/blob/master/img/navigator/diag.jpg?raw=true) diff --git a/lua/navigator/symbols.lua b/lua/navigator/symbols.lua index 52ed05d..9409e1e 100644 --- a/lua/navigator/symbols.lua +++ b/lua/navigator/symbols.lua @@ -1,7 +1,7 @@ local gui = require "navigator.gui" local M = {} local log = require "navigator.util".log -local verbose = require "navigator.util".trace +local verbose = require "navigator.util".debug local lsphelper = require "navigator.lspwrapper" local locations_to_items = lsphelper.locations_to_items local clone = require "guihua.util".clone @@ -107,7 +107,7 @@ function M.document_symbol_handler(err, _, result, _, bufnr) end end end - verbose(locations) + -- verbose(locations) -- local items = locations_to_items(locations) gui.new_list_view({items = locations, prompt = true, rawdata = true, api = '華 '})