From f4c439d58eeaf7f002a2ebff5d67ed6fe85da05b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 4 Dec 2025 10:31:47 +0100 Subject: [PATCH] nvim: Fix nvim log spam The logging directory in `~/.local/state/nvim/` is absurdly large in my setup currently. The prime culprits are `wrapping.nvim` which logs each heuristic currently, and I've simply disabled logging for. The bigger one is `lsp.log` which is over 1GB (!) currently, and over 100.000 of those lines were generated by the `htmx-lsp`. That's fair since it is in early development, so I've removed it for the time being. --- nvim/.config/nvim/lua/core/languages.lua | 2 +- nvim/.config/nvim/lua/modules/prose.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/core/languages.lua b/nvim/.config/nvim/lua/core/languages.lua index 9cac9f2..15a8b05 100644 --- a/nvim/.config/nvim/lua/core/languages.lua +++ b/nvim/.config/nvim/lua/core/languages.lua @@ -72,7 +72,7 @@ local languages = { dap = { "delve" }, }, graphql = { format = { graphql = { "prettier" } } }, - html = { lsp = { htmx = {} }, format = { html = { "prettier", "rustywind" } } }, + html = { format = { html = { "prettier", "rustywind" } } }, julia = { lsp = { julials = {} }, ts = { "julia" } }, json = { lsp = { jsonls = {} }, diff --git a/nvim/.config/nvim/lua/modules/prose.lua b/nvim/.config/nvim/lua/modules/prose.lua index 44f659c..0d277f3 100644 --- a/nvim/.config/nvim/lua/modules/prose.lua +++ b/nvim/.config/nvim/lua/modules/prose.lua @@ -75,9 +75,11 @@ local prose_plugs = { "andrewferrier/wrapping.nvim", opts = { create_keymaps = false, + create_commands = false, notify_on_switch = false, auto_set_mode_filetype_allowlist = prose_ft, softener = { quarto = 2.0, markdown = 2.0, djot = 2.0 }, + log_path = "/dev/null", -- disable logging for normal operations }, ft = prose_ft, keys = {