From 0e7b1c8f73db6f08d71725b78081c43aae0afc7a Mon Sep 17 00:00:00 2001 From: rapzy Date: Thu, 14 Mar 2024 14:29:13 +0545 Subject: [PATCH] cursor color fix --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index d254fc10..44a3c8ca 100644 --- a/init.lua +++ b/init.lua @@ -193,7 +193,7 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win -- CUSTOM KEYBINDINGS -- jk to enter normal mode -vim.keymap.set('i', 'jk', '') +vim.keymap.set('i', 'kj', '') -- Open Netrw -- vim.keymap.set('n', 'rw', 'Ex!') @@ -238,6 +238,7 @@ require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically + 'ThePrimeagen/vim-be-good', -- NVIM CHATGPT -- { -- 'jackMort/ChatGPT.nvim', @@ -786,6 +787,11 @@ require('lazy').setup({ -- 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-night' + -- vim.cmd 'highlight Cursor guifg=#5eaf77 guibg=#5eaf77' + + -- Lets cursor use highlight, n-v-c are modes. i-ci is for changing the cursor to | in insert mode + vim.opt.guicursor = 'n-v-c:block-Cursor/lCursor,i-ci:ver25-Cursor/lCursor' + vim.cmd 'highlight Cursor guifg=#53b06f guibg=#53b06f' -- You can configure highlights by doing something like vim.cmd.hi 'Comment gui=none'