Compare commits

...

10 Commits

Author SHA1 Message Date
Benjamin Kyd
99f0695822 Update default.lua 2023-05-16 21:40:47 +01:00
Benjamin Kyd
5f6e47a72d Update default.lua 2023-05-16 21:38:52 +01:00
Benjamin Kyd
21c4301a1f Update default.lua 2023-05-16 19:51:25 +01:00
Benjamin Kyd
52d77f40a8 Update lsp.lua 2023-03-20 11:30:45 +00:00
Benjamin Kyd
0470b59038 Update lsp.lua 2023-03-20 11:18:34 +00:00
Benjamin Kyd
98cda5907e ffs 2023-03-20 11:09:29 +00:00
Johann Nunez
aa1e191ba4 feat: add catppuccin_minimal theme (#35) 2023-02-06 09:11:31 +01:00
ryujinscales
d126888f9d Change “enable bufferline” on line 39 (#34)
Changed “enable bufferline” on line 39mto “disable bufferline
2023-01-05 13:13:36 +01:00
Olivier Roques
81f8dafc1a refactor: remove screenshot 2022-09-06 11:47:29 +02:00
Olivier Roques
ad145ee75c docs: update readme 2022-09-06 11:46:59 +02:00
6 changed files with 94 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ be as light and simple as possible.
_**Note**: I won't add new features/parts/themes if I don't need them. Feel free
to submit PRs or fork the plugin though._
![screenshot](./screenshot.png)
![screenshot](https://user-images.githubusercontent.com/23409060/188603562-aff6f003-69bc-4bd2-b4c5-83007f338d25.png)
## Installation
With [packer.nvim](https://github.com/wbthomason/packer.nvim):
@@ -36,7 +36,7 @@ You can pass options to the `setup()` function. Here are all available options
with their default settings:
```lua
require('hardline').setup {
bufferline = false, -- enable bufferline
bufferline = false, -- disable bufferline
bufferline_settings = {
exclude_terminal = false, -- don't show terminal buffers in bufferline
show_index = false, -- show buffer indexes (not the actual buffer numbers) in bufferline

View File

@@ -28,6 +28,7 @@ M.options = {
{class = 'error', item = require('hardline.parts.lsp').get_error},
{class = 'warning', item = require('hardline.parts.lsp').get_warning},
{class = 'warning', item = require('hardline.parts.whitespace').get_item},
{class = 'high', item= require('hardline.parts.lsp').get_lsp_clients},
{class = 'high', item = require('hardline.parts.filetype').get_item, hide = 60},
{class = 'mode', item = require('hardline.parts.line').get_item},
},

View File

@@ -35,7 +35,7 @@ local function get_lsp_clients()
for _, client in pairs(clients) do
table.insert(c, client.name)
end
return table.concat(c, "|")
return table.concat(c, "")
end
return {

View File

@@ -0,0 +1,79 @@
local colors = {
transparent = {gui = 'NONE', cterm = '16', cterm16 = '0'},
grey_medium = {gui = '#1E1E2E', cterm = '17', cterm16 = '0'},
grey_inactive = {gui = '#7E84A0', cterm = '61', cterm16 = '8'},
grey_light = {gui = '#969DBC', cterm = '69', cterm16 = '7'},
black = {gui = '#07070A', cterm = '16', cterm16 = '0'},
white = {gui = '#AEB7D9', cterm = '189', cterm16 = '15'},
red = {gui = '#F38BA8', cterm = '218', cterm16 = '9'},
yellow = {gui = '#F9E2AF', cterm = '223', cterm16 = '11'},
}
local inactive = {
guifg = colors.grey_inactive.gui,
guibg = colors.transparent.gui,
ctermfg = colors.grey_inactive.cterm,
ctermbg = colors.transparent.cterm,
}
local common_light = {
guifg = colors.black.gui,
guibg = colors.grey_light.gui,
ctermfg = colors.black.cterm,
ctermbg = colors.grey_light.cterm,
}
local common_dark = {
guifg = colors.white.gui,
guibg = colors.grey_medium.gui,
ctermfg = colors.white.cterm,
ctermbg = colors.grey_medium.cterm,
}
return {
mode = {
inactive = inactive,
normal = common_light,
insert = common_light,
replace = common_light,
visual = common_light,
command = common_light,
},
low = {
active = common_dark,
inactive = inactive,
},
med = {
active = common_dark,
inactive = inactive,
},
high = {
active = common_dark,
inactive = inactive,
},
error = {
active = {
guifg = colors.red.gui,
guibg = colors.grey_medium.gui,
ctermfg = colors.red.cterm,
ctermbg = colors.grey_medium.cterm,
},
inactive = inactive,
},
warning = {
active = {
guifg = colors.yellow.gui,
guibg = colors.grey_medium.gui,
ctermfg = colors.yellow.cterm,
ctermbg = colors.grey_medium.cterm,
},
inactive = inactive,
},
bufferline = {
separator = inactive,
current = common_light,
current_modified = common_light,
background = inactive,
background_modified = inactive,
},
}

View File

@@ -1,15 +1,15 @@
local colors = {
black = {gui = '#282C34', cterm = '235', cterm16 = '0'},
blue = {gui = '#61AFEF', cterm = '39', cterm16 = '4'},
cyan = { gui = '#56B6C2', cterm = '38', cterm16 = '6'},
green = {gui = '#98C379', cterm = '114', cterm16 = '2'},
grey_comment = {gui = '#5C6370', cterm = '59', cterm16 = '15'},
grey_cursor = {gui = '#2C323C', cterm = '236', cterm16 = '8'},
grey_menu = {gui = '#3E4452', cterm = '237', cterm16 = '8'},
purple = {gui = '#C678DD', cterm = '170', cterm16 = '5'},
red = {gui = '#E06C75', cterm = '204', cterm16 = '1'},
white = {gui = '#ABB2BF', cterm = '145', cterm16 = '7'},
yellow = {gui = '#E5C07B', cterm = '180', cterm16 = '3'},
black = {gui = '#181926', cterm = '235', cterm16 = '0'},
blue = {gui = '#8aadf4', cterm = '39', cterm16 = '4'},
cyan = { gui = '#91d7e3', cterm = '38', cterm16 = '6'},
green = {gui = '#a6da95', cterm = '114', cterm16 = '2'},
grey_comment = {gui = '#a5adcb', cterm = '59', cterm16 = '15'},
grey_cursor = {gui = '#494d64', cterm = '236', cterm16 = '8'},
grey_menu = {gui = '#5b6078', cterm = '237', cterm16 = '8'},
purple = {gui = '#F5BDE6', cterm = '170', cterm16 = '5'},
red = {gui = '#ed8796', cterm = '204', cterm16 = '1'},
white = {gui = '#cad3f5', cterm = '145', cterm16 = '7'},
yellow = {gui = '#eed49f', cterm = '180', cterm16 = '3'},
}
local inactive = {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB