Bring over commits accidentally only on local_machine branch to main

This commit is contained in:
Martin Larsson 2025-07-09 23:58:22 +02:00
parent 07471f5d48
commit 332c883a48
11 changed files with 59 additions and 11 deletions

View file

@ -1,7 +1,5 @@
local saved_hlsearch = false
local saved_highlights = {}
local colors = require("ayu.colors")
colors.generate(true)
local function leap_across_windows()
require("leap").leap({
@ -25,7 +23,7 @@ end
local function save_and_set_invisible_inlay_hints_hl()
saved_highlights = vim.api.nvim_get_hl(0, { name = "LspInlayHint" })
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = colors.bg, bg = "none" })
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = require("colors").get().bg, bg = "none" })
end
local function restore_inlay_hints_hl()

View file

@ -1,11 +1,24 @@
local function resize_mode()
if require("window_management").is_in_resizing_mode() then
return "▲ Resizing ▼"
return "▲ Resizing ▼"
else
return ""
return " "
end
end
local tabs = {
"tabs",
use_mode_colors = true,
tabs_color = {
active = "lualine_b_command",
},
show_modified_status = false,
component_separators = {
left = "",
right = ""
},
}
return {
"nvim-lualine/lualine.nvim",
dependencies = {
@ -38,7 +51,7 @@ return {
},
resize_mode,
},
lualine_c = { "buffers" },
lualine_c = { tabs },
lualine_x = { "encoding", "fileformat", "filetype" },
lualine_y = { "progress" },
lualine_z = { "location" }

View file

@ -11,6 +11,15 @@ return {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
},
signature = {
auto_open = true,
opts = {
position = {
row = 2,
col = 0,
},
},
},
},
presets = {
bottom_search = true, -- use a classic bottom cmdline for search