Make aerial floating, remove kind filtering to show everything

This commit is contained in:
Evie Litherland-Smith 2023-01-31 17:01:37 +00:00
parent c8fc707710
commit 52dc46d8da
2 changed files with 11 additions and 4 deletions

View file

@ -1,10 +1,17 @@
local aerial = require('aerial') local aerial = require('aerial')
aerial.setup { aerial.setup {
backends = { "lsp", "treesitter", "markdown", "man" },
layout = { layout = {
placement = "edge", default_direction = "float",
}, },
attach_mode = "global",
highlight_mode = "none",
manage_folds = true, manage_folds = true,
close_on_select = true,
show_guides = true, show_guides = true,
close_automatic_events = {
"unfocus", "switch_buffer", "unsupported"
},
float = {
relative = "win",
},
filter_kind = false,
} }

View file

@ -51,7 +51,7 @@ local on_attach = function(client, bufnr)
vim.keymap.set('n', 'gI', vim.lsp.buf.implementation, bufopts) vim.keymap.set('n', 'gI', vim.lsp.buf.implementation, bufopts)
vim.keymap.set('n', 'gi', '<cmd>Trouble lsp_implementations<cr>', bufopts) vim.keymap.set('n', 'gi', '<cmd>Trouble lsp_implementations<cr>', bufopts)
vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts) vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)
-- vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts) vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts)
vim.keymap.set('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, bufopts) vim.keymap.set('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, bufopts)
vim.keymap.set('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, bufopts) vim.keymap.set('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, bufopts)
vim.keymap.set('n', '<leader>wl', function() vim.keymap.set('n', '<leader>wl', function()