Compare commits

..

3 commits

Author SHA1 Message Date
github-actions[bot]
89d2ff2a90 chore: update flake.lock
Flake lock file updates:

• Updated input 'neovim-nightly-overlay':
    'github:nix-community/neovim-nightly-overlay/d31b28318affe5d58ef12e7f72a7adfa66930a7a?narHash=sha256-pxxUR3VRDcDpMgF1qb9FnlHAEOGi24bk6pdB1QzL1II%3D' (2026-01-10)
  → 'github:nix-community/neovim-nightly-overlay/c18fb3367dbaa0830dd46443cc1cb006444e1f0e?narHash=sha256-Ufn7eONdsaB6wso01KOyC8fWXDPbCsf6q/120JrSRBg%3D' (2026-01-14)
• Updated input 'neovim-nightly-overlay/flake-parts':
    'github:hercules-ci/flake-parts/250481aafeb741edfe23d29195671c19b36b6dca?narHash=sha256-feveD98mQpptwrAEggBQKJTYbvwwglSbOv53uCfH9PY%3D' (2026-01-05)
  → 'github:hercules-ci/flake-parts/80daad04eddbbf5a4d883996a73f3f542fa437ac?narHash=sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY%3D' (2026-01-11)
• Updated input 'neovim-nightly-overlay/neovim-src':
    'github:neovim/neovim/930817f1009d9d392103b5440e2503cb47fdacc0?narHash=sha256-hcdQHR8l8oZDIl0vXKNtbrN%2B32dTs9EYvlqppoHgG2k%3D' (2026-01-09)
  → 'github:neovim/neovim/bb0f28f20be3b5dd64881d0528f43a8e2eea63c0?narHash=sha256-s3CvS2gr1y%2BDabfpNHjPy4Al2KVcWbS4F5TsfwR12Cs%3D' (2026-01-13)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/299d331f770cdf7c466a4faa08b3070a767d681d?narHash=sha256-V7El1ktdJ0/WWEr6wGBKFYu433vitrWvxmvPk79FsSc%3D' (2026-01-10)
  → 'github:NixOS/nixpkgs/6a758e1182472360ea18946eb064fef36041d744?narHash=sha256-Iy0CREn8AVYpQCXffCGnP1/PemrWDr2ST%2BvlFji/UQA%3D' (2026-01-14)
2026-01-14 10:23:28 +00:00
3c5c3a6745 misc cleanup
Some checks failed
build / build (nvim-min) (push) Failing after 36m25s
2026-01-12 01:13:57 -06:00
775af7d730 flake.lock: Update
Flake lock file updates:

• Updated input 'dart':
    'github:iofq/dart.nvim/26b476f2113143329637a27d4e52ce9772bcae5b?narHash=sha256-Z9idyP9kiKxC10VL0vHnxcBwrkpNtBrC%2BZxl9mQbCj8%3D' (2025-10-18)
  → 'github:iofq/dart.nvim/205f809fbb27d56aff22756a97b5ba6f0c7243c3?narHash=sha256-lLY34wnbyzi21zE8i%2BVM0AoEt67r4aPn/EoaZ8o4NgU%3D' (2025-12-07)
• Updated input 'neovim-nightly-overlay':
    'github:nix-community/neovim-nightly-overlay/3c9432813e5528a13075f5493da6ff9ef249ad1d?narHash=sha256-THAk4qzBOsp03bDBYK9Ek3mQEvl2g8Fea0QhpCoEzfs%3D' (2025-10-19)
  → 'github:nix-community/neovim-nightly-overlay/d31b28318affe5d58ef12e7f72a7adfa66930a7a?narHash=sha256-pxxUR3VRDcDpMgF1qb9FnlHAEOGi24bk6pdB1QzL1II%3D' (2026-01-10)
