patch-2024/08/22

This commit is contained in:
dover_shen 2024-08-22 03:00:52 +08:00
parent 84ea367081
commit 4b0e638557
2 changed files with 43 additions and 11 deletions

View File

@ -1,4 +1,4 @@
-- Set <space> as the leader key
-- Set <space> as the leader keyinit
-- See `:help mapleader`
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
vim.g.mapleader = ' '
@ -6,7 +6,6 @@ vim.g.maplocalleader = ' '
-- Set to true if you have a Nerd Font installed and selected in the terminal
vim.g.have_nerd_font = true
-- [[ Setting options ]]
-- See `:help vim.opt`
-- NOTE: You can change these options as you wish!
@ -522,6 +521,7 @@ require('lazy').setup({
prettierd = {},
prettier = {},
eslint = {},
eslint_d = {},
html = {},
cssls = {},
@ -738,24 +738,23 @@ 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',
'sainnhe/everforest',
-- 'catppuccin/nvim',
priority = 1000, -- Make sure to load this before all the other start plugins.
config = function()
vim.g.everforest_enable_italic = true
-- vim.g.everforest_background = 'hard'
end,
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'
vim.cmd.colorscheme 'everforest'
-- vim.cmd.colorscheme 'catppuccin-frappe'
-- You can configure highlights by doing something like:
vim.cmd.hi 'Comment gui=none'
end,
config = function()
require('kanagawa').setup {
background = {
dark = 'dragon',
},
}
end,
},
-- Highlight todo, notes, etc in comments
@ -823,6 +822,15 @@ require('lazy').setup({
additional_vim_regex_highlighting = { 'ruby' },
},
indent = { enable = true, disable = { 'ruby' } },
incremental_selection = {
enable = true,
keymaps = {
init_selection = 'gnn',
node_incremental = 'grn',
scope_incremental = 'grc',
node_decremental = 'grm',
},
},
},
config = function(_, opts)
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`

View File

@ -26,6 +26,18 @@ return {
vim.keymap.set('n', '<leader>4', function()
harpoon:list():select(4)
end)
vim.keymap.set('n', '<leader>5', function()
harpoon:list():select(5)
end)
vim.keymap.set('n', '<leader>6', function()
harpoon:list():select(6)
end)
vim.keymap.set('n', '<leader>7', function()
harpoon:list():select(7)
end)
vim.keymap.set('n', '<leader>8', function()
harpoon:list():select(8)
end)
vim.keymap.set('n', '<leader><C-h>', function()
harpoon:list():replace_at(1)
end)
@ -38,5 +50,17 @@ return {
vim.keymap.set('n', '<leader><C-l>', function()
harpoon:list():replace_at(4)
end)
vim.keymap.set('n', '<leader><C-n>', function()
harpoon:list():replace_at(5)
end)
vim.keymap.set('n', '<leader><C-m>', function()
harpoon:list():replace_at(6)
end)
vim.keymap.set('n', '<leader><C-,>', function()
harpoon:list():replace_at(7)
end)
vim.keymap.set('n', '<leader><C-.>', function()
harpoon:list():replace_at(8)
end)
end,
}