added missing statusline and cleaned up

This commit is contained in:
pr0c3550r 2023-02-05 18:15:21 +01:00
parent 7020f5e99a
commit b9ec30d0c0
4 changed files with 1 additions and 137 deletions

View file

@ -15,3 +15,4 @@ require("core.settings")
require("core.remap")
require("lazy").setup("plugin")
require("core.autocmd")
require("core.statusline")

View file

@ -1,56 +0,0 @@
-- setting colors
-- everforest
-- vim.api.nvim_set_var("everforest_background", "hard")
-- vim.api.nvim_set_var("everforest_transparent_background", "1")
-- vim.api.nvim_set_var("everforest_ui_contrast", "low")
-- vim.api.nvim_set_var("everforest_show_eob", "0")
-- vim.api.nvim_set_var("everforest_enable_bold", "1")
-- vim.api.nvim_set_var("everforest_enable_italic", "1")
-- vim.api.nvim_set_var("everforest_better_performance", "1")
-- gruvbox
-- vim.api.nvim_set_var("gruvbox_material_background", "hard")
-- vim.api.nvim_set_var("gruvbox_material_transparent_background", "1")
-- vim.api.nvim_set_var("gruvbox_material_ui_contrast", "low")
-- vim.api.nvim_set_var("gruvbox_material_show_eob", "0")
-- vim.api.nvim_set_var("gruvbox_material_enable_bold", "1")
-- vim.api.nvim_set_var("gruvbox_material_enable_italic", "1")
-- vim.api.nvim_set_var("gruvbox_material_better_performance", "1")
-- setting colorscheme
vim.cmd [[colo gruvbox-material]]
-- color of ModeMessage and bold Font
vim.api.nvim_set_hl(0, "ModeMsg", { bold = true, fg = "#d8a657"})
-- colors of tabline
vim.api.nvim_set_hl(0, "TabLine", {bg = "#3c3836", fg = "#89b482"})
vim.api.nvim_set_hl(0, "TabLineFill", {bg = "#1d2021"})
vim.api.nvim_set_hl(0, "TabLineSel", {bold = true, bg = "none", fg = "#d8a657"})
-- color of statusline
vim.api.nvim_set_hl(0, "StatusLine", {bold = false, bg = "#1d2021", fg = "#89b482"})
vim.api.nvim_set_hl(0, "StatusLineNC", {bg = "#1d2021", fg = "#5b534d"})
-- color of vertical split line
vim.api.nvim_set_hl(0, "VertSplit", {bg = "#141617", fg = "#141617"})
-- color of the cursorline and cursorlinenumber
vim.api.nvim_set_hl(0, "Cursorline", {bg = "#141617"})
vim.api.nvim_set_hl(0, "CursorLineNr", {bold = true, bg = "#141617", fg = "#d8a657"})
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", {bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", {bg = none, fg = "#d4be98"})
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", {bg = none, fg = "#d8a657"})
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", {bg = none, fg = "#ea6962"})
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", {bg = none, fg = "#a9b665"})
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", {bg = none, fg = "#d4be98"})
-- transparent background in active, non active and at the end of buffer for colorschemes which does not support such options
-- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
-- vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
-- vim.api.nvim_set_hl(0, "EndOfBuffer", { bg = "none" })

View file

@ -1,7 +0,0 @@
-- require("user.packer")
require("user.settings")
require("user.remap")
require("user.autocmd")
require("user.statusline")
-- require("user.colors")

View file

@ -1,74 +0,0 @@
local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path })
vim.cmd [[packadd packer.nvim]]
return true
end
return false
end
local packer_bootstrap = ensure_packer()
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
-- Colorschemes
use 'sainnhe/everforest'
use 'sainnhe/gruvbox-material'
-- Fuzzy finder
use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
requires = { { 'nvim-lua/plenary.nvim' } }
}
-- Treesitter for better highlighting
use {
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate'
}
-- Git
use 'tpope/vim-fugitive'
-- lazy commenting
use 'tpope/vim-commentary'
-- Indendation guides
use 'lukas-reineke/indent-blankline.nvim'
-- LSP
use {
{ 'williamboman/mason.nvim' },
{ 'williamboman/mason-lspconfig.nvim' },
{ 'neovim/nvim-lspconfig' },
}
-- Autocomplete
use {
'hrsh7th/nvim-cmp',
requires = {
{ 'hrsh7th/cmp-nvim-lsp' },
{ 'hrsh7th/cmp-buffer' },
{ 'hrsh7th/cmp-path' },
{ 'hrsh7th/cmp-cmdline' },
{ 'L3MON4D3/LuaSnip',
requires = {
{ 'rafamadriz/friendly-snippets' }
}
},
{ 'saadparwaiz1/cmp_luasnip' },
}
}
-- other LSP actions
use { 'jose-elias-alvarez/null-ls.nvim' }
-- Automatically set up your configuration after cloning packer.nvim
if packer_bootstrap then
require('packer').sync()
end
end)