• Removed input 'neovim-nightly-overlay/flake-compat'
• Updated input 'neovim-nightly-overlay/flake-parts':
    'github:hercules-ci/flake-parts/4e627ac2e1b8f1de7f5090064242de9a259dbbc8?narHash=sha256-lbHQ7FXGzt6/IygWvJ1lCq%2BTxcut3xYYd6VIpF1ojkg%3D' (2025-10-18)
  → 'github:hercules-ci/flake-parts/250481aafeb741edfe23d29195671c19b36b6dca?narHash=sha256-feveD98mQpptwrAEggBQKJTYbvwwglSbOv53uCfH9PY%3D' (2026-01-05)
• Removed input 'neovim-nightly-overlay/git-hooks'
• Removed input 'neovim-nightly-overlay/git-hooks/flake-compat'
• Removed input 'neovim-nightly-overlay/git-hooks/gitignore'
• Removed input 'neovim-nightly-overlay/git-hooks/gitignore/nixpkgs'
• Removed input 'neovim-nightly-overlay/git-hooks/nixpkgs'
• Removed input 'neovim-nightly-overlay/hercules-ci-effects'
• Removed input 'neovim-nightly-overlay/hercules-ci-effects/flake-parts'
• Removed input 'neovim-nightly-overlay/hercules-ci-effects/nixpkgs'
• Updated input 'neovim-nightly-overlay/neovim-src':
    'github:neovim/neovim/be73c35943f85e7835c3a0fc89bddaeba944db29?narHash=sha256-VYkZdjjMOYsugoSydDDWE/1l79swm4zc4NJl1Z0brjA%3D' (2025-10-18)
  → 'github:neovim/neovim/930817f1009d9d392103b5440e2503cb47fdacc0?narHash=sha256-hcdQHR8l8oZDIl0vXKNtbrN%2B32dTs9EYvlqppoHgG2k%3D' (2026-01-09)
• Removed input 'neovim-nightly-overlay/treefmt-nix'
• Removed input 'neovim-nightly-overlay/treefmt-nix/nixpkgs'
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6a3b08503e9cab108f9f0ec27065c5854655662a?narHash=sha256-Il5%2B67iRA3xp0cIErILj4VwEJ2ICrDrvTAHEmBsZJKQ%3D' (2025-10-19)
  → 'github:NixOS/nixpkgs/299d331f770cdf7c466a4faa08b3070a767d681d?narHash=sha256-V7El1ktdJ0/WWEr6wGBKFYu433vitrWvxmvPk79FsSc%3D' (2026-01-10)
• Updated input 'nvim-treesitter-main':
    'github:iofq/nvim-treesitter-main/420c14c0523d65c6c7ce943e8f2fb896eff950e3?narHash=sha256-WJScDX0q/%2BPCRpvBSlJfV01kwvu9WCk5YDpzW2Zswj8%3D' (2025-10-19)
  → 'github:iofq/nvim-treesitter-main/d82b04e1a05f88ed88c6221672ca0636dc8d6ef7?narHash=sha256-ej7y4nhiJNFE/HcZSPTEIrU6/WQmkMJo%2BbVQfgT3abE%3D' (2026-01-06)
• Updated input 'nvim-treesitter-main/nixpkgs':
    'github:nixos/nixpkgs/544961dfcce86422ba200ed9a0b00dd4b1486ec5?narHash=sha256-EVAqOteLBFmd7pKkb0%2BFIUyzTF61VKi7YmvP1tw4nEw%3D' (2025-10-15)
  → 'github:nixos/nixpkgs/fb7944c166a3b630f177938e478f0378e64ce108?narHash=sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf%2BOkucw%3D' (2026-01-02)
