aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/fennel_language_server.lua
blob: a26e77023c8b446ff82e01df23f013e329026829 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local util = require 'lspconfig.util'

local cmd = { 'fennel-language-server' }

if vim.fn.has 'win32' == 1 then
  cmd = { 'cmd.exe', '/C', 'fennel-language-server' }
end

return {
  default_config = {
    cmd = cmd,
    filetypes = { 'fennel' },
    single_file_support = true,
    root_dir = util.find_git_ancestor,
    settings = {},
  },
  docs = {
    description = [[
https://github.com/rydesun/fennel-language-server

Fennel language server protocol (LSP) support.
]],
  },
}