🎨 ux(nvim): lualine separators and google search
This commit is contained in:
parent
a357aa0510
commit
4ba77eeb53
2 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
-- Keymaps are automatically loaded on the VeryLazy event
|
-- Keymaps are automatically loaded on the VeryLazy event
|
||||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
|
local Util = require("lazyvim.util")
|
||||||
|
|
||||||
local function map(mode, lhs, rhs, opts)
|
local function map(mode, lhs, rhs, opts)
|
||||||
local keys = require("lazy.core.handler").handlers.keys
|
local keys = require("lazy.core.handler").handlers.keys
|
||||||
---@cast keys LazyKeysHandler
|
---@cast keys LazyKeysHandler
|
||||||
|
@ -18,6 +20,8 @@ end
|
||||||
-- ╭───────────────────────────────────────────────────────────╮
|
-- ╭───────────────────────────────────────────────────────────╮
|
||||||
-- │ Credit: June Gunn <Leader>?/! | Google it / Feeling lucky │
|
-- │ Credit: June Gunn <Leader>?/! | Google it / Feeling lucky │
|
||||||
-- ╰───────────────────────────────────────────────────────────╯
|
-- ╰───────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
|
vim.g.open_command = vim.g.open_command or "xdg-open"
|
||||||
---@param pat string
|
---@param pat string
|
||||||
---@param lucky boolean
|
---@param lucky boolean
|
||||||
local function google(pat, lucky)
|
local function google(pat, lucky)
|
||||||
|
@ -39,6 +43,7 @@ end, { desc = "Google" })
|
||||||
if vim.lsp.inlay_hint then
|
if vim.lsp.inlay_hint then
|
||||||
vim.keymap.set("n", "<leader>uh", function()
|
vim.keymap.set("n", "<leader>uh", function()
|
||||||
vim.lsp.inlay_hint(0, nil)
|
vim.lsp.inlay_hint(0, nil)
|
||||||
|
Util.notify("Toggle Inlay Hints", { title = "Inlay Hints" })
|
||||||
end, { desc = "Toggle Inlay Hints" })
|
end, { desc = "Toggle Inlay Hints" })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,8 @@ return {
|
||||||
opts = function()
|
opts = function()
|
||||||
return {
|
return {
|
||||||
options = {
|
options = {
|
||||||
theme = "catppuccin",
|
|
||||||
globalstatus = true,
|
|
||||||
disabled_filetypes = { statusline = { "dashboard", "alpha", "starter" } },
|
disabled_filetypes = { statusline = { "dashboard", "alpha", "starter" } },
|
||||||
component_separators = "",
|
component_separators = { left = "", right = "" },
|
||||||
section_separators = { left = "", right = "" },
|
section_separators = { left = "", right = "" },
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue