customization: darker colors

This commit is contained in:
siduck76 2021-04-06 08:29:37 +05:30
parent afff99e545
commit e948f32cd5
6 changed files with 51 additions and 50 deletions

View file

@ -1,6 +1,6 @@
vim.o.termguicolors = true
-- colors for active , inactive buffer tabs
-- colors for active , inactive uffer tabs
require "bufferline".setup {
options = {
buffer_close_icon = "",
@ -19,36 +19,40 @@ require "bufferline".setup {
highlights = {
background = {
guifg = comment_fg,
guibg = "#282c34"
guibg = "#1e222a"
},
fill = {
guifg = comment_fg,
guibg = "#282c34"
guibg = "#1e222a"
},
buffer_selected = {
guifg = normal_fg,
guibg = "#3A3E44",
guibg = "#282c34",
gui = "bold"
},
buffer_visible = {
guifg = "#3e4451",
guibg = "#1e222a"
},
separator_visible = {
guifg = "#282c34",
guibg = "#282c34"
guifg = "#1e222a",
guibg = "#1e222a"
},
separator_selected = {
guifg = "#282c34",
guibg = "#282c34"
guifg = "#1e222a",
guibg = "#1e222a"
},
separator = {
guifg = "#282c34",
guibg = "#282c34"
guifg = "#1e222a",
guibg = "#1e222a"
},
indicator_selected = {
guifg = "#282c34",
guibg = "#282c34"
guifg = "#1e222a",
guibg = "#1e222a"
},
modified_selected = {
guifg = string_fg,
guibg = "#3A3E44"
guibg = "#353b45"
}
}
}
@ -59,10 +63,10 @@ vim.g.mapleader = " "
--command that adds new buffer and moves to it
vim.api.nvim_command "com -nargs=? -complete=file_in_path New badd <args> | blast"
vim.api.nvim_set_keymap("n","<S-b>",":New ", opt)
vim.api.nvim_set_keymap("n", "<S-b>", ":New ", opt)
--removing a buffer
vim.api.nvim_set_keymap("n","<S-f>",[[<Cmd>bdelete<CR>]], opt)
vim.api.nvim_set_keymap("n", "<S-f>", [[<Cmd>bdelete<CR>]], opt)
-- tabnew and tabprev
vim.api.nvim_set_keymap("n", "<S-l>", [[<Cmd>BufferLineCycleNext<CR>]], opt)

View file

@ -35,24 +35,24 @@ local t = function(str)
end
local check_back_space = function()
local col = vim.fn.col('.') - 1
if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then
local col = vim.fn.col(".") - 1
if col == 0 or vim.fn.getline("."):sub(col, col):match("%s") then
return true
else
return false
end
end
-- tab completion
-- tab completion
_G.tab_complete = function()
if vim.fn.pumvisible() == 1 then
return t "<C-n>"
elseif check_back_space() then
return t "<Tab>"
else
return vim.fn['compe#complete']()
end
if vim.fn.pumvisible() == 1 then
return t "<C-n>"
elseif check_back_space() then
return t "<Tab>"
else
return vim.fn["compe#complete"]()
end
end
_G.s_tab_complete = function()
if vim.fn.pumvisible() == 1 then

View file

@ -39,7 +39,7 @@ function on_attach(client)
end
end
local servers = {"tsserver", "cssls", "pyls", "html"}
local servers = {"tsserver", "cssls", "html"}
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {on_attach = on_attach}
end

View file

@ -29,6 +29,8 @@ return require("packer").startup(
use "nvim-telescope/telescope-media-files.nvim"
use "nvim-lua/popup.nvim"
use "karb94/neoscroll.nvim"
use "nekonako/xresources-nvim"
end
)

View file

@ -4,8 +4,8 @@ local gls = gl.section
gl.short_line_list = {" "} -- keeping this table { } as empty will show inactive statuslines
local colors = {
bg = "#282c34",
line_bg = "#282c34",
bg = "#1e222a",
line_bg = "#1e222a",
fg = "#D8DEE9",
fg_green = "#65a380",
yellow = "#A3BE8C",
@ -17,7 +17,7 @@ local colors = {
magenta = "#c678dd",
blue = "#22262C",
red = "#DF8890",
lightbg = "#3C4048",
lightbg = "#282c34",
nord = "#81A1C1",
greenYel = "#EBCB8B"
}