comparison dot_config/nvim/config.lua @ 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
comparison
equal deleted inserted replaced
331:d43ba211f920 332:5b166328c2fd
288 lsp.pyls.setup{ 288 lsp.pyls.setup{
289 cmd = {"pyls"}, 289 cmd = {"pyls"},
290 on_attach = on_attach; 290 on_attach = on_attach;
291 } 291 }
292 292
293 if (vim.fn.executable('veridian') == 1) then
294 lsp.veridian.setup{
295 on_attach = on_attach;
296 }
297 end
298
299 if (vim.fn.executable('efm-langserver') == 1) then 293 if (vim.fn.executable('efm-langserver') == 1) then
300 require 'efm/python' 294 require 'efm/python'
301 295
302 -- May not be installed, use pcall to handle errors 296 -- May not be installed, use pcall to handle errors
303 pcall(require, 'efm/systemverilog') 297 pcall(require, 'efm/systemverilog')
313 rootMarkers = {".git/", ".hg/"}, 307 rootMarkers = {".git/", ".hg/"},
314 languages = language_cfg 308 languages = language_cfg
315 }; 309 };
316 } 310 }
317 end 311 end
312
313 -- Try importing local config
314 local ok, localconfig = pcall(require, 'localconfig')
315 if ok then
316 localconfig.setup {on_attach=on_attach}
317 end