[2024-06-07] Add status col plugin and default feline theme
This commit is contained in:
parent
f278ae145c
commit
013e2225eb
4 changed files with 68 additions and 6 deletions
|
@ -1,7 +1,23 @@
|
|||
require('plugins.gruvbox')
|
||||
--vim.cmd('colorscheme default')
|
||||
--require('plugins.gruvbox')
|
||||
require('plugins.feline')
|
||||
require('gitsigns').setup()
|
||||
require('plugins.matlab_ls')
|
||||
require('plugins.lua_ls')
|
||||
require('plugins.treesitter')
|
||||
require('battery').setup()
|
||||
require('plugins.noice')
|
||||
require('plugins.statuscol')
|
||||
vim.diagnostic.config({
|
||||
virtual_text = false,
|
||||
underline = true,
|
||||
signs = {
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = '●',
|
||||
[vim.diagnostic.severity.WARN] = '●',
|
||||
[vim.diagnostic.severity.INFO] = '●',
|
||||
[vim.diagnostic.severity.HINT] = '●'
|
||||
}
|
||||
}
|
||||
})
|
||||
--vim.api.nvim_set_hl(0,"DiagnosticUnderlineWarn",{undercurl=true,sp='DiagnosticWarn'})
|
||||
|
|
16
nvim/lua/plugins/statuscol.lua
Normal file
16
nvim/lua/plugins/statuscol.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
local builtin = require("statuscol.builtin")
|
||||
require('statuscol').setup({
|
||||
relculright = true,
|
||||
ft_ignore = { 'neo-tree' },
|
||||
segments = {
|
||||
{
|
||||
sign = { namespace={'diag*'} },
|
||||
click = "v:lua.ScSa"
|
||||
},
|
||||
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa", },
|
||||
{
|
||||
sign = { namespace={'git*'} },
|
||||
click = "v:lua.ScSa"
|
||||
},
|
||||
}
|
||||
})
|
26
nvim/lua/themes/default.lua
Normal file
26
nvim/lua/themes/default.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
-- :filter Nvim* highlight
|
||||
local hex = function(n)
|
||||
return string.format("#%06x", n)
|
||||
end
|
||||
local fg = function(n)
|
||||
colour = vim.api.nvim_get_hl_by_name(n, true)
|
||||
return hex(colour.foreground)
|
||||
end
|
||||
local bg = function(n)
|
||||
colour = vim.api.nvim_get_hl_by_name(n, true)
|
||||
return hex(colour.background)
|
||||
end
|
||||
|
||||
return {
|
||||
bg = '#000000',
|
||||
black = '#000000',
|
||||
fg = fg("Normal"),
|
||||
green = fg("DiagnosticOk"),
|
||||
blue = fg("DiagnosticHint"),
|
||||
orange = fg("DiagnosticWarn"),
|
||||
red = fg("DiagnosticError"),
|
||||
purple = fg("DiagnosticHint"),
|
||||
white = '#FFFFFF',
|
||||
yellow = fg("DiagnosticWarn"),
|
||||
aqua = fg("DiagnosticHint")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue