From 944b1671131f9d361770cbe4cbdfce997e784369 Mon Sep 17 00:00:00 2001 From: Alexander Kabolov Date: Sun, 15 Dec 2024 17:26:19 +0100 Subject: [PATCH] remove term numbers --- init.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 2d0b1482..10aaf8d7 100644 --- a/init.lua +++ b/init.lua @@ -105,6 +105,15 @@ vim.api.nvim_create_autocmd('TextYankPost', { end, }) +vim.api.nvim_create_autocmd('TermOpen', { + desc = 'Custom terminal settings', + group = vim.api.nvim_create_augroup('term-custom', { clear = true }), + callback = function() + vim.opt.number = false + vim.opt.relativenumber = false + end, +}) + -- [[ Install `lazy.nvim` plugin manager ]] -- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' @@ -753,13 +762,13 @@ require('lazy').setup({ -- change the command in the config to whatever the name of that colorscheme is. -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'loctvl842/monokai-pro.nvim', + 'folke/tokyonight.nvim', priority = 1000, -- Make sure to load this before all the other start plugins. init = function() -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'monokai-pro-spectrum' + vim.cmd.colorscheme 'tokyonight' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none'