diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-19 20:26:54 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-19 20:26:54 +0200 |
commit | 4b90644bc355441d05fb1a217e7d828f1cfd77b8 (patch) | |
tree | ed5ff7fa3b2ada7da4a4f89bff26424cf0f805a6 /lua/config | |
parent | cb36ccfa8db66db953795fd8e22138ed1712b1cd (diff) |
checkpoint
- edited pairs
- changed surround mappings to "gs"
- added highlighting for urls
Diffstat (limited to 'lua/config')
-rw-r--r-- | lua/config/autocmds.lua | 3 | ||||
-rw-r--r-- | lua/config/set.lua | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua index 61dc98d..d39ab1a 100644 --- a/lua/config/autocmds.lua +++ b/lua/config/autocmds.lua @@ -93,3 +93,6 @@ autocmd({ "BufNewFile", "BufRead" }, { end end, }) + +-- Automatically resize panes +autocmd("VimResized", { pattern = "*", command = "wincmd =" }) diff --git a/lua/config/set.lua b/lua/config/set.lua index ce43d04..8ddc23c 100644 --- a/lua/config/set.lua +++ b/lua/config/set.lua @@ -110,5 +110,8 @@ vim.diagnostic.config({ float = { border = _border }, }) --- highlight to-do's +-- Highlighting vim.cmd("match Todo /\\(TODO\\|FIXME\\):/") + +vim.cmd("match matchURL /" .. "\\(https\\?\\|ftp\\|magnet\\):\\/\\/[[:alnum:]%\\/_#.-~:]*" .. "/") +vim.cmd("hi matchURL guifg=" .. require("nord.colors").palette.aurora.yellow) |