comparison dot_config/nvim/init.lua @ 310:386f7d66c031

Add efm-langserver for formatting and linting
author zegervdv <zegervdv@me.com>
date Wed, 25 Nov 2020 09:05:10 +0100
parents 33b9f4c5ae6a
children 8cefee2cbe37
comparison
equal deleted inserted replaced
309:49b61215e3d0 310:386f7d66c031
1 local lsp = require'lspconfig' 1 local lsp = require'lspconfig'
2 local lsputil = require'lspconfig.util'
2 3
3 require "nvim-treesitter.highlight" 4 require "nvim-treesitter.highlight"
4 5
5 require'nvim-treesitter.configs'.setup { 6 require'nvim-treesitter.configs'.setup {
6 highlight = { 7 highlight = {
102 if (vim.fn.executable('veridian') == 1) then 103 if (vim.fn.executable('veridian') == 1) then
103 lsp.veridian.setup{ 104 lsp.veridian.setup{
104 on_attach = on_attach; 105 on_attach = on_attach;
105 } 106 }
106 end 107 end
108
109 if (vim.fn.executable('efm-langserver') == 1) then
110 lsp.efm.setup{
111 on_attach = on_attach;
112 root_dir = lsputil.root_pattern('.git', '.hg');
113 }
114 end