• Updated input 'nvim-treesitter-main/nvim-treesitter':
    'github:nvim-treesitter/nvim-treesitter/71bf1665f804d46f7e4b24ad7ffc11f6ea5b271a?narHash=sha256-ZeNCXy6%2BI18N%2BNu2sKnEk2otVEb8V3tKhL8Jq95wS5k%3D' (2025-10-19)
  → 'github:nvim-treesitter/nvim-treesitter/300b906a9514d5e0ce02911d371445382fe35a31?narHash=sha256-LX0rKTZ56Rp0uQfIXZ2JrcWxuCA/t8NJjK05aKiT0Yw%3D' (2026-01-03)
• Updated input 'nvim-treesitter-main/nvim-treesitter-textobjects':
    'github:nvim-treesitter/nvim-treesitter-textobjects/1b2d85d3de6114c4bcea89ffb2cd1ce9e3a19931?narHash=sha256-%2BKmOpRi4JAqm6UqYdtk80jwFrJhLCs0lZM/Liofq0R4%3D' (2025-08-28)
  → 'github:nvim-treesitter/nvim-treesitter-textobjects/28a3494c075ef0f353314f627546537e43c09592?narHash=sha256-5VeIAW09my%2B4fqXbzVG7RnLXrjpXAk/g2vd7RbhNws8%3D' (2026-01-03)
2026-01-09 23:08:24 -06:00
9 changed files with 55 additions and 169 deletions

