Skip to content

Commit

Permalink
global statusline
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Adhyatma committed Mar 19, 2022
1 parent 6a13d7f commit 94f00ac
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
40 changes: 38 additions & 2 deletions lua/user/colorscheme.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,45 @@
require('onedark').setup {
-- Main options --
style = 'dark', -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
transparent = false, -- Show/hide background
term_colors = true, -- Change terminal color as per the selected theme style
ending_tildes = false, -- Show the end-of-buffer tildes. By default they are hidden
-- toggle theme style ---
toggle_style_key = '<leader>ts', -- Default keybinding to toggle
toggle_style_list = {'dark', 'darker', 'cool', 'deep', 'warm', 'warmer', 'light'}, -- List of styles to toggle between

-- Change code style ---
-- Options are italic, bold, underline, none
-- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold'
code_style = {
comments = 'italic',
keywords = 'none',
functions = 'none',
strings = 'none',
variables = 'none'
},

-- Custom Highlights --
colors = {}, -- Override default colors
highlights = {}, -- Override highlight groups

-- Plugins Config --
diagnostics = {
darker = true, -- darker colors for diagnostic
undercurl = true, -- use undercurl instead of underline for diagnostics
background = true, -- use background color for virtual text
},
}

vim.cmd [[
try
colorscheme tokyonight
" colorscheme kanagawa
" colorscheme tokyonight
" colorscheme kanagawa
colorscheme onedark
catch /^Vim\%((\a\+)\)\=:E185/
colorscheme default
set background=dark
endtry
]]


1 change: 1 addition & 0 deletions lua/user/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ end

require("lualine").setup({
options = {
globalstatus = true,
component_separators = "|",
section_separators = { left = "", right = "" },
disabled_filetypes = { "alpha", "dashboard", "NvimTree", "Outline" },
Expand Down
10 changes: 7 additions & 3 deletions lua/user/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ return packer.startup(function(use)
-- use "shaunsingh/nord.nvim"
-- use "shaunsingh/moonlight.nvim"
use "folke/tokyonight.nvim"
use 'rebelot/kanagawa.nvim'
use {"catppuccin/nvim", as = 'catppuccin'}
-- use 'rebelot/kanagawa.nvim'
-- use {"catppuccin/nvim", as = 'catppuccin'}
-- use "projekt0n/github-nvim-theme"
-- use "navarasu/onedark.nvim"
use "navarasu/onedark.nvim"

-- cmp plugins
use "hrsh7th/nvim-cmp" -- The completion plugin
Expand Down Expand Up @@ -124,6 +124,10 @@ return packer.startup(function(use)
requires = "folke/zen-mode.nvim",
}

use {"KCaverly/py.nvim", ft = {"python"}, config = function() require("py").setup() end}



-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if PACKER_BOOTSTRAP then require("packer").sync() end
Expand Down

0 comments on commit 94f00ac

Please sign in to comment.