aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/none-ls.lua
blob: 176c8f5fe7a1e733c1884ecc0c3e37e63e279f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- ripped from https://www.lazyvim.org/extras/lsp/none-ls
return {
    "nvimtools/none-ls.nvim",
    opts = function(_, opts)
        local nls = require("null-ls")
        opts.root_dir = opts.root_dir
            or require("null-ls.utils").root_pattern(".null-ls-root", ".neoconf.json", "Makefile", ".git")
        opts.sources = vim.list_extend(opts.sources or {}, {
            nls.builtins.formatting.alejandra,
        })
    end,
}