Browse Source

Add colorschemes

pull/14/head
Leslie Kerman 2 years ago
parent
commit
9b28c6977e
  1. 2
      lua/configs/autocomplete.lua
  2. 1
      lua/core/keymaps.lua
  3. 2
      lua/core/plugins.lua
  4. 38
      lua/core/theme.lua

2
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

1
lua/core/keymaps.lua

@ -1,6 +1,7 @@
vim.g.mapleader = ';'
-- keymaps
vim.keymap.set('i', '<C-s>', '<esc>')
-- f: file tree
vim.keymap.set('n', '<F3>', ':NvimTreeToggle<cr>')
vim.keymap.set('n', '<leader>ft', ':NvimTreeToggle<cr>')

2
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 {

38
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")

Loading…
Cancel
Save