Skip to content

Commit d660f49

Browse files
committed
feat(recipes): add recipe for disabling borders from floating windows
1 parent c3aa034 commit d660f49

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
id: disable_borders
3+
title: Disable Borders
4+
---
5+
6+
By default AstroNvim unifies the user interface to utilize rounded borders. If you prefer other border types such as setting borders to `"none"` then you currently must do this for each individual plugin which has configurable borders. The provided code below helps aid the user in getting started with this.
7+
8+
It is worth noting that Neovim v0.11 adds support for a new option, `winborder`, which will allow an easy place to change this option. Currently AstroNvim is not able to utilize this option due to lack of support in plugins currently which leads to unexpected results in the user interface. Once plugins catch up in general we will move to utilizing this option globally to improve the user configuration experience.
9+
10+
:::tip
11+
12+
This is available in the [AstroCommunity](https://github.com/AstroNvim/astrocommunity/tree/main/lua/astrocommunity/recipes/disable-borders)
13+
14+
```lua title="lua/community.lua" ins={3}
15+
return {
16+
"AstroNvim/astrocommunity",
17+
{ import = "astrocommunity.recipes.disable-borders" },
18+
}
19+
```
20+
21+
:::
22+
23+
```lua title="lua/plugins/disable_borders.lua"
24+
local border_type = "none"
25+
26+
return {
27+
{
28+
"AstroNvim/astrocore",
29+
---@type AstroCoreOpts
30+
opts = {
31+
diagnostics = { float = { border = border_type } },
32+
},
33+
},
34+
{
35+
"AstroNvim/astrolsp",
36+
optional = true,
37+
---@type AstroLSPOpts
38+
opts = {
39+
defaults = {
40+
hover = { border = border_type },
41+
signature_help = { border = border_type },
42+
},
43+
},
44+
},
45+
{
46+
"akinsho/toggleterm.nvim",
47+
optional = true,
48+
opts = {
49+
float_opts = { border = border_type },
50+
},
51+
},
52+
{
53+
"rcarriga/nvim-dap-ui",
54+
optional = true,
55+
opts = {
56+
floating = { border = border_type },
57+
},
58+
},
59+
{
60+
"Saghen/blink.cmp",
61+
optional = true,
62+
opts = {
63+
completion = {
64+
menu = { border = border_type },
65+
documentation = { window = { border = border_type } },
66+
},
67+
signature = { window = { border = border_type } },
68+
},
69+
},
70+
}
71+
```

0 commit comments

Comments
 (0)