1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00
dotfiles/.config/nvim/lua/style.lua

136 lines
2.6 KiB
Lua
Raw Normal View History

-- set signs for various uses
Return_sign = ""
2024-03-08 03:45:12 +01:00
Space_sign = "·"
2024-03-08 04:03:56 +01:00
Reference_sign = "%s"
Definition_sign = ""
2023-08-08 02:56:29 +02:00
Error_sign = ""
Hack_sign = ""
2024-03-08 03:45:12 +01:00
Hint_sign = ""
Info_sign = ""
2023-08-08 02:56:29 +02:00
Perfect_sign = ""
Test_sign = ""
2024-03-08 03:45:12 +01:00
Todo_sign = ""
Warn_sign = ""
2023-08-08 02:56:29 +02:00
Menu_signs = {
buffer = "",
luasnip = "",
2024-03-08 03:45:12 +01:00
nvim_lsp = "",
path = "",
}
Lsp_signs = {
2024-03-08 03:45:12 +01:00
Array = "",
Boolean = "",
Class = "",
Color = "",
Component = "",
Constant = "π",
Constructor = "",
2024-03-08 03:45:12 +01:00
Enum = "",
EnumMember = "",
Event = "",
Field = "",
2024-03-08 03:45:12 +01:00
File = "",
Folder = "",
Fragment = "",
Function = "φ",
Interface = "",
Keyword = "",
2024-03-08 03:45:12 +01:00
Method = "",
Module = "",
Namespace = "",
Null = "",
Number = "#",
Object = "",
Operator = "",
Package = "",
Property = "",
Reference = "",
2024-03-08 03:45:12 +01:00
Snippet = "",
String = "",
Struct = "",
2024-03-08 03:45:12 +01:00
Text = "",
TypeParameter = "",
Unit = "",
Value = "",
Variable = "β",
}
Install_signs = {
package_installed = "",
package_pending = "",
2024-03-08 03:45:12 +01:00
package_uninstalled = "",
}
Git_signs = {
2024-03-08 03:45:12 +01:00
deleted = "",
ignored = "",
renamed = "",
staged = "",
unmerged = "",
2024-03-08 03:45:12 +01:00
unstaged = "",
untracked = "",
}
Lazy_signs = {
cmd = "",
config = "",
event = "",
ft = "",
import = "",
2024-03-08 03:45:12 +01:00
init = "",
keys = "",
lazy = "󰒲 ",
2024-03-08 03:45:12 +01:00
list = {
"",
"",
"",
"",
},
loaded = "",
not_loaded = "",
plugin = "",
runtime = "",
source = "",
start = "",
task = "",
}
2023-08-15 12:45:15 +02:00
Lualine_signs = {
2024-03-08 03:45:12 +01:00
modified = "",
newfile = "",
readonly = "",
unnamed = "",
2023-08-15 12:45:15 +02:00
}
2023-08-08 02:56:29 +02:00
vim.fn.sign_define(
"DiagnosticSignError",
{ texthl = "DiagnosticSignError", text = Error_sign, numhl = "DiagnosticSignError" }
)
vim.fn.sign_define(
"DiagnosticSignWarn",
{ texthl = "DiagnosticSignWarn", text = Warn_sign, numhl = "DiagnosticSignWarn" }
)
vim.fn.sign_define(
"DiagnosticSignInfo",
{ texthl = "DiagnosticSignInfo", text = Info_sign, numhl = "DiagnosticSignInfo" }
)
vim.fn.sign_define(
"DiagnosticSignHint",
{ texthl = "DiagnosticSignHint", text = Hint_sign, numhl = "DiagnosticSignHint" }
)
-- enable colorcolumn when textwidth is set
vim.o.cursorline = true
2024-03-08 03:45:12 +01:00
vim.opt_local.colorcolumn = "+" .. vim.fn.join(vim.fn.range(0, 254), ",+")
-- alternatively highlight only one line for colorcolumn
-- vim.o.colorcolumn = "-0"
-- display certain invisible chars
vim.o.list = true
vim.opt.listchars:append("space:" .. Space_sign)
vim.opt.listchars:append("eol:" .. Return_sign)