fix bufferline colors, add :Black and :IPDB
This commit is contained in:
parent
7d920a5779
commit
5550001acf
1
init.lua
1
init.lua
@ -2,6 +2,7 @@
|
|||||||
require('plugins')
|
require('plugins')
|
||||||
require('settings')
|
require('settings')
|
||||||
require('keybinds')
|
require('keybinds')
|
||||||
|
require('commands')
|
||||||
require('cmds')
|
require('cmds')
|
||||||
require('highlights')
|
require('highlights')
|
||||||
|
|
||||||
|
6
lua/commands.lua
Normal file
6
lua/commands.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-- Make it easier to run black
|
||||||
|
vim.api.nvim_create_user_command('Black', 'call Black()', {})
|
||||||
|
|
||||||
|
-- Insert IPDB statement
|
||||||
|
vim.api.nvim_create_user_command('IPDB', 'norm oimport ipdb; ipdb.set_trace() # fmt:skip', {})
|
||||||
|
|
@ -8,13 +8,14 @@ function M.config()
|
|||||||
|
|
||||||
-- Semantic Colors
|
-- Semantic Colors
|
||||||
local scolors = {
|
local scolors = {
|
||||||
empty_fg = '#ced2dc',
|
white_fg = '#ced2dc',
|
||||||
|
|
||||||
|
tab_visible_bg = '#404040',
|
||||||
|
tab_bg = '#353535',
|
||||||
empty_bg = '#252526',
|
empty_bg = '#252526',
|
||||||
tab_fg = '#ced2dc',
|
|
||||||
tab_bg = '#303030',
|
|
||||||
selected_fg = '#ced2dc',
|
|
||||||
selected_bg = '#404040',
|
|
||||||
green = '#6a9955',
|
green = '#6a9955',
|
||||||
|
yellow = '#d8b92d',
|
||||||
red = '#d16969',
|
red = '#d16969',
|
||||||
none = 'NONE',
|
none = 'NONE',
|
||||||
}
|
}
|
||||||
@ -24,16 +25,16 @@ function M.config()
|
|||||||
close_command = "Bdelete! %d", -- use vim-bbye
|
close_command = "Bdelete! %d", -- use vim-bbye
|
||||||
right_mouse_command = "Bdelete! %d", -- use vim-bbye
|
right_mouse_command = "Bdelete! %d", -- use vim-bbye
|
||||||
offsets = {
|
offsets = {
|
||||||
{
|
{
|
||||||
filetype = "NvimTree",
|
filetype = "NvimTree",
|
||||||
text = "",
|
text = "",
|
||||||
padding = 1
|
padding = 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
indicator = {
|
indicator = {
|
||||||
icon = '▎',
|
icon = '▎',
|
||||||
style = 'icon'
|
style = 'icon'
|
||||||
},
|
},
|
||||||
modified_icon = "",
|
modified_icon = "",
|
||||||
--buffer_close_icon = "",
|
--buffer_close_icon = "",
|
||||||
show_buffer_close_icons = false,
|
show_buffer_close_icons = false,
|
||||||
@ -53,20 +54,24 @@ function M.config()
|
|||||||
},
|
},
|
||||||
|
|
||||||
highlights = {
|
highlights = {
|
||||||
|
fill = {
|
||||||
|
fg = scolors.white_fg,
|
||||||
|
bg = scolors.empty_bg,
|
||||||
|
},
|
||||||
background = {
|
background = {
|
||||||
fg = scolors.tab_fg,
|
fg = scolors.white_fg,
|
||||||
bg = scolors.tab_bg,
|
bg = scolors.tab_bg,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Buffers
|
-- Buffers
|
||||||
buffer_selected = {
|
buffer_selected = {
|
||||||
fg = scolors.selected_fg,
|
fg = scolors.white_fg,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
--gui = colors.none,
|
--gui = colors.none,
|
||||||
},
|
},
|
||||||
buffer_visible = {
|
buffer_visible = {
|
||||||
fg = scolors.selected_fg,
|
fg = scolors.white_fg,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Diagnostics
|
-- Diagnostics
|
||||||
@ -81,38 +86,39 @@ function M.config()
|
|||||||
|
|
||||||
-- Close buttons
|
-- Close buttons
|
||||||
close_button = {
|
close_button = {
|
||||||
fg = scolors.tab_fg,
|
fg = scolors.white_fg,
|
||||||
bg = scolors.tab_bg,
|
bg = scolors.tab_bg,
|
||||||
},
|
},
|
||||||
close_button_visible = {
|
close_button_visible = {
|
||||||
fg = scolors.selected_fg,
|
fg = scolors.white_fg,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
close_button_selected = {
|
close_button_selected = {
|
||||||
fg = scolors.red,
|
fg = scolors.red,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
|
||||||
fill = {
|
|
||||||
fg = scolors.empty_fg,
|
|
||||||
bg = scolors.empty_bg,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Open buffer indicator
|
||||||
indicator_selected = {
|
indicator_selected = {
|
||||||
fg = scolors.green,
|
fg = scolors.green,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
|
},
|
||||||
|
indicator_visible = {
|
||||||
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Modified
|
-- Modified
|
||||||
modified = {
|
modified = {
|
||||||
fg = scolors.red,
|
fg = scolors.yellow,
|
||||||
bg = scolors.tab_bg,
|
bg = scolors.tab_bg,
|
||||||
},
|
},
|
||||||
modified_visible = {
|
modified_visible = {
|
||||||
fg = scolors.tab_fg,
|
fg = scolors.yellow,
|
||||||
bg = scolors.tab_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
modified_selected = {
|
modified_selected = {
|
||||||
fg = scolors.green,
|
fg = scolors.yellow,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Separators
|
-- Separators
|
||||||
@ -122,25 +128,25 @@ function M.config()
|
|||||||
},
|
},
|
||||||
separator_visible = {
|
separator_visible = {
|
||||||
fg = scolors.empty_bg,
|
fg = scolors.empty_bg,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
separator_selected = {
|
separator_selected = {
|
||||||
fg = scolors.empty_bg,
|
fg = scolors.empty_bg,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Tabs
|
-- Tabs
|
||||||
tab = {
|
tab = {
|
||||||
fg = scolors.tab_fg,
|
fg = scolors.white_fg,
|
||||||
bg = scolors.tab_bg,
|
bg = scolors.tab_bg,
|
||||||
},
|
},
|
||||||
tab_selected = {
|
tab_selected = {
|
||||||
fg = scolors.selected_fg,
|
fg = scolors.white_fg,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
tab_close = {
|
tab_close = {
|
||||||
fg = scolors.selected_fg,
|
fg = scolors.white_fg,
|
||||||
bg = scolors.selected_bg,
|
bg = scolors.tab_visible_bg,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ map("n", "<leader>ff", "<cmd>Telescope find_files<CR>", opts)
|
|||||||
map("n", "<leader>fw", "<cmd>Telescope live_grep<CR>", opts)
|
map("n", "<leader>fw", "<cmd>Telescope live_grep<CR>", opts)
|
||||||
map("n", "<leader>fb", "<cmd>Telescope buffers<CR>", opts)
|
map("n", "<leader>fb", "<cmd>Telescope buffers<CR>", opts)
|
||||||
map("n", "<leader>fh", "<cmd>Telescope help_tags<CR>", opts)
|
map("n", "<leader>fh", "<cmd>Telescope help_tags<CR>", opts)
|
||||||
map("n", "<leader>fo", "<cmd>Telescope oldfiles<CR>", opts) -- This wasn't working for some reason in astrovim
|
map("n", "<leader>fo", "<cmd>Telescope oldfiles<CR>", opts) -- This works for me now :)
|
||||||
map("n", "<leader>fs", "<cmd>Telescope git_status<CR>", opts)
|
map("n", "<leader>fs", "<cmd>Telescope git_status<CR>", opts)
|
||||||
map("n", "<leader>fc", "<cmd>Telescope git_commits<CR>", opts)
|
map("n", "<leader>fc", "<cmd>Telescope git_commits<CR>", opts)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user