add jq package
This commit is contained in:
parent
92889db745
commit
a4d39edbdf
3 changed files with 14 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
local util = require("lspconfig.util")
|
||||
|
||||
require("lspconfig").lua_ls.setup({
|
||||
on_init = function(client)
|
||||
local path = client.workspace_folders[1].name
|
||||
|
|
@ -46,6 +48,12 @@ return {
|
|||
nil_ls = false,
|
||||
nixd = {
|
||||
cmd = { "nixd" },
|
||||
filetypes = { "nix" },
|
||||
single_file_support = true,
|
||||
root_dir = function(fname)
|
||||
return util.root_pattern("flake.nix")(fname)
|
||||
or vim.fs.dirname(vim.fs.find(".git", { path = fname, upward = true })[1])
|
||||
end,
|
||||
settings = {
|
||||
nixd = {
|
||||
nixpkgs = {
|
||||
|
|
@ -70,6 +78,10 @@ return {
|
|||
filetypes = { "nginx" },
|
||||
rootPatterns = { "nginx.conf", ".git" },
|
||||
},
|
||||
jsonls = {
|
||||
cmd = { "vscode-json-languageserver", "--stdio" },
|
||||
filetypes = { "json" },
|
||||
},
|
||||
},
|
||||
},
|
||||
setup = {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue