Skip to content

Commit

Permalink
fix(lsp): missing after/ftplugin twig
Browse files Browse the repository at this point in the history
  • Loading branch information
n3wborn committed Aug 5, 2024
1 parent 5480689 commit c022658
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions after/ftplugin/twig.html.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---@type vim.lsp.ClientConfig
local config = {
name = 'twiggy_language_server',
cmd = { 'twiggy-language-server', '--stdio' },
root_dir = function()
local util = require('lspconfig.util')
util.root_dir('composer.json', '.git')
end,
}

vim.lsp.start(config, {
reuse_client = function(client, conf)
return (client.name == conf.name and (client.config.root_dir == conf.root_dir))
end,
bufnr = vim.api.nvim_get_current_buf(),
})

0 comments on commit c022658

Please sign in to comment.