bug fix for log level, update README

This commit is contained in:
ray-x 2021-04-21 08:25:31 +10:00
parent f46d8adf09
commit fc98753bf1
2 changed files with 7 additions and 2 deletions

View File

@ -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 <c-e> or `:q!` to kill the floating window, <up/down> to move and <c-o> 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)

View File

@ -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 = '華 '})