aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/djlsp.lua
blob: a83886d1931399e87f97f999341602154609a4f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
return {
  default_config = {
    cmd = { 'djlsp' },
    filetypes = { 'html', 'htmldjango' },
    root_dir = function(fname)
      return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
    end,
    settings = {},
  },
  docs = {
    description = [[
      https://github.com/fourdigits/django-template-lsp

      `djlsp`, a language server for Django templates.
    ]],
  },
}