From 8c9209c5ec1aad7aa17880ab1bf1bc16f950067e Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Sun, 6 Apr 2025 20:58:14 +0200 Subject: [PATCH] div updates --- manjaro.sh | 2 ++ nvim/init.lua | 26 +++++++++++++++++++------- wezterm/wezterm.lua | 1 + 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/manjaro.sh b/manjaro.sh index 9b3478a..0930a18 100755 --- a/manjaro.sh +++ b/manjaro.sh @@ -97,3 +97,5 @@ yay -S i3status \ # firefox windowed fullscreen # can be achieved by setting full-screen-api.ignore-widgets to true in about:config + +wget -P ~/.local/share/fonts/ https://raw.githubusercontent.com/SUNET/static_sunet_se/refs/heads/master/fonts/Akkurat-Mono.otf diff --git a/nvim/init.lua b/nvim/init.lua index 8787e4b..dec4b4f 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -18,7 +18,7 @@ vim.opt.shortmess:append({ W = true, I = true, c = true, C = true }) vim.o.cmdheight = 0 vim.o.showmode = false vim.o.sidescrolloff = 8 -vim.o.timeoutlen = 700 +vim.o.timeoutlen = 500 vim.o.virtualedit = "block" vim.o.wildmode = "longest:full,full" vim.o.wrap = false @@ -102,6 +102,7 @@ vim.diagnostic.config({ }, float = { source = true }, }) +vim.lsp.set_log_level(2) -- ---------------------------------------- -- MAPS @@ -149,10 +150,10 @@ map("i", ";", ";u") map({ "x", "n", "s" }, "ww", "w", { desc = "Save File" }) -- quit -map("n", "qq", "q", { desc = "Close Window" }) -map("n", "qQ", "qa", { desc = "Quit All" }) +map("n", "q", "q", { desc = "Close Window" }) +map("n", "qq", "qa", { desc = "Quit All" }) map("n", "qw", "wq", { desc = "Write And Close Window" }) -map("n", "qW", "wqa", { desc = "Write And Quit All" }) +map("n", "qwa", "wqa", { desc = "Write And Quit All" }) --keywordprg map("n", "K", "norm! K", { desc = "Keywordprg" }) @@ -442,8 +443,8 @@ local function makespec_lspconfig() autoImportCompletions = false, diagnosticMode = "openFilesOnly", useLibraryCodeForTypes = false, - -- logTypeEvaluationTime = true, - -- typeEvaluationTimeThreshold = 5000, + logTypeEvaluationTime = true, + typeEvaluationTimeThreshold = 2000, }, }, }, @@ -1068,7 +1069,7 @@ local function makespec_todocomments() TEST = { icon = "⏲ ", color = "test" }, }, merge_keywords = false, -- when true, custom keywords will be merged with the defaults - highlight = { keyword = "bg", pattern = [[.*<(KEYWORDS)\s*:]] }, + highlight = { keyword = "bg", pattern = [[.*<(KEYWORDS)\s*]] }, search = { pattern = [[\b(KEYWORDS)\b]] }, colors = { error = { "#ba1a1a" }, @@ -1124,9 +1125,20 @@ local function makespec_flash() "folke/flash.nvim", event = "VeryLazy", opts = { + search = { + multi_window = true, + mode = "exact", + exclude = { + "notify", + "noice", + "flash_prompt", + function(win) return not vim.api.nvim_win_get_config(win).focusable end, + }, + }, label = { uppercase = false }, jump = { autojump = true }, modes = { + search = { enabled = true }, char = { jump = { autojump = true }, char_actions = function(motion) diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index a2024ea..4e3da36 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -6,6 +6,7 @@ config.color_scheme = "Monokai (dark) (terminal.sexy)" config.font_size = 14 -- config.font = wezterm.font("Noto Sans Mono") config.font = wezterm.font_with_fallback({ + "Akkurat-Mono", "Noto Sans Mono", "Terminess Nerd Font", "Noto Color Emoji",