From 7376cd39db5690faff9bef668862a9bba58677c1 Mon Sep 17 00:00:00 2001 From: Moshe Avni Date: Wed, 20 Dec 2023 19:32:20 +0200 Subject: [PATCH] colorscheme --- .config/nvim/lazy-lock.json | 2 +- .config/nvim/lua/plugins/init.lua | 35 ++++++++++++------------------- .config/nvim/lua/plugins/tree.lua | 8 +++---- 3 files changed, 18 insertions(+), 27 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index dccdf0aa..9d558c2a 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -29,7 +29,6 @@ "gen.nvim": { "branch": "main", "commit": "132c1de8d0320d7aa46a467e27f31acc1808bc13" }, "git-conflict.nvim": { "branch": "main", "commit": "4e0191c9a0ae05d7fbdcdc7f15cd358f56d23bfb" }, "gitsigns.nvim": { "branch": "main", "commit": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9" }, - "gruvbox-material": { "branch": "master", "commit": "7f56d9f9c4860df528031539d321a61f6e081dee" }, "iswap.nvim": { "branch": "master", "commit": "6b77e8a2235aebbc6d2df150d0c780200f0cefa2" }, "jsonpath.nvim": { "branch": "main", "commit": "ea7e07e935f3f95deda97f9f6dc87f7bcf3fb69a" }, "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, @@ -76,6 +75,7 @@ "nvim-ufo": { "branch": "main", "commit": "a15944ff8e3d570f504f743d55209275ed1169c4" }, "nvim-web-devicons": { "branch": "master", "commit": "a1425903ab52a0a0460622519e827f224e5b4fee" }, "oil.nvim": { "branch": "master", "commit": "24027ed8d7f3ee5c38cfd713915e2e16d89e79b3" }, + "onedark.nvim": { "branch": "master", "commit": "c5476a091b0f1b4e853db91c91ff941f848a1cdd" }, "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, "promise-async": { "branch": "main", "commit": "94f6f03c6c1e2aab551aacdf0c1e597a7269abb6" }, "rest.nvim": { "branch": "main", "commit": "84e81a19ab24ccf05c9233d34d4dfce61c233abe" }, diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua index 6931af06..780e2c8c 100644 --- a/.config/nvim/lua/plugins/init.lua +++ b/.config/nvim/lua/plugins/init.lua @@ -5,30 +5,21 @@ local M = { ------------------- -- Colorscheme -- ------------------- - -- { - -- 'navarasu/onedark.nvim', - -- config = function() - -- require('onedark').setup { - -- style = 'dark', - -- highlights = { - -- EndOfBuffer = { fg = '#61afef' }, - -- }, - -- } - -- require('onedark').load() - -- end, - -- }, - -- { - -- 'uloco/bluloco.nvim', - -- enabled = false, - -- lazy = false, - -- priority = 1000, - -- dependencies = { 'rktjmp/lush.nvim' }, - -- config = function() - -- vim.cmd [[colorscheme bluloco-dark]] - -- end, - -- }, + { + 'navarasu/onedark.nvim', + config = function() + require('onedark').setup { + style = 'dark', + highlights = { + EndOfBuffer = { fg = '#61afef' }, + }, + } + require('onedark').load() + end, + }, { 'sainnhe/gruvbox-material', + enabled = false, config = function() -- load the colorscheme here vim.cmd [[ diff --git a/.config/nvim/lua/plugins/tree.lua b/.config/nvim/lua/plugins/tree.lua index c7ed2bbf..ffc46f95 100644 --- a/.config/nvim/lua/plugins/tree.lua +++ b/.config/nvim/lua/plugins/tree.lua @@ -11,10 +11,6 @@ local function on_attach(bufnr) vim.keymap.del('n', 's', { buffer = bufnr }) vim.keymap.set('n', 'i', api.node.open.horizontal, opts 'Open: Horizontal Split') vim.keymap.set('n', 'cd', api.tree.change_root_to_node, opts 'CD') - -- vim.keymap.set('n', 'r', api.fs.rename, opts 'Rename') - -- vim.keymap.set('n', 'r', api.fs.rename_node, opts 'Rename node') - -- vim.keymap.set('n', 'r', api.fs.rename_basename, opts 'Rename basename') - -- vim.keymap.set('n', 'r', api.fs.rename_sub, opts 'Rename sub') vim.keymap.del('n', '', { buffer = bufnr }) local function move_file_to() @@ -41,6 +37,10 @@ M.config = function() local api = require 'nvim-tree.api' local utils = require 'user.utils' local nnoremap = utils.nnoremap + -- vim.cmd [[ + -- highlight! NvimTreeOpenedFolderIcon ctermfg=109 guifg=#d8a657 + -- highlight! NvimTreeClosedFolderIcon ctermfg=109 guifg=#d8a657 + -- ]] nvim_tree.setup { on_attach = on_attach,