Compare commits

..

4 Commits

Author SHA1 Message Date
Henrik Bakken 379ae0f786 qutebrowser gemini tips
- finn.no maps showing (webgl)
- altinn login
- avoid dangerous lowercase normal-mode mapping
2026-04-26 21:03:31 +02:00
Henrik Bakken fe08de4f9a nvim-lint simplified, no timeout 2026-04-26 00:49:39 +02:00
Henrik Bakken 2d0f0470a0 nvim which-key fix and enable TreeWalker in python 2026-04-26 00:49:10 +02:00
Henrik Bakken 99ab844325 nvim remove bugged guicursor setting 2026-04-25 21:25:12 +02:00
3 changed files with 23 additions and 28 deletions
+1
View File
@@ -2,3 +2,4 @@ vim.o.colorcolumn = "100"
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4
vim.g.no_python_maps = 1
+3 -20
View File
@@ -7,7 +7,6 @@ vim.opt.shell = "/usr/bin/zsh"
vim.g.BASH_Ctrl_j = "off"
vim.g.BASH_Ctrl_l = "off"
vim.opt.clipboard:append("unnamedplus")
vim.opt.guicursor = "n-v-c:block-CustomCursor,i:ver100-CustomICursor,n-v-c:blinkon0,i:blinkwait10"
vim.opt.cursorline = true
vim.opt.list = true
vim.opt.listchars = { tab = "", trail = "·", extends = "", precedes = "", nbsp = "+" }
@@ -942,7 +941,6 @@ local function makespec_whichkey()
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
defaults = {},
spec = {
{
mode = { "n", "v" },
@@ -982,7 +980,7 @@ local function makespec_whichkey()
keys = {
{
"<leader>?",
function() require("which-key").show({ global = false }) end,
function() require("which-key").show({ global = true }) end,
desc = "Buffer Keymaps (which-key)",
},
{
@@ -1444,24 +1442,9 @@ local function makespec_lint()
}
local lint_augroup = vim.api.nvim_create_augroup("nvim_lint", { clear = true })
local timer = vim.uv.new_timer()
-- Use a timer to debounce linting to prevent UI stutter
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function(args)
timer:stop()
local bufnr = args.buf
timer:start(
200,
0,
vim.schedule_wrap(function()
if vim.api.nvim_buf_is_valid(bufnr) then
require("lint").try_lint(nil, { bufnr = bufnr })
end
end)
)
end,
callback = function() require("lint").try_lint() end,
})
end,
}
@@ -1705,4 +1688,4 @@ require("lazy").setup({
checker = { enabled = true },
rocks = { enabled = false },
})
vim.cmd("colorscheme catppuccin")
vim.cmd("colorscheme sonokai")
+19 -8
View File
@@ -1,17 +1,21 @@
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Any
from qutebrowser.config.config import ConfigContainer
from qutebrowser.config.configfiles import ConfigAPI
config: Any = None
c: Any = None
c: "ConfigContainer" = c # type: ignore # noqa: F821
config: "ConfigAPI" = config # type: ignore # noqa: F821
from typing import TYPE_CHECKING
config.load_autoconfig(True)
config.bind("<", "tab-move -")
config.bind("<Ctrl+Shift+Tab>", "tab-prev")
config.bind("<Ctrl+Tab>", "tab-next")
config.bind("<Ctrl+l>", "cmd-set-text :open {url:pretty}")
config.bind("<Ctrl+r>", "reload")
config.unbind("r", mode="normal")
config.bind("<Ctrl+r>", "reload -f")
config.bind("R", "reload", mode="normal")
config.bind("<Ctrl+n>", "tab-clone -w")
config.bind("<Ctrl+t>", "tab-clone -t")
config.bind("<Ctrl+Shift+r>", "restart", mode="normal")
@@ -46,8 +50,8 @@ config.bind("wk", "forward -w", mode="normal")
config.bind("ø", "cmd-set-text :")
config.bind("m", 'cmd-set-text :quickmark-add {url:pretty} "', mode="normal")
config.bind("D", "tab-close")
config.bind(",m", "hint links spawn mpv {hint-url}", mode="normal")
config.bind(",M", "spawn mpv {url}", mode="normal")
config.bind(",m", "hint links spawn -d mpv {hint-url}", mode="normal")
config.bind(",M", "spawn -d mpv {url}", mode="normal")
config.unbind("co") # close all tabs except this one
config.unbind("<Ctrl+x>") # navigate decrement
config.unbind("<Ctrl+a>") # navigate increment
@@ -69,7 +73,7 @@ c.completion.open_categories = [
c.content.register_protocol_handler = False
c.content.blocking.enabled = True
c.content.fullscreen.window = True
c.content.blocking.method = "both"
c.content.blocking.method = "adblock"
c.content.blocking.adblock.lists = [
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt",
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt",
@@ -107,6 +111,14 @@ urlconfigs: dict[str, list[tuple[str, bool | str | dict[str, str]]]] = {
{"X-YouTube-Client-Name": "85", "X-YouTube-Client-Version": "2.0"},
)
],
"https://*.altinn.no": [
("content.cookies.accept", "all"),
("content.javascript.can_open_tabs_automatically", True),
],
"https://*.bankid.no": [
("content.cookies.accept", "all"),
("content.javascript.can_open_tabs_automatically", True),
],
}
for url, urlconfig in urlconfigs.items():
for setting, value in urlconfig:
@@ -131,7 +143,6 @@ c.input.insert_mode.auto_leave = False
c.input.insert_mode.plugins = True
c.messages.timeout = 5000
c.qt.force_platform = "wayland"
c.qt.force_software_rendering = "qt-quick"
c.qt.highdpi = True
c.scrolling.bar = "always"
c.scrolling.smooth = False