From 0e4908bc8341f960fe3da1973bba5cb2356720d1 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 14 Nov 2024 20:15:09 +0100 Subject: [PATCH] adding flash --- init.lua | 4 ++-- lua/custom/options.lua | 3 +++ lua/custom/plugins/flash.lua | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 lua/custom/plugins/flash.lua diff --git a/init.lua b/init.lua index 8ee91ce2..f5fa101e 100644 --- a/init.lua +++ b/init.lua @@ -743,13 +743,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`. - 'rebelot/kanagawa.nvim', + 'loctvl842/monokai-pro.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 'kanagawa-dragon' + vim.cmd.colorscheme 'monokai-pro-spectrum' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' diff --git a/lua/custom/options.lua b/lua/custom/options.lua index 505356f9..c235a8d4 100644 --- a/lua/custom/options.lua +++ b/lua/custom/options.lua @@ -67,3 +67,6 @@ vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.opt.scrolloff = 10 + +-- Spell Checking +vim.opt.spell = true diff --git a/lua/custom/plugins/flash.lua b/lua/custom/plugins/flash.lua new file mode 100644 index 00000000..a8d36f4f --- /dev/null +++ b/lua/custom/plugins/flash.lua @@ -0,0 +1,14 @@ +return { + 'folke/flash.nvim', + event = 'VeryLazy', + ---@type Flash.Config + opts = {}, + -- stylua: ignore + keys = { + { "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" }, + { "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" }, + { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" }, + { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" }, + { "", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" }, + }, +}