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`