Skip to content

Commit

Permalink
Merge pull request #302 from ayamir/single-border
Browse files Browse the repository at this point in the history
style: add single border for all of floating windows.
  • Loading branch information
ayamir committed Oct 24, 2022
2 parents f0d3a92 + c55d3fa commit 61fe5b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lua/core/pack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Packer:load_packer()
disable_commands = true,
display = {
open_fn = function()
return require("packer.util").float({ border = "none" })
return require("packer.util").float({ border = "single" })
end,
},
})
Expand All @@ -66,7 +66,7 @@ function Packer:load_packer()
max_jobs = 20,
display = {
open_fn = function()
return require("packer.util").float({ border = "none" })
return require("packer.util").float({ border = "single" })
end,
},
})
Expand Down
8 changes: 4 additions & 4 deletions lua/modules/completion/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ function config.cmp()

local border = function(hl)
return {
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
{ "", hl },
}
end
Expand Down
2 changes: 2 additions & 0 deletions lua/modules/completion/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ local nvim_lsp = require("lspconfig")
local mason = require("mason")
local mason_lsp = require("mason-lspconfig")

require("lspconfig.ui.windows").default_options.border = "single"

mason.setup()
mason_lsp.setup({
ensure_installed = {
Expand Down
2 changes: 1 addition & 1 deletion lua/modules/tools/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function config.telescope()
entry_prefix = " ",
scroll_strategy = "limit",
results_title = false,
borderchars = { " ", " ", " ", " ", " ", " ", " ", " " },
borderchars = { "", "", "", "", "", "", "", "" },
layout_strategy = "horizontal",
path_display = { "absolute" },
file_ignore_patterns = { ".git/", ".cache", "%.class", "%.pdf", "%.mkv", "%.mp4", "%.zip" },
Expand Down

0 comments on commit 61fe5b7

Please sign in to comment.