diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-07-14 22:49:04 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-07-14 22:49:04 +0530 |
commit | 0cc4ed7dd6fc5b06de245246723138996d449571 (patch) | |
tree | b8de0f83a99e0123bf740b9c8a278c9cbdc039e9 /.config/nvim/lua/justsaumit/colorscheme.lua | |
parent | 193034436557fb26adbc26f5fbd847016f6fe0be (diff) |
nvim: Adding basic neovim config
Diffstat (limited to '.config/nvim/lua/justsaumit/colorscheme.lua')
-rw-r--r-- | .config/nvim/lua/justsaumit/colorscheme.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.config/nvim/lua/justsaumit/colorscheme.lua b/.config/nvim/lua/justsaumit/colorscheme.lua new file mode 100644 index 0000000..67c166f --- /dev/null +++ b/.config/nvim/lua/justsaumit/colorscheme.lua @@ -0,0 +1,33 @@ +--configuration needs to be set BEFORE loading the color scheme with colorscheme tokyonight +vim.g.tokyonight_style = "night" +tokyonight_terminal_colors=true +tokyonight_italic_comments=true +tokyonight_italic_keywords=true +tokyonight_italic_functions=false +tokyonight_italic_variables=false +tokyonight_transparent=false +tokyonight_hide_inactive_statusline=false +tokyonight_sidebars={} +tokyonight_transparent_sidebar=false +tokyonight_dark_sidebar=true +tokyonight_dark_float=true +tokyonight_colors={} +tokyonight_lualine_bold=false + +--protected call +local colorscheme = "tokyonight" +local pywal = require('pywal') + +local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) +if not status_ok then + vim.notify("colorscheme " .. colorscheme .. " not found! :(") + pywal.setup() + return +end + +-- init.lua +vim.g.tokyodark_transparent_background = false +vim.g.tokyodark_enable_italic_comment = true +vim.g.tokyodark_enable_italic = true +vim.g.tokyodark_color_gamma = "1.0" +vim.cmd("colorscheme tokyodark") |