aboutsummaryrefslogtreecommitdiff
path: root/nvim/.config
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2022-11-14 13:22:25 +0200
committeromagdy7 <omar.professional8777@gmail.com>2022-11-14 13:22:25 +0200
commita8d56b91efaebf9a8501f99bf45a3047c4dd72b7 (patch)
tree1992ef6fd80ad2ed44332d177e4e5594dbed6ad5 /nvim/.config
parentbacd7665cfcef1321b13fbbe14e3e20bb0b54bd0 (diff)
downloaddotfiles-a8d56b91efaebf9a8501f99bf45a3047c4dd72b7.tar.xz
dotfiles-a8d56b91efaebf9a8501f99bf45a3047c4dd72b7.zip
Changed colorscheme and added a few shortcuts in nvim
Diffstat (limited to 'nvim/.config')
-rw-r--r--nvim/.config/nvim/init.lua43
-rw-r--r--nvim/.config/nvim/lua/user/colorscheme.lua2
-rw-r--r--nvim/.config/nvim/lua/user/keymaps.lua16
-rw-r--r--nvim/.config/nvim/lua/user/lualine.lua10
-rw-r--r--nvim/.config/nvim/lua/user/options.lua4
-rw-r--r--nvim/.config/nvim/lua/user/plugins.lua1
-rw-r--r--nvim/.config/nvim/plugin/packer_compiled.lua5
7 files changed, 38 insertions, 43 deletions
diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua
index cd7e329..3d15c1d 100644
--- a/nvim/.config/nvim/init.lua
+++ b/nvim/.config/nvim/init.lua
@@ -1,9 +1,9 @@
---[[ vim.g.material_style = "palenight" ]]
+--[[ vim.g.material_style = "deep ocean" ]]
-require('onedark').setup {
- style = 'deep',
- transparent = true,
-}
+--[[ require('onedark').setup { ]]
+--[[ style = 'deep', ]]
+--[[ transparent = true, ]]
+--[[ } ]]
require('material').setup{
disable = {
@@ -11,9 +11,13 @@ require('material').setup{
}
}
-require("nvim-treesitter.configs").setup {
- yati = { enable = true },
-}
+require('catppuccin').setup({
+ transparent_background = true,
+})
+
+--[[ require("nvim-treesitter.configs").setup { ]]
+--[[ yati = { enable = true }, ]]
+--[[ } ]]
require "user.options"
@@ -23,7 +27,6 @@ require "user.colorscheme"
require "user.cmp"
require "user.lsp"
require "user.snippets"
---[[ require "user.luasnip" ]]
require "user.telescope"
require "user.treesitter"
require "user.autopairs"
@@ -39,24 +42,4 @@ require "user.indentline"
require "user.alpha"
require "user.whichkey"
require "user.autocommands"
---require "material"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+require "material"
diff --git a/nvim/.config/nvim/lua/user/colorscheme.lua b/nvim/.config/nvim/lua/user/colorscheme.lua
index 37ab651..f8c4659 100644
--- a/nvim/.config/nvim/lua/user/colorscheme.lua
+++ b/nvim/.config/nvim/lua/user/colorscheme.lua
@@ -1,6 +1,6 @@
vim.cmd [[
try
- colorscheme onedark
+ colorscheme catppuccin-mocha
catch /^Vim\%((\a\+)\)\=:E185/
colorscheme default
set background=background
diff --git a/nvim/.config/nvim/lua/user/keymaps.lua b/nvim/.config/nvim/lua/user/keymaps.lua
index 7e25c15..07e8a49 100644
--- a/nvim/.config/nvim/lua/user/keymaps.lua
+++ b/nvim/.config/nvim/lua/user/keymaps.lua
@@ -27,10 +27,10 @@ keymap("n", "<C-k>", "<C-w>k", opts)
keymap("n", "<C-l>", "<C-w>l", opts)
-- Resize with arrows
-keymap("n", "<C-Up>", ":resize -2<CR>", opts)
-keymap("n", "<C-Down>", ":resize +2<CR>", opts)
-keymap("n", "<C-Left>", ":vertical resize +2<CR>", opts)
-keymap("n", "<C-Right>", ":vertical resize -2<CR>", opts)
+keymap("n", "<C-Up>", ":resize -5<CR>", opts)
+keymap("n", "<C-Down>", ":resize +5<CR>", opts)
+keymap("n", "<C-Left>", ":vertical resize +3<CR>", opts)
+keymap("n", "<C-Right>", ":vertical resize -3<CR>", opts)
-- Navigate buffers
keymap("n", "<S-l>", ":bnext<CR>", opts)
@@ -66,9 +66,15 @@ keymap("x", "<A-k>", ":move '<-2<CR>gv-gv", opts)
-- Jumping quickly between two files
keymap("n", "<leader><leader>", ":bprevious<CR>", opts)
+-- Centering after page moves or searching for something
+keymap("n", "<C-d>", "<C-d>zz", opts)
+keymap("n", "<C-u>", "<C-u>zz", opts)
+keymap("n", "n", "nzz", opts)
+
--CompetiTest
keymap("n", "<F2>", ":CompetiTestReceive<CR>", opts)
-keymap("n", "<F3>", ":CompetiTestRun<CR>", opts)
+keymap("n", "<F5>", ":CompetiTestAdd<CR>", opts)
+keymap("n", "<F4>", ":CompetiTestRun<CR>", opts)
--sourcing luasnips
keymap("n", "<leader><leader>s", "<cmd> source ~/.config/nvim/lua/user/luasnip.lua<CR>", opts)
diff --git a/nvim/.config/nvim/lua/user/lualine.lua b/nvim/.config/nvim/lua/user/lualine.lua
index f02717e..65523af 100644
--- a/nvim/.config/nvim/lua/user/lualine.lua
+++ b/nvim/.config/nvim/lua/user/lualine.lua
@@ -101,15 +101,15 @@ local colors = {
black = '#000000',
white = '#ffffff',
red = '#B22222',
- violet = '#c95d05',
- grey = '#101010',
+ violet = '#DA5A77',
+ grey = '#181818',
}
local bubbles_theme = {
normal = {
a = { fg = colors.black, bg = colors.violet },
b = { fg = colors.white, bg = colors.grey },
- c = { fg = colors.grey, bg = colors.grey },
+ c = { fg = colors.white, bg = colors.grey },
},
insert = { a = { fg = colors.black, bg = colors.blue } },
@@ -131,7 +131,7 @@ require('lualine').setup {
},
sections = {
lualine_a = {
- { 'mode', separator = { left = '' }, right_padding = 2 },
+ { 'mode', separator = { left = '' }, right_padding = 4 },
},
lualine_b = { 'filename', 'branch' },
lualine_c = { 'fileformat' },
@@ -139,7 +139,7 @@ require('lualine').setup {
lualine_x = {},
lualine_y = { 'filetype', 'progress' },
lualine_z = {
- { 'location', separator = { right = '' }, left_padding = 2 },
+ { 'location', separator = { right = '' }, left_padding = 4 },
},
},
inactive_sections = {
diff --git a/nvim/.config/nvim/lua/user/options.lua b/nvim/.config/nvim/lua/user/options.lua
index bf3af7b..cc4fa09 100644
--- a/nvim/.config/nvim/lua/user/options.lua
+++ b/nvim/.config/nvim/lua/user/options.lua
@@ -29,10 +29,10 @@ local options = {
relativenumber = true, -- set relative numbered lines
numberwidth = 4, -- set number column width to 2 {default 4}
signcolumn = "yes", -- always show the sign column, otherwise it would shift the text each time
- wrap = true, -- display lines as one long line
+ wrap = false, -- display lines as one long line
scrolloff = 8, -- is one of my fav
sidescrolloff = 8,
- guifont = "JetBrainsMonoExtraBold Nerd Font:h10", -- the font used in graphical neovim applications
+ guifont = "comic mono:h15", -- the font used in graphical neovim applications
}
vim.opt.shortmess:append "c"
diff --git a/nvim/.config/nvim/lua/user/plugins.lua b/nvim/.config/nvim/lua/user/plugins.lua
index a147567..2924fe6 100644
--- a/nvim/.config/nvim/lua/user/plugins.lua
+++ b/nvim/.config/nvim/lua/user/plugins.lua
@@ -86,6 +86,7 @@ return packer.startup(function(use)
use 'kyazdani42/nvim-palenight.lua'
use 'navarasu/onedark.nvim'
use 'ellisonleao/gruvbox.nvim'
+ use { "catppuccin/nvim", as = "catppuccin" }
-- cmp plugins
use "hrsh7th/nvim-cmp" -- The completion plugin
diff --git a/nvim/.config/nvim/plugin/packer_compiled.lua b/nvim/.config/nvim/plugin/packer_compiled.lua
index beda03e..5efe217 100644
--- a/nvim/.config/nvim/plugin/packer_compiled.lua
+++ b/nvim/.config/nvim/plugin/packer_compiled.lua
@@ -99,6 +99,11 @@ _G.packer_plugins = {
path = "/home/pengu/.local/share/nvim/site/pack/packer/start/bufferline.nvim",
url = "https://github.com/akinsho/bufferline.nvim"
},
+ catppuccin = {
+ loaded = true,
+ path = "/home/pengu/.local/share/nvim/site/pack/packer/start/catppuccin",
+ url = "https://github.com/catppuccin/nvim"
+ },
["cmp-buffer"] = {
loaded = true,
path = "/home/pengu/.local/share/nvim/site/pack/packer/start/cmp-buffer",