From 49ad47e5d27fd862e6d08ee96b565757c1cb1696 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sun, 20 Oct 2024 22:21:37 +0800 Subject: [PATCH] Update colorscheme + add cprev/cnext keybinds --- init.lua | 20 ++++++++++++++++++-- lazy-lock.json | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index a6c77fb..4f85ac6 100644 --- a/init.lua +++ b/init.lua @@ -193,6 +193,10 @@ vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' } -- Open file explorer vim.keymap.set('n', 'pv', vim.cmd.Ex, { desc = 'File explorer' }) +-- Quick fix list prev and next +vim.keymap.set('n', '', vim.cmd.cnext, { desc = 'Quick fix list next' }) +vim.keymap.set('n', '', vim.cmd.cprev, { desc = 'Quick fix list previous' }) + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -835,18 +839,30 @@ require('lazy').setup({ end, }, + { 'ellisonleao/gruvbox.nvim' }, + { + 'rebelot/kanagawa.nvim', + config = function() + require('kanagawa').setup { + keywordStyle = { italic = true }, + -- statementStyle = { italic = true }, + typeStyle = { bold = true }, + functionStyle = { bold = true }, + } + 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`. - 'ellisonleao/gruvbox.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 'gruvbox' + vim.cmd.colorscheme 'kanagawa' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' diff --git a/lazy-lock.json b/lazy-lock.json index 1473662..4cf4b2e 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -6,8 +6,8 @@ "conform.nvim": { "branch": "master", "commit": "f5bd8419f8a29451e20bdb1061a54fe13d5c8de3" }, "fidget.nvim": { "branch": "main", "commit": "d855eed8a06531a7e8fd0684889b2943f373c469" }, "gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" }, - "gruvbox.nvim": { "branch": "main", "commit": "49d9c0b150ba70efcd831ec7b3cb8ee740067045" }, "harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" }, + "kanagawa.nvim": { "branch": "master", "commit": "f491b0fe68fffbece7030181073dfe51f45cda81" }, "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, "lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" }, "luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },