aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/statix.lua
blob: e7cc6d53d93840f2b3dc47d0f5a722c31bd94e19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'statix', 'check', '--stdin' },
    filetypes = { 'nix' },
    single_file_support = true,
    root_dir = util.root_pattern('flake.nix', '.git'),
  },
  docs = {
    description = [[
https://github.com/nerdypepper/statix

lints and suggestions for the nix programming language
    ]],
  },
}