From 9b28c6977ef048ba748c940b8259282b2f6b34a1 Mon Sep 17 00:00:00 2001 From: Leslie Kerman Date: Mon, 18 Jul 2022 14:35:57 +0800 Subject: [PATCH] Add colorschemes --- lua/configs/autocomplete.lua | 2 +- lua/core/keymaps.lua | 1 + lua/core/plugins.lua | 2 ++ lua/core/theme.lua | 38 ++++++++++++++++++++---------------- 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/lua/configs/autocomplete.lua b/lua/configs/autocomplete.lua index f83be48..88b329f 100644 --- a/lua/configs/autocomplete.lua +++ b/lua/configs/autocomplete.lua @@ -105,7 +105,7 @@ function M.config() -- List of all pre-configured LSP servers: -- github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md require 'lspconfig'.gopls.setup {} - local servers = { 'ccls', 'html', 'tsserver', 'rust_analyzer', 'bashls', 'pyright', 'gopls', 'sumneko_lua' } + local servers = { 'ccls', 'rust_analyzer', 'pyright', 'sumneko_lua' } for _, lsp in pairs(servers) do require('lspconfig')[lsp].setup { on_attach = on_attach diff --git a/lua/core/keymaps.lua b/lua/core/keymaps.lua index dc359bc..b518747 100644 --- a/lua/core/keymaps.lua +++ b/lua/core/keymaps.lua @@ -1,6 +1,7 @@ vim.g.mapleader = ';' -- keymaps +vim.keymap.set('i', '', '') -- f: file tree vim.keymap.set('n', '', ':NvimTreeToggle') vim.keymap.set('n', 'ft', ':NvimTreeToggle') diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua index 674d00b..13534b6 100644 --- a/lua/core/plugins.lua +++ b/lua/core/plugins.lua @@ -24,6 +24,8 @@ return require('packer').startup(function() -- use 'liuchengxu/space-vim-dark' -- use 'ahmedabdulrahman/aylin.vim' use "rebelot/kanagawa.nvim" + use 'NLKNguyen/papercolor-theme' + use 'liuchengxu/space-vim-dark' -- file tree use { diff --git a/lua/core/theme.lua b/lua/core/theme.lua index 2683b22..e9c5aa4 100644 --- a/lua/core/theme.lua +++ b/lua/core/theme.lua @@ -20,23 +20,27 @@ --vim.g.tokyonight_colors = { hint = "orange", error = "#cb5550" } --vim.cmd('colorscheme sonokai') +-- space vim dark +vim.g.space_vim_dark_background = 234 -- 234 (darkest) ~ 238 (lightest) +vim.cmd("colorscheme space-vim-dark"); + -- kanagwa -- Default options: -require('kanagawa').setup({ - undercurl = true, -- enable undercurls - commentStyle = { italic = true }, - functionStyle = {}, - keywordStyle = { italic = true}, - statementStyle = { bold = true }, - typeStyle = {}, - variablebuiltinStyle = { italic = true}, - specialReturn = true, -- special highlight for the return keyword - specialException = true, -- special highlight for exception handling keywords - transparent = false, -- do not set background color - dimInactive = false, -- dim inactive window `:h hl-NormalNC` - globalStatus = false, -- adjust window separators highlight for laststatus=3 - colors = {}, - overrides = {}, -}) +--require('kanagawa').setup({ +-- undercurl = true, -- enable undercurls +-- commentStyle = { italic = true }, +-- functionStyle = {}, +-- keywordStyle = { italic = true}, +-- statementStyle = { bold = true }, +-- typeStyle = {}, +-- variablebuiltinStyle = { italic = true}, +-- specialReturn = true, -- special highlight for the return keyword +-- specialException = true, -- special highlight for exception handling keywords +-- transparent = false, -- do not set background color +-- dimInactive = false, -- dim inactive window `:h hl-NormalNC` +-- globalStatus = false, -- adjust window separators highlight for laststatus=3 +-- colors = {}, +-- overrides = {}, +--}) -vim.cmd("colorscheme kanagawa") +--vim.cmd("colorscheme kanagawa")