From c678cb061a05c1c4cfb817df0d7347439d199ce5 Mon Sep 17 00:00:00 2001 From: Warwick Date: Tue, 13 May 2025 14:20:16 +0100 Subject: [PATCH] Removed line numbers for terminals opened with :ter* --- lua/core/defaults.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/core/defaults.lua b/lua/core/defaults.lua index 9e39877..4c22e7c 100644 --- a/lua/core/defaults.lua +++ b/lua/core/defaults.lua @@ -17,6 +17,8 @@ vim.opt.expandtab = true -- line numbers are handy vim.opt.number = true +-- But not in the terminal +vim.api.nvim_create_autocmd({ 'TermOpen' }, { command = "setlocal nonumber" }) -- I want to be able to read long lines nicely vim.wo.wrap = true @@ -28,7 +30,7 @@ vim.opt.conceallevel = 2 -- I want neovim to know I want british spellings vim.cmd('language en_GB.utf8') -vim.opt.spelllang='en_gb' +vim.opt.spelllang = 'en_gb' -- Use LSP to format bufer automatically just before write --vim.api.nvim_create_autocmd("BufWritePre", {