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:
@@ -1,2 +0,0 @@
|
||||
-- AstroNvim removed; core settings live in lua/options.lua and lua/autocmds.lua
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- AstroNvim removed; LSP config uses native vim.lsp.config in lua/lsp/
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- AstroNvim removed; colorscheme is set via vim.cmd.colorscheme("apex-neon") in init.lua
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- nvim-autopairs is configured in editing.lua
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- blink.cmp LaTeX sources are configured in completion.lua
|
||||
return {}
|
||||
@@ -30,6 +30,7 @@ return {
|
||||
-- Load language-specific configs
|
||||
require("plugins.dap.rust")
|
||||
require("plugins.dap.js")
|
||||
require("plugins.dap.java")
|
||||
end,
|
||||
},
|
||||
|
||||
|
||||
5
dot_config/nvim/lua/plugins/dap/java.lua
Normal file
5
dot_config/nvim/lua/plugins/dap/java.lua
Normal 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
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
-- luasnip-latex-snippets is configured in completion.lua
|
||||
return {}
|
||||
@@ -49,6 +49,8 @@ return {
|
||||
-- DAP
|
||||
"codelldb",
|
||||
"js-debug-adapter",
|
||||
"java-debug-adapter",
|
||||
"java-test",
|
||||
},
|
||||
auto_update = false,
|
||||
run_on_start = true,
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
-- Removed: not part of the from-scratch config
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- LuaSnip is configured in completion.lua
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- Mason is configured in lsp.lua
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- Removed: not part of the from-scratch config
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- Removed: not part of the from-scratch config
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- Removed: not part of the from-scratch config
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- none-ls replaced by conform.nvim in editing.lua
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- Removed: not part of the from-scratch config
|
||||
return {}
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
-- Removed: not part of the from-scratch config
|
||||
return {}
|
||||
@@ -1,2 +0,0 @@
|
||||
-- Removed: not part of the from-scratch config
|
||||
return {}
|
||||
@@ -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 },
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
-- nvim-treesitter dropped; latex parser available via system package or tree-sitter-cli
|
||||
return {}
|
||||
Reference in New Issue
Block a user