From d95ca949175e854786b45dc7affbe40bc4a64f11 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Mon, 16 Oct 2023 20:19:51 +0200 Subject: [PATCH] change theme to tokyonight --- init.lua | 57 ++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 18 deletions(-) diff --git a/init.lua b/init.lua index 460c953..b908535 100644 --- a/init.lua +++ b/init.lua @@ -144,14 +144,26 @@ require('lazy').setup({ }, }, + -- { + -- -- Theme inspired by Atom + -- -- 'ellisonleao/gruvbox.nvim', + -- "folke/tokyonight.nvim", + -- priority = 1000, + -- config = function() + -- vim.cmd.colorscheme 'tokyonight-night' + -- vim.cmd('highlight! link SignColumn Normal') + -- end, + -- opts = { + -- style = "storm", + -- transparent = true + -- } + -- }, { - -- Theme inspired by Atom - 'ellisonleao/gruvbox.nvim', - priority = 1000, - config = function() - vim.cmd.colorscheme 'gruvbox' - vim.cmd('highlight! link SignColumn Normal') - end, + "folke/tokyonight.nvim", + lazy = false, + priority = 1000, + opts = { + }, }, { @@ -210,7 +222,8 @@ require('lazy').setup({ 'nvim-treesitter/nvim-treesitter', dependencies = { 'nvim-treesitter/nvim-treesitter-textobjects', - 'HiPhish/nvim-ts-rainbow2', + 'hiphish/rainbow-delimiters.nvim', + -- 'HiPhish/nvim-ts-rainbow2', }, build = ':TSUpdate', }, @@ -234,6 +247,14 @@ require('lazy').setup({ -- See `:help vim.o` -- NOTE: You can change these options as you wish! +require("tokyonight").setup({ + style = "night", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day` + transparent = true, -- Enable this to disable setting the background color +}) + +vim.cmd[[colorscheme tokyonight]] + + -- Set highlight on search vim.o.hlsearch = false @@ -255,7 +276,7 @@ vim.o.mouse = 'a' -- Sync clipboard between OS and Neovim. -- Remove this option if you want your OS clipboard to remain independent. -- See `:help 'clipboard'` -vim.o.clipboard = 'unnamedplus' +-- vim.o.clipboard = 'unnamedplus' -- Enable break indent vim.o.breakindent = true @@ -369,15 +390,15 @@ require('nvim-treesitter.configs').setup { node_decremental = '', }, }, - rainbow = { - enable = true, - -- list of languages you want to disable the plugin for - -- disable = { 'jsx', 'cpp' }, - -- Which query to use for finding delimiters - query = 'rainbow-parens', - -- Highlight the entire buffer all at once - strategy = require('ts-rainbow').strategy.global, - }, + -- rainbow = { + -- enable = true, + -- -- list of languages you want to disable the plugin for + -- -- disable = { 'jsx', 'cpp' }, + -- -- Which query to use for finding delimiters + -- query = 'rainbow-parens', + -- -- Highlight the entire buffer all at once + -- -- strategy = require('ts-rainbow').strategy.global, + -- }, textobjects = { select = { enable = true,