Skip to content

Commit ef1457b

Browse files
committed
fix: no more borders, nicer kanagawa, make sure it loads first
1 parent b385493 commit ef1457b

File tree

8 files changed

+48
-27
lines changed

8 files changed

+48
-27
lines changed

config/native/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
-- caching needs to be first
22
require("konrad.loader")
3+
-- colorscheme as soon as possible
4+
require("konrad.colorscheme")
35

46
require("konrad.disable_builtin")
57

config/native/lua/konrad/cmp/init.lua

-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ M.setup = function()
5858
{ name = "path" },
5959
{ name = "nvim_lsp" },
6060
},
61-
window = {
62-
completion = cmp.config.window.bordered(),
63-
documentation = cmp.config.window.bordered(),
64-
},
6561
})
6662
end
6763

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
require("kanagawa").setup({
2+
compile = true,
3+
background = {
4+
dark = "wave",
5+
light = "lotus",
6+
},
7+
colors = {
8+
theme = {
9+
all = {
10+
ui = {
11+
bg_gutter = "none",
12+
},
13+
},
14+
},
15+
},
16+
overrides = function(colors)
17+
local theme = colors.theme
18+
return {
19+
-- Transparent Floating Windows
20+
NormalFloat = { bg = "none" },
21+
FloatBorder = { bg = "none" },
22+
FloatTitle = { bg = "none" },
23+
NormalDark = { fg = theme.ui.fg_dim, bg = theme.ui.bg_m3 },
24+
25+
-- Borderless Telescope
26+
TelescopeTitle = { fg = theme.ui.special, bold = true },
27+
TelescopePromptNormal = { bg = theme.ui.bg_p1 },
28+
TelescopePromptBorder = { fg = theme.ui.bg_p1, bg = theme.ui.bg_p1 },
29+
TelescopeResultsNormal = { fg = theme.ui.fg_dim, bg = theme.ui.bg_m1 },
30+
TelescopeResultsBorder = { fg = theme.ui.bg_m1, bg = theme.ui.bg_m1 },
31+
TelescopePreviewNormal = { bg = theme.ui.bg_dim },
32+
TelescopePreviewBorder = { bg = theme.ui.bg_dim, fg = theme.ui.bg_dim },
33+
34+
-- Dark completion (popup) menu
35+
Pmenu = { fg = theme.ui.shade0, bg = theme.ui.bg_p1 }, -- add `blend = vim.o.pumblend` to enable transparency
36+
PmenuSel = { fg = "NONE", bg = theme.ui.bg_p2 },
37+
PmenuSbar = { bg = theme.ui.bg_m1 },
38+
PmenuThumb = { bg = theme.ui.bg_p2 },
39+
}
40+
end,
41+
})
42+
43+
vim.opt.background = "dark"
44+
vim.cmd.colorscheme("kanagawa")
45+
require("konrad.loader").add_to_on_reset(function() vim.cmd("KanagawaCompile") end)

config/native/lua/konrad/lsp/borders.lua

-8
This file was deleted.

config/native/lua/konrad/lsp/init.lua

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ local initialized = false
66
local initialize_once = function()
77
if initialized then return end
88

9-
require("konrad.lsp.borders")
109
require("konrad.lsp.commands")
1110

1211
require("konrad.lsp.progress")

config/native/plugin/colorscheme.lua

-11
This file was deleted.

config/native/plugin/diagnostic.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ vim.diagnostic.config({
99
},
1010
update_in_insert = false,
1111
severity_sort = true,
12-
float = {
13-
border = "rounded",
14-
},
1512
signs = {
1613
text = {
1714
[vim.diagnostic.severity.ERROR] = diag_icons.Error,

files/spell/en.utf-8.add

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ versioning
2121
filesystem
2222
XSS
2323
CVE
24+
colorscheme

0 commit comments

Comments
 (0)