symbol layout update

neovim_0.6^2
ray-x 2 years ago
parent cce0e90544
commit 6b4cfa3d59

@ -32,7 +32,7 @@ _NgConfigValues = {
lsp_signature_help = true, -- if you would like to hook ray-x/lsp_signature plugin in navigator
-- setup here. if it is nil, navigator will not init signature help
signature_help_cfg = { debug = false }, -- if you would like to init ray-x/lsp_signature plugin in navigator, pass in signature help
ctags = {cmd='ctags', tagfile='.tags'},
ctags = { cmd = 'ctags', tagfile = '.tags' },
lsp = {
code_action = {
enable = true,
@ -111,6 +111,7 @@ _NgConfigValues = {
field = '🏈',
},
treesitter_defult = '🌲',
doc_symbols = '',
},
}

@ -98,7 +98,7 @@ M.document_symbol_handler = function(err, result, ctx)
end
end
end
local ft = vim.api.nvim_buf_get_option(bufnr, 'ft')
gui.new_list_view({
items = locations,
@ -107,7 +107,7 @@ M.document_symbol_handler = function(err, result, ctx)
height = 0.62,
preview_height = 0.1,
ft = ft,
api = '',
api = _NgConfigValues.icons.doc_symbol,
})
end

@ -501,6 +501,8 @@ function M.buf_ts()
prompt = true,
ft = ft,
rawdata = true,
height = 0.62,
preview_height = 0.12,
width = width + 10,
api = _NgConfigValues.icons.treesitter_defult,
})
@ -538,6 +540,8 @@ function M.bufs_ts()
items = ts_opened,
prompt = true,
ft = ft,
height = 0.62,
preview_height = 0.12,
width = max_length + 10,
api = _NgConfigValues.icons.treesitter_defult,
})

Loading…
Cancel
Save