aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-03-19 19:26:14 +0100
committerKarel Kočí <cynerd@email.cz>2024-03-19 19:26:14 +0100
commitc2dae64e0bf3c8334d715adb851995b3526a1108 (patch)
tree901cfc07dbe9b9c0dbd97e8a7abdfd64fc76fcfe /config
parente9b06bf8864adfccb61f87fca01835c19fde6e72 (diff)
downloadmyconfigs-c2dae64e0bf3c8334d715adb851995b3526a1108.tar.gz
myconfigs-c2dae64e0bf3c8334d715adb851995b3526a1108.tar.bz2
myconfigs-c2dae64e0bf3c8334d715adb851995b3526a1108.zip
Fixes
Diffstat (limited to 'config')
-rw-r--r--config/alacritty.toml2
-rw-r--r--config/nvim/lua/plugins.lua20
2 files changed, 12 insertions, 10 deletions
diff --git a/config/alacritty.toml b/config/alacritty.toml
index f1badce..f46434b 100644
--- a/config/alacritty.toml
+++ b/config/alacritty.toml
@@ -1,4 +1,4 @@
-#import = ["/home/cynerd/.config/alacritty/themes/themes/alabaster.toml"]
+#import = ["~/.config/alacritty/themes/themes/alabaster.toml"]
[colors.bright]
black = "#4c566a"
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua
index e9421d0..ce54ce6 100644
--- a/config/nvim/lua/plugins.lua
+++ b/config/nvim/lua/plugins.lua
@@ -112,15 +112,17 @@ require("packer").startup(function(use)
local ok, decoded = pcall(vim.json.decode, line)
if ok and decoded.file ~= nil then
for _, result in ipairs(decoded.results) do
- table.insert(diagnostics, {
- lnum = result.line,
- end_lnum = result.line,
- col = result.column,
- end_col = result.endColumn,
- severity = vim.diagnostic.severity.HINT,
- source = "deadnix",
- message = result.message,
- })
+ if result.line ~= nil then
+ table.insert(diagnostics, {
+ lnum = result.line,
+ end_lnum = result.line,
+ col = result.column,
+ end_col = result.endColumn,
+ severity = vim.diagnostic.severity.HINT,
+ source = "deadnix",
+ message = result.message,
+ })
+ end
end
end
end