From 9712adfb1c6a61509515eb76973f596979da61f7 Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Fri, 6 Dec 2024 18:50:09 +0100 Subject: [PATCH] Disable (r)number and foldcolumn for repl by default --- lua/dap/repl.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/dap/repl.lua b/lua/dap/repl.lua index c484e6cf..b06e0c77 100644 --- a/lua/dap/repl.lua +++ b/lua/dap/repl.lua @@ -66,6 +66,10 @@ local function new_win(buf, winopts, wincmd) local win = api.nvim_get_current_win() api.nvim_win_set_buf(win, buf) if vim.fn.has("nvim-0.11") == 1 then + vim.wo[win][0].relativenumber = false + vim.wo[win][0].number = false + vim.wo[win][0].foldcolumn = "0" + vim.wo[win][0].signcolumn = "auto" vim.wo[win][0].wrap = false else vim.wo[win].wrap = false