View file

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
package_name: ["nvim"] package_name: ["nvim-min"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main

View file

@ -5,7 +5,7 @@
## Usage ## Usage
Try it out! Try it out!
```bash ```bash
nix run "github:iofq/nvim.nix" #nvim nix run "github:iofq/nvim.nix" #nvim-min
``` ```
Or use in a flake: Or use in a flake:

99
flake.lock generated
View file

@ -61,11 +61,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1765835352, "lastModified": 1768135262,
"narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=", "narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "a34fae9c08a15ad73f295041fec82323541400a9", "rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -203,11 +203,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1767225850, "lastModified": 1768349111,
"narHash": "sha256-gmoKSWO4DM/VnlskS9UmQnXyZTm0xcl4cDx3e/CJZeY=", "narHash": "sha256-Ufn7eONdsaB6wso01KOyC8fWXDPbCsf6q/120JrSRBg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "dfbb35b3cf396ead65028b7023f07f51927f86e3", "rev": "c18fb3367dbaa0830dd46443cc1cb006444e1f0e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -219,11 +219,11 @@
"neovim-src": { "neovim-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1767222005, "lastModified": 1768347573,
"narHash": "sha256-SewYGH53QWyiHBNCxJuyESu/D7v0tXi2oq3NREI/AeA=", "narHash": "sha256-s3CvS2gr1y+DabfpNHjPy4Al2KVcWbS4F5TsfwR12Cs=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "170992c8d218f28dcffd967ecc2bae3fb3c46545", "rev": "bb0f28f20be3b5dd64881d0528f43a8e2eea63c0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -277,98 +277,27 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1767116409, "lastModified": 1768384274,
"narHash": "sha256-5vKw92l1GyTnjoLzEagJy5V5mDFck72LiQWZSOnSicw=", "narHash": "sha256-Iy0CREn8AVYpQCXffCGnP1/PemrWDr2ST+vlFji/UQA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cad22e7d996aea55ecab064e84834289143e44a0", "rev": "6a758e1182472360ea18946eb064fef36041d744",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-unstable", "ref": "master",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": {
"locked": {
"lastModified": 1766651565,
"narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3e2499d5539c16d0d173ba53552a4ff8547f4539",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nvim-treesitter": {
"flake": false,
"locked": {
"lastModified": 1766818605,
"narHash": "sha256-E3nJCBGKBUQWYAL9h9ygdtCCndi0+rwkq0hhAAq1W94=",
"owner": "nvim-treesitter",
"repo": "nvim-treesitter",
"rev": "36fcb4a4238928f0b627e1ab84ade0acc1facc2c",
"type": "github"
},
"original": {
"owner": "nvim-treesitter",
"ref": "main",
"repo": "nvim-treesitter",
"type": "github"
}
},
"nvim-treesitter-main": {
"inputs": {
"nixpkgs": "nixpkgs_3",
"nvim-treesitter": "nvim-treesitter",
"nvim-treesitter-textobjects": "nvim-treesitter-textobjects"
},
"locked": {
"lastModified": 1766957367,
"narHash": "sha256-Robm9U2blKNPCqQAMzrNyr2VL/PGSOsyvg+NbQL2N0E=",
"owner": "iofq",
"repo": "nvim-treesitter-main",
"rev": "85ae6d99e035e1d1e025bbba8df467e9db709a0b",
"type": "github"
},
"original": {
"owner": "iofq",
"repo": "nvim-treesitter-main",
"type": "github"
}
},
"nvim-treesitter-textobjects": {
"flake": false,
"locked": {
"lastModified": 1766794712,
"narHash": "sha256-mMxCAkrGqTstEgaf/vwQMEF7D8swH3oyUJtaxuXzpcs=",
"owner": "nvim-treesitter",
"repo": "nvim-treesitter-textobjects",
"rev": "ecd03f5811eb5c66d2fa420b79121b866feecd82",
"type": "github"
},
"original": {
"owner": "nvim-treesitter",
"ref": "main",
"repo": "nvim-treesitter-textobjects",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"dart": "dart", "dart": "dart",
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
"gen-luarc": "gen-luarc", "gen-luarc": "gen-luarc",
"neovim-nightly-overlay": "neovim-nightly-overlay", "neovim-nightly-overlay": "neovim-nightly-overlay",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2"
"nvim-treesitter-main": "nvim-treesitter-main"
} }
}, },
"systems": { "systems": {

View file

@ -2,7 +2,7 @@
description = "Neovim derivation"; description = "Neovim derivation";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
neovim-nightly-overlay = { neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay"; url = "github:nix-community/neovim-nightly-overlay";
@ -15,9 +15,6 @@
dart = { dart = {
url = "github:iofq/dart.nvim"; url = "github:iofq/dart.nvim";
}; };
nvim-treesitter-main = {
url = "github:iofq/nvim-treesitter-main";
};
}; };
outputs = outputs =
inputs@{ inputs@{
@ -32,17 +29,6 @@
neovim-overlay = import ./nix/neovim-overlay.nix { inherit inputs; }; neovim-overlay = import ./nix/neovim-overlay.nix { inherit inputs; };
finalOverlays = [ finalOverlays = [
inputs.neovim-nightly-overlay.overlays.default inputs.neovim-nightly-overlay.overlays.default
inputs.nvim-treesitter-main.overlays.default
(final: prev: {
vimPlugins = prev.vimPlugins.extend (
f: p: {
nvim-treesitter = p.nvim-treesitter.withAllGrammars;
nvim-treesitter-textobjects = p.nvim-treesitter-textobjects.overrideAttrs {
dependencies = [ f.nvim-treesitter ];
};
}
);
})
neovim-overlay neovim-overlay
]; ];
in in
@ -73,6 +59,7 @@
packages = rec { packages = rec {
default = nvim; default = nvim;
nvim = pkgs.nvim-pkg; nvim = pkgs.nvim-pkg;
nvim-min = pkgs.nvim-min-pkg;
}; };
devShells = { devShells = {
default = shell; default = shell;

View file

@ -14,21 +14,43 @@ let
nvim-autopairs nvim-autopairs
nvim-lint nvim-lint
nvim-lspconfig nvim-lspconfig
nvim-treesitter nvim-treesitter.withAllGrammars
nvim-treesitter-textobjects nvim-treesitter-textobjects
quicker-nvim quicker-nvim
render-markdown-nvim render-markdown-nvim
snacks-nvim snacks-nvim
]; ];
packages = with prev; [ basePackages = with prev; [
ripgrep ripgrep
fd fd
]; ];
# Extra packages that should be included on nixos but don't need to be bundled
extraPackages = with prev; [
# linters
yamllint
jq
hadolint
nixfmt
shellcheck
golangci-lint
# LSPs
gopls
lua-language-server
nixd
basedpyright
];
in in
{ {
nvim-pkg = mkNeovim { nvim-pkg = mkNeovim {
inherit plugins packages; inherit plugins;
packages = basePackages ++ extraPackages;
};
nvim-min-pkg = mkNeovim {
inherit plugins;
packages = basePackages;
}; };
nvim-luarc-json = final.mk-luarc-json { nvim-luarc-json = final.mk-luarc-json {

View file

@ -62,21 +62,6 @@ function M.file_history(filename)
end end
end end
local function confirm(picker, item)
picker:close()
local cmd = string.format('jj show --git -r %s', item.rev)
local out = vim.fn.systemlist(cmd)
local bufnr = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, out)
vim.bo[bufnr].bufhidden = 'wipe'
vim.bo[bufnr].buftype = 'nofile'
vim.bo[bufnr].filetype = 'diff'
vim.keymap.set('n', 'q', vim.cmd.bdelete, { buffer = bufnr, noremap = true })
vim.api.nvim_set_current_buf(bufnr)
end
local function get_history(f) local function get_history(f)
local status_raw = vim.fn.system( local status_raw = vim.fn.system(
'jj log --ignore-working-copy --no-graph' 'jj log --ignore-working-copy --no-graph'
@ -100,7 +85,6 @@ function M.file_history(filename)
title = 'jj file history for ' .. filename, title = 'jj file history for ' .. filename,
items = get_history(filename), items = get_history(filename),
preview = preview, preview = preview,
confirm = confirm,
} }
end end
return M return M

View file

@ -48,7 +48,7 @@ cmd('FileType', {
local ns = vim.api.nvim_create_namespace('nvim.difftool.hl') local ns = vim.api.nvim_create_namespace('nvim.difftool.hl')
vim.api.nvim_buf_clear_namespace(event.buf, ns, 0, -1) vim.api.nvim_buf_clear_namespace(event.buf, ns, 0, -1)
for i, item in ipairs(qf) do for i, item in ipairs(qf) do
local path = vim.fn.fnamemodify(item.user_data.right, ':.') local path = vim.fn.fnamemodify(item.user_data.right, ':t')
local hl = 'Added' local hl = 'Added'
if if
exec('git diff --quiet -- %s', path) ~= 0 exec('git diff --quiet -- %s', path) ~= 0
@ -98,45 +98,6 @@ cmd('BufWinEnter', {
vim.cmd(string.format('%dcopen', math.min(10, #items))) vim.cmd(string.format('%dcopen', math.min(10, #items)))
end) end)
end end
local function get_hunks(bufnr)
local conf_start = vim.fn.search('^<<<<<<<', 'bc')
local base_start = vim.fn.search('^|||||||', 'W')
local base_end = vim.fn.search('^=======', 'W')
local conf_end = vim.fn.search('^>>>>>>>', 'W')
local left = vim.api.nvim_buf_get_lines(bufnr, conf_start, base_start - 1, false)
local right = vim.api.nvim_buf_get_lines(bufnr, base_end, conf_end - 1, false)
return {
start = conf_start,
stop = conf_end,
left = left,
right = right,
}
end
local function apply_hunk(hunks, first)
local result = {}
if first == -1 then -- left first
vim.list_extend(result, hunks.left)
vim.list_extend(result, hunks.right)
else
vim.list_extend(result, hunks.right)
vim.list_extend(result, hunks.left)
end
-- apply hunk in place
vim.api.nvim_buf_set_lines(0, hunks.start - 1, hunks.stop, false, result)
end
-- "combine" mappings ala vscode's merge editor
vim.keymap.set('n', '<leader>dl', function()
apply_hunk(get_hunks(event.buf), -1)
end, { buffer = event.buf })
vim.keymap.set('n', '<leader>dr', function()
apply_hunk(get_hunks(event.buf), 1)
end, { buffer = event.buf })
end, end,
}) })

View file

@ -9,8 +9,6 @@ vim.schedule(function()
ai.setup { ai.setup {
n_lines = 300, n_lines = 300,
custom_textobjects = { custom_textobjects = {
i = require('mini.extra').gen_ai_spec.indent(),
b = require('mini.extra').gen_ai_spec.buffer(),
a = ai.gen_spec.treesitter { a = '@parameter.outer', i = '@parameter.inner' }, a = ai.gen_spec.treesitter { a = '@parameter.outer', i = '@parameter.inner' },
f = ai.gen_spec.treesitter { a = '@function.outer', i = '@function.inner' }, f = ai.gen_spec.treesitter { a = '@function.outer', i = '@function.inner' },
}, },
@ -18,7 +16,9 @@ vim.schedule(function()
require('mini.git').setup() require('mini.git').setup()
map('n', '<leader>gb', '<Cmd>Git blame -- %<CR>') map('n', '<leader>gb', '<Cmd>Git blame -- %<CR>')
map('n', '<leader>go', MiniGit.show_at_cursor) map('n', '<leader>go', function()
return MiniGit.show_at_cursor()
end)
local jump = require('mini.jump2d') local jump = require('mini.jump2d')
jump.setup { jump.setup {

View file

@ -3,7 +3,12 @@ local map = vim.keymap.set
require('mini.basics').setup { mappings = { windows = true } } require('mini.basics').setup { mappings = { windows = true } }
require('mini.icons').setup() require('mini.icons').setup()
require('dart').setup {} require('dart').setup {
tabline = {
icons = false,
label_marked_fg = 'cyan',
},
}
require('snacks').setup { require('snacks').setup {
bigfile = { enabled = true }, bigfile = { enabled = true },
@ -71,6 +76,7 @@ vim.schedule(function()
json = { 'jq' }, json = { 'jq' },
lua = { 'stylua' }, lua = { 'stylua' },
python = { 'ruff' }, python = { 'ruff' },
nix = { 'nixfmt' },
fish = { 'fish_indent' }, fish = { 'fish_indent' },
['*'] = { 'trim_whitespace' }, ['*'] = { 'trim_whitespace' },
}, },
@ -93,14 +99,11 @@ vim.schedule(function()
require('lint').linters_by_ft = { require('lint').linters_by_ft = {
docker = { 'hadolint' }, docker = { 'hadolint' },
yaml = { 'yamllint' },
sh = { 'shellcheck' }, sh = { 'shellcheck' },
go = { 'golangcilint' }, go = { 'golangcilint' },
ruby = { 'rubocop' },
fish = { 'fish' }, fish = { 'fish' },
bash = { 'bash' }, bash = { 'bash' },
nix = { 'nix' }, nix = { 'nix' },
php = { 'php' },
} }
vim.api.nvim_create_autocmd({ 'BufWritePost' }, { vim.api.nvim_create_autocmd({ 'BufWritePost' }, {
callback = function() callback = function()
@ -116,7 +119,7 @@ vim.schedule(function()
sources = { sources = {
default = { 'lsp', 'path', 'snippets', 'ripgrep', 'buffer' }, default = { 'lsp', 'path', 'snippets', 'ripgrep', 'buffer' },
providers = { providers = {
lsp = { fallbacks = {}, async = true }, -- include buffer even when LSP is active lsp = { fallbacks = {} }, -- include buffer even when LSP is active
path = { opts = { get_cwd = vim.fn.getcwd } }, -- use nvim pwd instead of current file pwd path = { opts = { get_cwd = vim.fn.getcwd } }, -- use nvim pwd instead of current file pwd
ripgrep = { ripgrep = {
module = 'blink-ripgrep', module = 'blink-ripgrep',