From 63feeb9f369fc6176e85c1c2d8fcc863caad1946 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Tue, 10 Feb 2026 12:32:48 +0100 Subject: start new MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .vim/after/ftplugin/c.lua | 1 - .vim/after/ftplugin/html.lua | 20 ----- .vim/after/ftplugin/lua.lua | 2 - .vim/after/ftplugin/mail.lua | 2 - .vim/after/ftplugin/markdown.lua | 6 -- .vim/after/ftplugin/mediawiki.lua | 5 -- .vim/after/queries.bak/markdown/highlights.scm | 100 --------------------- .../queries.bak/markdown_inline/highlights.scm | 11 --- 8 files changed, 147 deletions(-) delete mode 100644 .vim/after/ftplugin/c.lua delete mode 100644 .vim/after/ftplugin/html.lua delete mode 100644 .vim/after/ftplugin/lua.lua delete mode 100644 .vim/after/ftplugin/mail.lua delete mode 100644 .vim/after/ftplugin/markdown.lua delete mode 100644 .vim/after/ftplugin/mediawiki.lua delete mode 100644 .vim/after/queries.bak/markdown/highlights.scm delete mode 100644 .vim/after/queries.bak/markdown_inline/highlights.scm (limited to '.vim/after') diff --git a/.vim/after/ftplugin/c.lua b/.vim/after/ftplugin/c.lua deleted file mode 100644 index 8b2cea9..0000000 --- a/.vim/after/ftplugin/c.lua +++ /dev/null @@ -1 +0,0 @@ -vim.opt_local.commentstring = '// %s' diff --git a/.vim/after/ftplugin/html.lua b/.vim/after/ftplugin/html.lua deleted file mode 100644 index 35f0bd1..0000000 --- a/.vim/after/ftplugin/html.lua +++ /dev/null @@ -1,20 +0,0 @@ -local function get_visual_selection() - local start_pos = vim.fn.getpos('v') - local end_pos = vim.fn.getpos('.') - local text = vim.fn.getregion(vim.fn.getpos('v'), vim.fn.getpos('.'), { type = vim.fn.mode() }) - return { start_pos = start_pos, end_pos = end_pos, text = text } -end - -vim.keymap.set('x', '', function() - local sel = get_visual_selection() - vim.print(sel) - vim.api.nvim_buf_set_text( - sel.start_pos[1], -- bufnum - sel.start_pos[2] - 1, -- vim.api funcs use 0-based indexing - sel.start_pos[3] - 1, - sel.end_pos[2] - 1, - sel.end_pos[3], - { '' .. table.concat(sel.text, '') .. '' } - ) - vim.api.nvim_input('') -end, { desc = 'html: make link' }) diff --git a/.vim/after/ftplugin/lua.lua b/.vim/after/ftplugin/lua.lua deleted file mode 100644 index ff08e11..0000000 --- a/.vim/after/ftplugin/lua.lua +++ /dev/null @@ -1,2 +0,0 @@ -vim.keymap.set('n', 'x', 'source %', { desc = 'Reload buf' }) -vim.keymap.set('n', 'X', ':Lazy reload ', { desc = 'Reload plugin' }) diff --git a/.vim/after/ftplugin/mail.lua b/.vim/after/ftplugin/mail.lua deleted file mode 100644 index fba17a2..0000000 --- a/.vim/after/ftplugin/mail.lua +++ /dev/null @@ -1,2 +0,0 @@ -vim.opt_local.cursorline = false -vim.opt_local.commentstring = '> %s' diff --git a/.vim/after/ftplugin/markdown.lua b/.vim/after/ftplugin/markdown.lua deleted file mode 100644 index 9b98392..0000000 --- a/.vim/after/ftplugin/markdown.lua +++ /dev/null @@ -1,6 +0,0 @@ --- TODO: no idea if this is the best way to do this --- the part that makes this work lives in ../../../after/ftplugin/markdown.lua -require('null-ls').disable('vale') -vim.keymap.set('n', 'v', function() - require('null-ls').toggle('vale') -end) diff --git a/.vim/after/ftplugin/mediawiki.lua b/.vim/after/ftplugin/mediawiki.lua deleted file mode 100644 index 5011e85..0000000 --- a/.vim/after/ftplugin/mediawiki.lua +++ /dev/null @@ -1,5 +0,0 @@ -vim.opt.wrap = true -vim.opt.linebreak = true - -vim.keymap.set({ 'n', 'v' }, 'j', 'gj', { buffer = true }) -vim.keymap.set({ 'n', 'v' }, 'k', 'gk', { buffer = true }) diff --git a/.vim/after/queries.bak/markdown/highlights.scm b/.vim/after/queries.bak/markdown/highlights.scm deleted file mode 100644 index 9aba385..0000000 --- a/.vim/after/queries.bak/markdown/highlights.scm +++ /dev/null @@ -1,100 +0,0 @@ -;; inherits: markdown -;; extends - -;From MDeiml/tree-sitter-markdown & Helix - -(list_item (task_list_marker_checked)) @comment (#set! "priority" 90) - -[ - (list_marker_plus) - (list_marker_minus) - (list_marker_star) - (list_marker_dot) - (list_marker_parenthesis) - (thematic_break) -] @string - -[ - (task_list_marker_checked) - (task_list_marker_unchecked) -] @task_marker - -[ - (atx_h1_marker) - (atx_h2_marker) - (atx_h3_marker) - (atx_h4_marker) - (atx_h5_marker) - (atx_h6_marker) -] @header_marker - -(atx_heading) @header_content - -; concealing -((atx_h1_marker) @header_marker.h1 - (#offset! @header_marker.h1 0 0 0 0) - ;(#set! conceal "󰉫 ") -) - -((atx_h2_marker) @header_marker.h2 - (#offset! @header_marker.h2 0 0 0 0) - ;(#set! conceal "󰉬 ") -) - -((atx_h3_marker) @header_marker.h3 - (#offset! @header_marker.h3 0 0 0 0) - ;(#set! conceal "󰉭 ") -) - -((atx_h4_marker) @header_marker.h4 - (#offset! @header_marker.h4 0 0 0 0) - ;(#set! conceal "󰉮 ") -) - -((atx_h5_marker) @header_marker.h5 - (#offset! @header_marker.h5 0 0 0 0) - ;(#set! conceal "󰉯 ") -) - -((atx_h6_marker) @header_marker.h6 - (#offset! @header_marker.h6 0 0 0 0) - ;(#set! conceal "󰉰 ") -) - -; used for first level list items -((list_marker_star) @list_marker.star - (#offset! @list_marker.star 0 0 0 -1) - ;(#set! conceal "󰅂 ") -) -; used for second level list items -((list_marker_minus) @list_marker.minus - (#offset! @list_marker.minus 0 0 0 -1) - ;(#set! conceal "󰍴 ") -) - -((list_marker_plus) @list_marker.plus - (#offset! @list_marker.plus 0 0 0 -1) - ;(#set! conceal "󰍴 ") -) -((list_marker_dot) @list_marker.dot - (#offset! @list_marker.dot 0 0 0 -1) - ;(#set! conceal "󰍴 ") -) -((list_marker_parenthesis) @list_marker.parenthesis - (#offset! @list_marker.parenthesis 0 0 0 -1) - ;(#set! conceal "󰍴 ") -) - -;; replace '[x]' with 󰄲 -((task_list_marker_checked) @text.todo.checked - (#offset! @text.todo.checked 0 -2 0 0) - (#set! conceal "☑ ") -) - -;; replace '[ ]' with 󰄱 -((task_list_marker_unchecked) @text.todo.unchecked - (#offset! @text.todo.unchecked 0 -2 0 0) - (#set! conceal "☐ ") -) - -([(minus_metadata)] @comment) diff --git a/.vim/after/queries.bak/markdown_inline/highlights.scm b/.vim/after/queries.bak/markdown_inline/highlights.scm deleted file mode 100644 index ab0a7f4..0000000 --- a/.vim/after/queries.bak/markdown_inline/highlights.scm +++ /dev/null @@ -1,11 +0,0 @@ -;; inherits: markdown_inline -;; extends - -([ - (code_span_delimiter) - (shortcut_link) -] @comment) - -([ - (link_text) -] @string) -- cgit 1.4.1