Hoversplit

This commit is contained in:
Barak Michener 2024-06-03 17:36:36 -07:00
parent b307fab0f2
commit 6fb63aa116
3 changed files with 29 additions and 21 deletions

View file

@ -385,30 +385,30 @@ require('lspkind').init({
require('trouble').setup {
mode = "document_diagnostics",
auto_close = true,
action_keys = { -- key mappings for actions in the trouble list
action_keys = { -- key mappings for actions in the trouble list
-- map to {} to remove a mapping, for example:
-- close = {},
--close = "q", -- close the list
--cancel = "<esc>", -- cancel the preview and get back to your last window / buffer / cursor
--refresh = "r", -- manually refresh
jump = { "o", "<tab>" }, -- jump to the diagnostic or open / close folds
jump = { "o", "<tab>" }, -- jump to the diagnostic or open / close folds
--open_split = { "<c-x>" }, -- open buffer in new split
--open_vsplit = { "<c-v>" }, -- open buffer in new vsplit
open_tab = {}, -- open buffer in new tab
jump_close = { "<cr>" }, -- jump to the diagnostic and close the list
toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode
toggle_preview = "P", -- toggle auto_preview
hover = "K", -- opens a small popup with the full multiline message
preview = "p", -- preview the diagnostic location
close_folds = { "zM", "zm" }, -- close all folds
open_folds = { "zR", "zr" }, -- open all folds
toggle_fold = { "zA", "za" }, -- toggle fold of current file
previous = "k", -- previous item
next = "j" -- next item
open_tab = {}, -- open buffer in new tab
jump_close = { "<cr>" }, -- jump to the diagnostic and close the list
toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode
toggle_preview = "P", -- toggle auto_preview
hover = "K", -- opens a small popup with the full multiline message
preview = "p", -- preview the diagnostic location
close_folds = { "zM", "zm" }, -- close all folds
open_folds = { "zR", "zr" }, -- open all folds
toggle_fold = { "zA", "za" }, -- toggle fold of current file
previous = "k", -- previous item
next = "j" -- next item
},
}
local trouble_telescope = require("trouble.providers.telescope")
local trouble_telescope = require("trouble.sources.telescope")
local builtin = require 'telescope.builtin'
local sendtoqf = function(loc)
@ -423,10 +423,10 @@ require('telescope').setup {
n = {
["q"] = require('telescope.actions').close,
["ff"] = sendtoqf,
["<c-t>"] = trouble_telescope.open_with_trouble,
["<c-t>"] = trouble_telescope.open,
},
i = {
["<c-t>"] = trouble_telescope.open_with_trouble,
["<c-t>"] = trouble_telescope.open,
["ff"] = require('telescope.actions').send_to_qflist,
},
},
@ -556,8 +556,8 @@ require 'nvim-treesitter.configs'.setup {
playground = {
enable = true,
disable = {},
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
persist_queries = false, -- Whether the query persists across vim sessions
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
persist_queries = false, -- Whether the query persists across vim sessions
keybindings = {
toggle_query_editor = 'o',
toggle_hl_groups = 'i',
@ -673,6 +673,8 @@ function neogen_dwim()
end
end
require("hoversplit").setup({})
require("murdock")
require("lir_setup")
require("lualine_setup")