# HG changeset patch # User Zeger Van de Vannet # Date 1610627766 -3600 # Node ID 5b166328c2fd9bbe2b63320200fe5f1786d503ca # Parent d43ba211f9206895b02f69b40391dc9d18a448ff Use localconfig lua file to load device specific configuration diff -r d43ba211f920 -r 5b166328c2fd dot_config/nvim/config.lua --- 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