Removed noice, nomodoro, neorg ; new lualine theme
This commit is contained in:
parent
8cedca2daf
commit
b6d268cc4e
7 changed files with 239 additions and 219 deletions
|
@ -1,11 +1,11 @@
|
||||||
require('gitsigns').setup {
|
require('gitsigns').setup {
|
||||||
signs = {
|
signs = {
|
||||||
add = { text = '│' },
|
add = { text = '▊' },
|
||||||
change = { text = '│' },
|
change = { text = '▊' },
|
||||||
delete = { text = '│' },
|
delete = { text = '▊' },
|
||||||
topdelete = { text = '│' },
|
topdelete = { text = '▊' },
|
||||||
changedelete = { text = '│' },
|
changedelete = { text = '▊' },
|
||||||
untracked = { text = '┆' },
|
untracked = { text = '|' },
|
||||||
},
|
},
|
||||||
|
|
||||||
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
|
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
require("plugins.lazy")
|
require("plugins.lazy")
|
||||||
require("plugins.noice")
|
|
||||||
require("plugins.neorg")
|
|
||||||
require("plugins.treesitter")
|
require("plugins.treesitter")
|
||||||
require("plugins.drop")
|
require("plugins.drop")
|
||||||
require("plugins.mini")
|
require("plugins.mini")
|
||||||
require("plugins.lsp-zero")
|
require("plugins.lsp-zero")
|
||||||
require("plugins.nomodoro")
|
|
||||||
require("plugins.devicons")
|
require("plugins.devicons")
|
||||||
require("plugins.lualine")
|
require("plugins.lualine")
|
||||||
require("plugins.veil")
|
require("plugins.veil")
|
||||||
|
|
|
@ -20,19 +20,24 @@ vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
|
|
||||||
"navarasu/onedark.nvim",
|
-- colorscheme
|
||||||
"EdenEast/nightfox.nvim",
|
"EdenEast/nightfox.nvim",
|
||||||
|
|
||||||
|
-- Focus more !
|
||||||
"folke/twilight.nvim",
|
"folke/twilight.nvim",
|
||||||
"folke/zen-mode.nvim",
|
"folke/zen-mode.nvim",
|
||||||
"MunifTanjim/nui.nvim",
|
|
||||||
|
|
||||||
|
-- it's annoying that w skips the whole word, so let's fix it
|
||||||
"bkad/camelcasemotion",
|
"bkad/camelcasemotion",
|
||||||
|
|
||||||
|
-- very good file jumping system
|
||||||
"ThePrimeagen/harpoon",
|
"ThePrimeagen/harpoon",
|
||||||
|
|
||||||
|
-- arbitrarily comment
|
||||||
"tpope/vim-commentary",
|
"tpope/vim-commentary",
|
||||||
|
|
||||||
|
-- this one is just fun
|
||||||
"eandrju/cellular-automaton.nvim",
|
"eandrju/cellular-automaton.nvim",
|
||||||
"dbinagi/nomodoro",
|
|
||||||
|
|
||||||
|
|
||||||
-- indicate what has changed in git repo
|
-- indicate what has changed in git repo
|
||||||
|
@ -46,6 +51,7 @@ require("lazy").setup({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
-- for faster file navigation
|
||||||
{
|
{
|
||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
version = "*",
|
version = "*",
|
||||||
|
@ -118,15 +124,6 @@ require("lazy").setup({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
-- modern ui
|
|
||||||
{
|
|
||||||
"folke/noice.nvim",
|
|
||||||
config = function ()
|
|
||||||
require("plugins.noice")
|
|
||||||
end
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
-- dashboard and start page
|
-- dashboard and start page
|
||||||
{
|
{
|
||||||
"willothy/veil.nvim",
|
"willothy/veil.nvim",
|
||||||
|
@ -138,9 +135,6 @@ require("lazy").setup({
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- size does not matter
|
-- size does not matter
|
||||||
{
|
{
|
||||||
'echasnovski/mini.nvim',
|
'echasnovski/mini.nvim',
|
||||||
|
@ -167,12 +161,6 @@ require("lazy").setup({
|
||||||
lazy = true
|
lazy = true
|
||||||
},
|
},
|
||||||
|
|
||||||
-- DAMN, org mode?
|
|
||||||
{
|
|
||||||
"nvim-neorg/neorg",
|
|
||||||
lazy = true
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
-- Cool screensaver !!
|
-- Cool screensaver !!
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,47 +1,226 @@
|
||||||
require('lualine').setup {
|
-- Eviline config for lualine
|
||||||
options = {
|
-- Author: shadmansaleh
|
||||||
icons_enabled = true,
|
-- Credit: glepnir
|
||||||
theme = 'carbonfox',
|
local lualine = require('lualine')
|
||||||
|
|
||||||
component_separators = { left = '', right = ''},
|
-- Color table for highlights
|
||||||
section_separators = { left = '', right = ''},
|
-- stylua: ignore
|
||||||
|
local colors = {
|
||||||
disabled_filetypes = {
|
bg = '#202328',
|
||||||
statusline = {},
|
fg = '#bbc2cf',
|
||||||
winbar = {},
|
yellow = '#ECBE7B',
|
||||||
},
|
cyan = '#008080',
|
||||||
|
darkblue = '#081633',
|
||||||
ignore_focus = {},
|
green = '#98be65',
|
||||||
always_divide_middle = true,
|
orange = '#FF8800',
|
||||||
globalstatus = false,
|
violet = '#a9a1e1',
|
||||||
|
magenta = '#c678dd',
|
||||||
refresh = {
|
blue = '#51afef',
|
||||||
statusline = 1000,
|
red = '#ec5f67',
|
||||||
tabline = 1000,
|
|
||||||
winbar = 1000,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
sections = {
|
|
||||||
lualine_a = {'mode'},
|
|
||||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
|
||||||
lualine_c = {'filename'},
|
|
||||||
lualine_x = { require("nomodoro").status },
|
|
||||||
lualine_y = {'progress'},
|
|
||||||
lualine_z = {'location'}
|
|
||||||
},
|
|
||||||
inactive_sections = {
|
|
||||||
lualine_a = {},
|
|
||||||
lualine_b = {},
|
|
||||||
lualine_c = {'filename'},
|
|
||||||
lualine_x = {'location'},
|
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = {}
|
|
||||||
},
|
|
||||||
|
|
||||||
tabline = {},
|
|
||||||
winbar = {},
|
|
||||||
inactive_winbar = {},
|
|
||||||
extensions = {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local conditions = {
|
||||||
|
buffer_not_empty = function()
|
||||||
|
return vim.fn.empty(vim.fn.expand('%:t')) ~= 1
|
||||||
|
end,
|
||||||
|
hide_in_width = function()
|
||||||
|
return vim.fn.winwidth(0) > 80
|
||||||
|
end,
|
||||||
|
check_git_workspace = function()
|
||||||
|
local filepath = vim.fn.expand('%:p:h')
|
||||||
|
local gitdir = vim.fn.finddir('.git', filepath .. ';')
|
||||||
|
return gitdir and #gitdir > 0 and #gitdir < #filepath
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Config
|
||||||
|
local config = {
|
||||||
|
options = {
|
||||||
|
-- Disable sections and component separators
|
||||||
|
component_separators = '',
|
||||||
|
section_separators = '',
|
||||||
|
theme = {
|
||||||
|
-- We are going to use lualine_c an lualine_x as left and
|
||||||
|
-- right section. Both are highlighted by c theme . So we
|
||||||
|
-- are just setting default looks o statusline
|
||||||
|
normal = { c = { fg = colors.fg, bg = colors.bg } },
|
||||||
|
inactive = { c = { fg = colors.fg, bg = colors.bg } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
sections = {
|
||||||
|
-- these are to remove the defaults
|
||||||
|
lualine_a = {},
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = {},
|
||||||
|
-- These will be filled later
|
||||||
|
lualine_c = {},
|
||||||
|
lualine_x = {},
|
||||||
|
},
|
||||||
|
inactive_sections = {
|
||||||
|
-- these are to remove the defaults
|
||||||
|
lualine_a = {},
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = {},
|
||||||
|
lualine_c = {},
|
||||||
|
lualine_x = {},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Inserts a component in lualine_c at left section
|
||||||
|
local function ins_left(component)
|
||||||
|
table.insert(config.sections.lualine_c, component)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Inserts a component in lualine_x at right section
|
||||||
|
local function ins_right(component)
|
||||||
|
table.insert(config.sections.lualine_x, component)
|
||||||
|
end
|
||||||
|
|
||||||
|
ins_left {
|
||||||
|
function()
|
||||||
|
return '▊'
|
||||||
|
end,
|
||||||
|
color = { fg = colors.blue }, -- Sets highlighting of component
|
||||||
|
padding = { left = 0, right = 1 }, -- We don't need space before this
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ins_left {
|
||||||
|
-- mode component
|
||||||
|
function()
|
||||||
|
return ''
|
||||||
|
end,
|
||||||
|
color = function()
|
||||||
|
-- auto change color according to neovims mode
|
||||||
|
local mode_color = {
|
||||||
|
n = colors.blue,
|
||||||
|
i = colors.red,
|
||||||
|
v = colors.green,
|
||||||
|
[''] = colors.orange,
|
||||||
|
V = colors.green,
|
||||||
|
c = colors.magenta,
|
||||||
|
no = colors.red,
|
||||||
|
s = colors.orange,
|
||||||
|
S = colors.orange,
|
||||||
|
[''] = colors.orange,
|
||||||
|
ic = colors.yellow,
|
||||||
|
R = colors.violet,
|
||||||
|
Rv = colors.violet,
|
||||||
|
cv = colors.red,
|
||||||
|
ce = colors.red,
|
||||||
|
r = colors.cyan,
|
||||||
|
rm = colors.cyan,
|
||||||
|
['r?'] = colors.cyan,
|
||||||
|
['!'] = colors.red,
|
||||||
|
t = colors.red,
|
||||||
|
}
|
||||||
|
return { fg = mode_color[vim.fn.mode()] }
|
||||||
|
end,
|
||||||
|
padding = { right = 1 },
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ins_left {
|
||||||
|
'branch',
|
||||||
|
icon = '',
|
||||||
|
color = { fg = colors.violet, gui = 'bold' },
|
||||||
|
}
|
||||||
|
|
||||||
|
ins_left {
|
||||||
|
'diff',
|
||||||
|
-- Is it me or the symbol for modified us really weird
|
||||||
|
symbols = { added = ' ', modified = ' ', removed = ' ' },
|
||||||
|
diff_color = {
|
||||||
|
added = { fg = colors.green },
|
||||||
|
modified = { fg = colors.orange },
|
||||||
|
removed = { fg = colors.red },
|
||||||
|
},
|
||||||
|
cond = conditions.hide_in_width,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ins_left {
|
||||||
|
'diagnostics',
|
||||||
|
sources = { 'nvim_diagnostic' },
|
||||||
|
symbols = { error = ' ', warn = ' ', info = ' ' },
|
||||||
|
diagnostics_color = {
|
||||||
|
color_error = { fg = colors.red },
|
||||||
|
color_warn = { fg = colors.yellow },
|
||||||
|
color_info = { fg = colors.cyan },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Insert mid section. You can make any number of sections in neovim :)
|
||||||
|
-- for lualine it's any number greater then 2
|
||||||
|
ins_left {
|
||||||
|
function()
|
||||||
|
return '%='
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ins_left {
|
||||||
|
'filename',
|
||||||
|
cond = conditions.buffer_not_empty,
|
||||||
|
color = { fg = colors.magenta, gui = 'bold' },
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ins_right {
|
||||||
|
-- filesize component
|
||||||
|
'filesize',
|
||||||
|
cond = conditions.buffer_not_empty,
|
||||||
|
}
|
||||||
|
|
||||||
|
ins_right {
|
||||||
|
'progress',
|
||||||
|
color = {
|
||||||
|
fg = colors.fg,
|
||||||
|
gui = 'bold'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- Add components to right sections
|
||||||
|
ins_right {
|
||||||
|
'o:encoding', -- option component same as &encoding in viml
|
||||||
|
fmt = string.upper, -- I'm not sure why it's upper case either ;)
|
||||||
|
cond = conditions.hide_in_width,
|
||||||
|
color = { fg = colors.green, gui = 'bold' },
|
||||||
|
}
|
||||||
|
|
||||||
|
ins_right {
|
||||||
|
'fileformat',
|
||||||
|
fmt = string.upper,
|
||||||
|
icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh
|
||||||
|
color = {
|
||||||
|
fg = colors.green,
|
||||||
|
gui = 'bold'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
ins_right {
|
||||||
|
function()
|
||||||
|
return '▊'
|
||||||
|
end,
|
||||||
|
color = {
|
||||||
|
fg = colors.blue
|
||||||
|
},
|
||||||
|
padding = {
|
||||||
|
left = 1
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Now don't forget to initialize lualine
|
||||||
|
lualine.setup(config)
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
require('neorg').setup {
|
|
||||||
load = {
|
|
||||||
["core.defaults"] = {}, -- Loads default behaviour
|
|
||||||
["core.concealer"] = {}, -- Adds pretty icons to your documents
|
|
||||||
["core.dirman"] = { -- Manages Neorg workspaces
|
|
||||||
config = {
|
|
||||||
workspaces = {
|
|
||||||
notes = "~/notes",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,99 +0,0 @@
|
||||||
require("noice").setup({
|
|
||||||
noice = {
|
|
||||||
health = {
|
|
||||||
checker = false
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
cmdline = {
|
|
||||||
format = {
|
|
||||||
cmdline = {
|
|
||||||
pattern = "^:",
|
|
||||||
icon = " ",
|
|
||||||
lang = "vim",
|
|
||||||
},
|
|
||||||
search_down = {
|
|
||||||
kind = "search",
|
|
||||||
pattern = "^/",
|
|
||||||
icon = " ",
|
|
||||||
lang = "regex",
|
|
||||||
},
|
|
||||||
search_up = {
|
|
||||||
kind = "search",
|
|
||||||
pattern = "^%?",
|
|
||||||
icon = " ",
|
|
||||||
lang = "regex"
|
|
||||||
},
|
|
||||||
filter = {
|
|
||||||
pattern = "^:%s*!",
|
|
||||||
icon = "$",
|
|
||||||
lang = "bash"
|
|
||||||
},
|
|
||||||
lua = {
|
|
||||||
pattern = "^:%s*lua%s+",
|
|
||||||
icon = "",
|
|
||||||
lang = "lua"
|
|
||||||
},
|
|
||||||
help = {
|
|
||||||
pattern = "^:%s*h%s+",
|
|
||||||
icon = ""
|
|
||||||
},
|
|
||||||
input = {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
opts = {
|
|
||||||
win_options = {
|
|
||||||
winhighlight = {
|
|
||||||
Normal = "NormalFloat",
|
|
||||||
FloatBorder = "FloatBorder"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
lsp = {
|
|
||||||
progress = {
|
|
||||||
enabled = true
|
|
||||||
},
|
|
||||||
override = {
|
|
||||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
|
||||||
["vim.lsp.util.stylize_markdown"] = true,
|
|
||||||
["cmp.entry.get_documentation"] = true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
-- show command prompt on top of the buffer, no border
|
|
||||||
views = {
|
|
||||||
cmdline_popup = {
|
|
||||||
position = {
|
|
||||||
row = 0,
|
|
||||||
col = "50%"
|
|
||||||
},
|
|
||||||
size = {
|
|
||||||
width = "98%"
|
|
||||||
},
|
|
||||||
border = {
|
|
||||||
style = "none",
|
|
||||||
padding = { 1, 1 },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
presets = {
|
|
||||||
long_message_to_split = true,
|
|
||||||
lsp_doc_border = true
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
popupmenu = {
|
|
||||||
backend = "cmp"
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
format = {}
|
|
||||||
})
|
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
require('nomodoro').setup({
|
|
||||||
work_time = 25,
|
|
||||||
break_time = 5,
|
|
||||||
menu_available = true,
|
|
||||||
|
|
||||||
texts = {
|
|
||||||
on_break_complete = "Break is over!",
|
|
||||||
on_work_complete = "Take a break!",
|
|
||||||
status_icon = "羽",
|
|
||||||
timer_format = '!%0M:%0S' -- To include hours: '!%0H:%0M:%0S'
|
|
||||||
},
|
|
||||||
|
|
||||||
-- force break time yaaay
|
|
||||||
on_work_complete = function()
|
|
||||||
vim.cmd('CellularAutomaton make_it_rain')
|
|
||||||
end,
|
|
||||||
|
|
||||||
-- resume
|
|
||||||
on_break_complete = function()
|
|
||||||
vim.cmd('Veil')
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
-- Show timer status in lualine, on the right
|
|
||||||
require('lualine').setup({
|
|
||||||
sections = {
|
|
||||||
lualine_x = {
|
|
||||||
require('nomodoro').status,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
Loading…
Add table
Reference in a new issue