Check for nix executable rather than NixOS in uname
This commit is contained in:
parent
98e5633959
commit
497fed2c07
|
@ -6,6 +6,6 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
background_colour = "#000000",
|
background_colour = "#000000",
|
||||||
fps = 60,
|
fps = 60,
|
||||||
render = "compact",
|
render = "default",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"nvim-neorg/neorg",
|
"nvim-neorg/neorg",
|
||||||
cond = function() return string.match(vim.loop.os_uname().version, "NixOS") and not vim.g.vscode end,
|
cond = function() return vim.fn.executable("nix") == 1 and not vim.g.vscode end,
|
||||||
build = ":Neorg sync-parsers",
|
build = ":Neorg sync-parsers",
|
||||||
event = { "FileType norg" },
|
event = { "FileType norg" },
|
||||||
cmd = "Neorg",
|
cmd = "Neorg",
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
local dependencies
|
|
||||||
if vim.g.vscode then
|
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter-refactor" }
|
|
||||||
else
|
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter-refactor", "nvim-neorg/neorg" }
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
cond = function() return string.match(vim.loop.os_uname().version, "NixOS") end,
|
cond = function() return vim.fn.executable "nix" == 1 end,
|
||||||
version = false,
|
version = false,
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = dependencies,
|
dependencies = { "nvim-treesitter/nvim-treesitter-refactor", "nvim-neorg/neorg" },
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
if type(opts.ensure_installed) == "table" then
|
if type(opts.ensure_installed) == "table" then
|
||||||
-- @type table<string, boolean>
|
-- @type table<string, boolean>
|
||||||
|
|
Loading…
Reference in a new issue