From 989612910ef24d964836812e6b9809af184ca0b5 Mon Sep 17 00:00:00 2001 From: Mohammad Moosazadeh Date: Thu, 27 Jun 2024 09:41:41 -0400 Subject: [PATCH] Enable Spelling and Change them to tokyonight --- init.lua | 78 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 41 insertions(+), 37 deletions(-) diff --git a/init.lua b/init.lua index 040f8a2f..2d53a58c 100644 --- a/init.lua +++ b/init.lua @@ -154,6 +154,10 @@ vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.opt.scrolloff = 10 +-- Enable Spell +vim.opt.spelllang = 'en_us' +vim.opt.spell = true + -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` @@ -788,49 +792,49 @@ require('lazy').setup({ end, }, - -- { -- You can easily change to a different colorscheme. - -- -- Change the name of the colorscheme plugin below, and then - -- -- 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`. - -- '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 'tokyonight-moon' - -- -- - -- -- -- You can configure highlights by doing something like: - -- -- vim.cmd.hi 'Comment gui=none' - -- -- end, - -- config = function() - -- require('tokyonight').setup { - -- -- your configuration comes here - -- -- or leave it empty to use the default settings - -- style = 'storm', -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day` - -- light_style = 'day', -- The theme is used when the background is set to light - -- transparent = true, - -- } - -- - -- vim.cmd.colorscheme 'tokyonight' - -- vim.cmd.hi 'Comment gui=none' - -- end, - -- }, - { - 'catppuccin/nvim', - name = 'catppuccin', - priority = 1000, + { -- You can easily change to a different colorscheme. + -- Change the name of the colorscheme plugin below, and then + -- 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`. + '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 'tokyonight-moon' + -- + -- -- You can configure highlights by doing something like: + -- vim.cmd.hi 'Comment gui=none' + -- end, config = function() - require('catppuccin').setup { - -- flavour = 'mocha', -- latte, frappe, macchiato, mocha - -- transparent_background = true, + require('tokyonight').setup { + -- your configuration comes here + -- or leave it empty to use the default settings + style = 'night', -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day` + -- light_style = 'day', -- The theme is used when the background is set to light + -- transparent = true, } - vim.cmd.colorscheme 'catppuccin' + vim.cmd.colorscheme 'tokyonight' vim.cmd.hi 'Comment gui=none' end, }, + -- { + -- 'catppuccin/nvim', + -- name = 'catppuccin', + -- priority = 1000, + -- config = function() + -- require('catppuccin').setup { + -- -- flavour = 'mocha', -- latte, frappe, macchiato, mocha + -- -- transparent_background = true, + -- } + -- + -- vim.cmd.colorscheme 'catppuccin' + -- vim.cmd.hi 'Comment gui=none' + -- end, + -- }, -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },