aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/alacritty.toml2
-rw-r--r--config/nvim/lua/plugins.lua20
m---------private0
-rw-r--r--profile6
4 files changed, 17 insertions, 11 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
diff --git a/private b/private
-Subproject 70e3105deafdabf588294bcc62a0d16d84a04ab
+Subproject 166859293d7f610d90bab4bb0307c83ea67fc9d
diff --git a/profile b/profile
index 5fa0d56..0b185a7 100644
--- a/profile
+++ b/profile
@@ -1,6 +1,10 @@
# First global user configuration
export PATH="$HOME/.local/bin:$PATH"
-export EDITOR=vim
+if command -v nvim >/dev/null; then
+ export EDITOR=nvim
+else
+ export EDITOR=vim
+fi
# ct-ng configuration
export CT_PREFIX_DIR='~/.local/${CT_TARGET}'