nvim: fill gaps, add knap.nvim, clean up stubs

- Java DAP: add java-debug-adapter + java-test via mason, populate
  jdtls bundles with debug/test JARs
- neotest: add marilari88/neotest-vitest adapter
- git: promote diffview.nvim to first-class plugin with keymaps
  (<leader>gD diff, <leader>gH file history)
- pandoc: replace stub with knap.nvim for live markdown→PDF preview
  via pandoc + lualatex + zathura (<leader>mp toggle, <leader>mj jump)
- remove 17 empty stub files left over from AstroNvim migration
This commit is contained in:
2026-04-12 00:54:55 +02:00
parent 4acd9c70f4
commit 19c6591658
24 changed files with 52 additions and 40 deletions

View File

@@ -1,2 +0,0 @@
-- AstroNvim removed; core settings live in lua/options.lua and lua/autocmds.lua
return {}

View File

@@ -1,2 +0,0 @@
-- AstroNvim removed; LSP config uses native vim.lsp.config in lua/lsp/
return {}

View File

@@ -1,2 +0,0 @@
-- AstroNvim removed; colorscheme is set via vim.cmd.colorscheme("apex-neon") in init.lua
return {}

View File

@@ -1,2 +0,0 @@
-- nvim-autopairs is configured in editing.lua
return {}

View File

@@ -1,2 +0,0 @@
-- blink.cmp LaTeX sources are configured in completion.lua
return {}

View File

@@ -30,6 +30,7 @@ return {
-- Load language-specific configs
require("plugins.dap.rust")
require("plugins.dap.js")
require("plugins.dap.java")
end,
},

View File

@@ -0,0 +1,5 @@
-- Java DAP is managed by nvim-jdtls, not a standalone adapter.
-- jdtls registers the adapter and calls setup_dap_main_class_configs()
-- in its on_attach (see plugins/java.lua). Nothing extra needed here.
local M = {}
return M

View File

@@ -41,6 +41,16 @@ return {
},
},
-- Split diff view and file history
{
"sindrets/diffview.nvim",
cmd = { "DiffviewOpen", "DiffviewClose", "DiffviewFileHistory" },
keys = {
{ "<leader>gD", "<cmd>DiffviewOpen<cr>", desc = "Diff working tree" },
{ "<leader>gH", "<cmd>DiffviewFileHistory %<cr>", desc = "File history" },
},
},
-- Magit-style full git interface
{
"NeogitOrg/neogit",

View File

@@ -70,7 +70,18 @@ return {
},
},
init_options = {
bundles = {},
bundles = (function()
local b = {}
vim.list_extend(b, vim.split(
vim.fn.glob(vim.fn.stdpath("data") .. "/mason/packages/java-debug-adapter/extension/server/com.microsoft.java.debug.plugin-*.jar"),
"\n", { trimempty = true }
))
vim.list_extend(b, vim.split(
vim.fn.glob(vim.fn.stdpath("data") .. "/mason/packages/java-test/extension/server/*.jar"),
"\n", { trimempty = true }
))
return b
end)(),
},
on_attach = function(client, bufnr)
-- Enable navic for breadcrumbs

View File

@@ -1,2 +0,0 @@
-- luasnip-latex-snippets is configured in completion.lua
return {}

View File

@@ -49,6 +49,8 @@ return {
-- DAP
"codelldb",
"js-debug-adapter",
"java-debug-adapter",
"java-test",
},
auto_update = false,
run_on_start = true,

View File

@@ -1,2 +0,0 @@
-- Removed: not part of the from-scratch config
return {}

View File

@@ -1,2 +0,0 @@
-- LuaSnip is configured in completion.lua
return {}

View File

@@ -1,2 +0,0 @@
-- Mason is configured in lsp.lua
return {}

View File

@@ -1,2 +0,0 @@
-- Removed: not part of the from-scratch config
return {}

View File

@@ -1,2 +0,0 @@
-- Removed: not part of the from-scratch config
return {}

View File

@@ -1,2 +0,0 @@
-- Removed: not part of the from-scratch config
return {}

View File

@@ -1,2 +0,0 @@
-- none-ls replaced by conform.nvim in editing.lua
return {}

View File

@@ -1,2 +0,0 @@
-- Removed: not part of the from-scratch config
return {}

View File

@@ -1,2 +1,19 @@
-- Removed: not part of the from-scratch config
return {}
return {
{
"frabjous/knap",
ft = { "markdown" },
keys = {
{ "<leader>mp", function() require("knap").toggle_autopreviewing() end, ft = "markdown", desc = "Toggle live preview" },
{ "<leader>mj", function() require("knap").forward_jump() end, ft = "markdown", desc = "SyncTeX forward jump" },
},
config = function()
vim.g.knap_settings = {
-- markdown → PDF via pandoc
mdoutputext = "pdf",
mdtopdf = "pandoc %docroot% -o %outputfile% --pdf-engine=lualatex",
mdtopdfviewerlaunch = "zathura %outputfile%",
mdtopdfviewerrefresh = "none", -- zathura watches the file itself
}
end,
},
}

View File

@@ -1,2 +0,0 @@
-- Removed: not part of the from-scratch config
return {}

View File

@@ -1,2 +0,0 @@
-- Removed: not part of the from-scratch config
return {}

View File

@@ -6,6 +6,7 @@ return {
"nvim-neotest/nvim-nio",
"rouge8/neotest-rust",
"rcasia/neotest-java",
"marilari88/neotest-vitest",
},
keys = {
{ "<leader>tr", function() require("neotest").run.run() end, desc = "Run nearest test" },
@@ -19,9 +20,8 @@ return {
return {
adapters = {
require("neotest-rust")({ args = { "--no-capture" } }),
require("neotest-java")({
ignore_wrapper = false,
}),
require("neotest-java")({ ignore_wrapper = false }),
require("neotest-vitest"),
},
output = { open_on_run = false },
quickfix = { open = false },

View File

@@ -1,2 +0,0 @@
-- nvim-treesitter dropped; latex parser available via system package or tree-sitter-cli
return {}