]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/nvim/lua/plugins/eagle.lua
+use/op(nvim/eagle): init
[julm/julm-nix.git] / home-manager / profiles / nvim / lua / plugins / eagle.lua
1 -- Show diagnostics and lsp info inside a custom window
2 -- https://github.com/soulis-1256/eagle.nvim
3 return {
4 "telescope.nvim",
5 lazy = false,
6 cmd = { "EagleWin" },
7 after = function()
8 require("eagle").setup({
9 show_headers = true,
10 order = 1,
11 improved_markdown = true,
12 mouse_mode = true,
13 keyboard_mode = false,
14 logging = false,
15 close_on_cmd = true,
16 show_lsp_info = true,
17 scrollbar_offset = 0,
18 max_width_factor = 2,
19 max_height_factor = 2.5,
20 render_delay = 500,
21 detect_idle_timer = 50,
22 window_row = 1,
23 window_col = 5,
24 border = "single",
25 title = "",
26 title_pos = "center",
27 title_color = "#8AAAE5",
28 border_color = "#8AAAE5",
29 diagnostic_header_color = "",
30 lsp_info_header_color = "",
31 diagnostic_content_color = "",
32 lsp_info_content_color = "",
33 })
34 vim.keymap.set("n", "<Tab>", ":EagleWin<CR>", { noremap = true, silent = true })
35 end,
36 }