changeset 332:5b166328c2fd

Use localconfig lua file to load device specific configuration
author Zeger Van de Vannet <zegervdv@me.com>
date Thu, 14 Jan 2021 13:36:06 +0100
parents d43ba211f920
children a3a0de56b0eb
files dot_config/nvim/config.lua
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/dot_config/nvim/config.lua	Thu Jan 14 13:29:12 2021 +0100
+++ b/dot_config/nvim/config.lua	Thu Jan 14 13:36:06 2021 +0100
@@ -290,12 +290,6 @@
     on_attach = on_attach;
 }
 
-if (vim.fn.executable('veridian') == 1) then
-  lsp.veridian.setup{
-    on_attach = on_attach;
-  }
-end
-
 if (vim.fn.executable('efm-langserver') == 1) then
   require 'efm/python'
 
@@ -315,3 +309,9 @@
     };
   }
 end
+
+-- Try importing local config
+local ok, localconfig = pcall(require, 'localconfig')
+if ok then
+  localconfig.setup {on_attach=on_attach}
+end