diff --git a/nvim/lua/configs/edgy.lua b/nvim/lua/configs/edgy.lua new file mode 100644 index 0000000..ff9c1e4 --- /dev/null +++ b/nvim/lua/configs/edgy.lua @@ -0,0 +1,11 @@ +return { + animate = { + enabled = false, + }, + exit_when_last = false, + right = { + { + ft = "trouble", + }, + }, +} diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua index e28df42..131e552 100644 --- a/nvim/lua/plugins/init.lua +++ b/nvim/lua/plugins/init.lua @@ -70,13 +70,51 @@ return { size = 0.20, -- 30% of the window }, }, + diagnostics = { + win = { + type = "split", + relative = "win", + position = "bottom", + size = 0.30, + }, + }, + lsp = { -- Configure LSP references mode + win = { + type = "split", -- split window + relative = "win", -- relative to current window + position = "right", -- appear below + size = 0.25, -- 25% of the window height + }, + }, + preview = { + mode = "diagnostics", + preview = { + type = "split", + relative = "win", + position = "right", + size = 0.3, + }, + }, + preview_float = { + mode = "diagnostics", + preview = { + type = "float", + relative = "editor", + border = "rounded", + title = "Preview", + title_pos = "center", + position = { 0, -2 }, + size = { width = 0.3, height = 0.5 }, + zindex = 200, + }, + }, }, }, -- for default options, refer to the configuration section for custom setup. cmd = "Trouble", keys = { { "xx", - "Trouble diagnostics toggle", + "Trouble preview toggle", desc = "Diagnostics (Trouble)", }, { @@ -91,7 +129,7 @@ return { }, { "cl", - "Trouble lsp toggle focus=false win.position=right", + "Trouble lsp toggle focus=false", desc = "LSP Definitions / references / ... (Trouble)", }, { @@ -184,4 +222,10 @@ return { }, }, }, + { + "folke/edgy.nvim", + event = "VeryLazy", + enabled = false, + opts = require("configs.edgy"), + }, }