From ea9f710eb5ce9757602c10b65ff4ed56ee824b10 Mon Sep 17 00:00:00 2001 From: dover_shen Date: Tue, 27 Aug 2024 22:56:16 +0800 Subject: [PATCH] patch-8-27-2024 --- init.lua | 46 ++++++++++++++++++++++++++++++--- lua/custom/plugins/terminal.lua | 23 +++++++++++++++++ 2 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 lua/custom/plugins/terminal.lua diff --git a/init.lua b/init.lua index ada39865..a3392d32 100644 --- a/init.lua +++ b/init.lua @@ -738,19 +738,59 @@ 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`. - 'sainnhe/everforest', + -- 'sainnhe/everforest', -- 'catppuccin/nvim', + 'navarasu/onedark.nvim', + -- 'Mofiqul/vscode.nvim', + -- 'folke/tokyonight', + -- 'AlexvZyl/nordic.nvim', + -- 'mhartington/oceanic-next', + -- 'ntk148v/habamax.nvim', + -- 'shaunsingh/nord.nvim', + -- 'fcancelinha/nordern.nvim', + lazy = false, priority = 1000, -- Make sure to load this before all the other start plugins. config = function() - vim.g.everforest_enable_italic = true + -- require('onedark').setup { + -- style = 'dark', + -- } + -- vim.g.everforest_enable_italic = true + -- vim.g.everforest_disable_terminal_colors = false -- vim.g.everforest_background = 'hard' + -- require('nordic').load() + -- require('lualine').setup { + -- options = { + -- theme = 'nordic', + -- }, + -- } + -- local palette = require 'nordic.colors' + -- require('nordic').setup { + -- override = { + -- TelescopePromptTitle = { + -- fg = palette.red.bright, + -- bg = palette.green.base, + -- italic = true, + -- underline = true, + -- sp = palette.yellow.dim, + -- undercurl = false, + -- }, + -- }, + -- } 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 'everforest' + -- vim.cmd.colorscheme 'tokyonight' + -- vim.cmd.colorscheme 'everforest' -- vim.cmd.colorscheme 'catppuccin-frappe' + vim.cmd.colorscheme 'onedark' + -- vim.cmd.colorscheme 'vscode' + -- vim.cmd.colorscheme 'nordic' + -- vim.cmd.colorscheme 'OceanicNext' + -- vim.cmd.colorscheme 'habamax' + -- vim.cmd.colorscheme 'nord' + -- vim.cmd.colorscheme 'nordern' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' diff --git a/lua/custom/plugins/terminal.lua b/lua/custom/plugins/terminal.lua new file mode 100644 index 00000000..26a5b5f4 --- /dev/null +++ b/lua/custom/plugins/terminal.lua @@ -0,0 +1,23 @@ +return { + { + 'akinsho/toggleterm.nvim', + version = '*', + config = function() + require('toggleterm').setup { + size = 15, + open_mapping = [[]], + } + -- function _G.set_terminal_keymaps() + -- local opts = { buffer = 0 } + -- vim.keymap.set('t', '', [[]], opts) + -- vim.keymap.set('t', 'jk', [[]], opts) + -- vim.keymap.set('t', '', [[wincmd h]], opts) + -- vim.keymap.set('t', '', [[wincmd j]], opts) + -- vim.keymap.set('t', '', [[wincmd k]], opts) + -- vim.keymap.set('t', '', [[wincmd l]], opts) + -- vim.keymap.set('t', '', [[]], opts) + -- end + -- vim.cmd 'autocmd! TermOpen term://* lua set_terminal_keymaps()' + end, + }, +}