58 lines
1.5 KiB
Lua
58 lines
1.5 KiB
Lua
-- Takemi Theme — lives in colors/takemi.lua, shares its palette with
|
|
-- ~/.config/quickshell/config/Theme.qml and ~/.config/alacritty/takemi.toml.
|
|
vim.o.termguicolors = true
|
|
vim.cmd.colorscheme("takemi")
|
|
|
|
-- Git Signs
|
|
require("gitsigns").setup()
|
|
|
|
-- Which-Key (Keybind discoverability)
|
|
require("which-key").setup()
|
|
|
|
-- Lualine (Statusline)
|
|
local function active_lsp()
|
|
local clients = vim.lsp.get_clients({ bufnr = 0 })
|
|
if next(clients) == nil then
|
|
return "No LSP"
|
|
end
|
|
local client_names = {}
|
|
for _, client in ipairs(clients) do
|
|
table.insert(client_names, client.name)
|
|
end
|
|
return "{ " .. table.concat(client_names, " | ") .. " }"
|
|
end
|
|
|
|
require("lualine").setup({
|
|
options = {
|
|
theme = require("takemi").lualine(),
|
|
component_separators = { left = "|", right = "|" },
|
|
section_separators = { left = "", right = "" },
|
|
globalstatus = true,
|
|
},
|
|
sections = {
|
|
lualine_a = { "mode" },
|
|
lualine_b = { "branch", "diff" },
|
|
lualine_c = { { "filename", path = 1 }, "diagnostics" },
|
|
lualine_x = { active_lsp },
|
|
lualine_y = { "encoding", "fileformat", "filetype" },
|
|
lualine_z = { "location", "progress" },
|
|
},
|
|
})
|
|
|
|
-- Render Markdown
|
|
require("render-markdown").setup({
|
|
enabled = true,
|
|
anti_conceal = { enabled = true },
|
|
heading = {
|
|
icons = { "1. ", "2. ", "3. ", "4. ", "5. ", "6. " },
|
|
backgrounds = {
|
|
"RenderMarkdownH1Bg",
|
|
"RenderMarkdownH2Bg",
|
|
"RenderMarkdownH3Bg",
|
|
"RenderMarkdownH4Bg",
|
|
"RenderMarkdownH5Bg",
|
|
"RenderMarkdownH6Bg",
|
|
},
|
|
},
|
|
})
|