Compare commits

..

No commits in common. "7fbcfa7c541a94acf8a3e7f588cb50ca4c3f4a3e" and "71651618566fb03fa9acedbee6276c3e14d3bad3" have entirely different histories.

9 changed files with 89 additions and 160 deletions

196
flake.lock generated
View file

@ -1,19 +1,18 @@
{ {
"nodes": { "nodes": {
"dart": { "dart": {
"inputs": { "flake": false,
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": { "locked": {
"lastModified": 1758080529, "lastModified": 1754291267,
"narHash": "sha256-Sup4+HacL6Xe6mTk23N6sD4uXoU9dcoqRgc9Mu0oQ5E=", "owner": "iofq",
"path": "/home/e/dev/dart.nvim", "repo": "dart.nvim",
"type": "path" "rev": "617587d40fd2f2727c18758c4e6decac78459529",
"type": "github"
}, },
"original": { "original": {
"path": "/home/e/dev/dart.nvim", "owner": "iofq",
"type": "path" "repo": "dart.nvim",
"type": "github"
} }
}, },
"flake-compat": { "flake-compat": {
@ -90,11 +89,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1756770412, "lastModified": 1754487366,
"narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=", "narHash": "sha256-pHYj8gUBapuUzKV/kN/tR3Zvqc7o6gdFB9XKXIp1SQ8=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "4524271976b625a4a605beefd893f270620fd751", "rev": "af66ad14b28a127c5c0f3bbb298218fc63528a18",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -103,6 +102,27 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts_3": {
"inputs": {
"nixpkgs-lib": [
"neovim-nightly-overlay",
"hercules-ci-effects",
"nixpkgs"
]
},
"locked": {
"lastModified": 1751413152,
"narHash": "sha256-Tyw1RjYEsp5scoigs1384gIg6e0GoBVjms4aXFfRssQ=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "77826244401ea9de6e3bac47c2db46005e1f30b5",
"type": "github"
},
"original": {
"id": "flake-parts",
"type": "indirect"
}
},
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
@ -120,24 +140,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gen-luarc": { "gen-luarc": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
@ -148,11 +150,10 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1755304025, "lastModified": 1754586557,
"narHash": "sha256-xVKfjFwc0zMbLMjLTiHz+0llggkjs93SmHkhaa9S3M4=",
"owner": "mrcjkb", "owner": "mrcjkb",
"repo": "nix-gen-luarc-json", "repo": "nix-gen-luarc-json",
"rev": "1865b0ebb753ae5324d7381b1fa8c98c04ec7509", "rev": "4b8d4da04808062e2b1ef0e7bcd0a03bcb93e043",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -195,11 +196,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1758108966, "lastModified": 1754416808,
"narHash": "sha256-ytw7ROXaWZ7OfwHrQ9xvjpUWeGVm86pwnEd1QhzawIo=", "narHash": "sha256-c6yg0EQ9xVESx6HGDOCMcyRSjaTpNJP10ef+6fRcofA=",
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "54df955a695a84cd47d4a43e08e1feaf90b1fd9b", "rev": "9c52372878df6911f9afc1e2a1391f55e4dfc864",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -254,21 +255,18 @@
}, },
"hercules-ci-effects": { "hercules-ci-effects": {
"inputs": { "inputs": {
"flake-parts": [ "flake-parts": "flake-parts_3",
"neovim-nightly-overlay",
"flake-parts"
],
"nixpkgs": [ "nixpkgs": [
"neovim-nightly-overlay", "neovim-nightly-overlay",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1758022363, "lastModified": 1752595130,
"narHash": "sha256-ENUhCRWgSX4ni751HieNuQoq06dJvApV/Nm89kh+/A0=", "narHash": "sha256-CNBgr4OZSuklGtNOa9CnTNo9+Xceqn/EDAC1Tc43fH8=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "hercules-ci-effects", "repo": "hercules-ci-effects",
"rev": "1a3667d33e247ad35ca250698d63f49a5453d824", "rev": "5f2e09654b2e70ba643e41609d9f9b6640f22113",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -300,15 +298,14 @@
"git-hooks": "git-hooks_2", "git-hooks": "git-hooks_2",
"hercules-ci-effects": "hercules-ci-effects", "hercules-ci-effects": "hercules-ci-effects",
"neovim-src": "neovim-src", "neovim-src": "neovim-src",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1759277111, "lastModified": 1754641381,
"narHash": "sha256-SDLZMha2miaChOBGBkQJlTtk2kvcB7WIVVZ2l0/9byc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "b7b3632fab34541543373254c265da03c1d0f240", "rev": "83aaf3085f808dec9ea1b5d16b216875a8081b37",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -320,11 +317,11 @@
"neovim-src": { "neovim-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1759210115, "lastModified": 1754610154,
"narHash": "sha256-oc1pPeoe8458X0r/Wum8CucVcJLlIp4mg+1HiOSVRgA=", "narHash": "sha256-ORfF40X4BGiFxnLNQbdsQbUTW4TkUHfPqyZWHaYL5NE=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "198c9e9bca7549cf7110be8c6f1df1c38d4e747f", "rev": "038eb01b41b66379f75164507571497929f8847c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -335,15 +332,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1755660401, "lastModified": 1754393734,
"narHash": "sha256-fbnmAwTQkuXHKBlcL5Nq1sMAzd3GFqCOQgEQw6Hy0Ak=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5788de501b965d7413f2beaac10aeeb56f9a19a8", "rev": "a683adc19ff5228af548c6539dbc3440509bfed3",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "master", "ref": "nixpkgs-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -378,27 +376,10 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1759070547, "lastModified": 1754893210,
"narHash": "sha256-JVZl8NaVRYb0+381nl7LvPE+A774/dRpif01FKLrYFQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "647e5c14cbd5067f44ac86b74f014962df460840", "rev": "defc725219d1fb9b56662370e014012929e557af",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1759300078,
"narHash": "sha256-7G5fSMPNVwWNlFpZLwvKB8PUOaqPzFQbrtZ7RAzg2nw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d48b56f4899ee1d5377291576284969c9e37acc2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -408,30 +389,13 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": {
"locked": {
"lastModified": 1757745802,
"narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nvim-treesitter": { "nvim-treesitter": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1757840001, "lastModified": 1754640844,
"narHash": "sha256-9LcVSwWfOvp+1fLWqQtSohGax40gD9sGz9t0amySyDk=",
"owner": "nvim-treesitter", "owner": "nvim-treesitter",
"repo": "nvim-treesitter", "repo": "nvim-treesitter",
"rev": "7aa24acae3a288e442e06928171f360bbdf75ba4", "rev": "9866036ec3c5db40700a9178494e0cfdcfe6ecfd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -441,30 +405,13 @@
"type": "github" "type": "github"
} }
}, },
"nvim-treesitter-main": {
"inputs": {
"nixpkgs": "nixpkgs_4",
"nvim-treesitter": "nvim-treesitter"
},
"locked": {
"lastModified": 1759471274,
"narHash": "sha256-jZxiszCE/g7oRLHmR8+aNqzP5w53wnfJ84D+AWhIwUk=",
"path": "/home/e/dev/nvim-treesitter-main",
"type": "path"
},
"original": {
"path": "/home/e/dev/nvim-treesitter-main",
"type": "path"
}
},
"nvim-treesitter-textobjects": { "nvim-treesitter-textobjects": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1756368113, "lastModified": 1751128959,
"narHash": "sha256-+KmOpRi4JAqm6UqYdtk80jwFrJhLCs0lZM/Liofq0R4=",
"owner": "nvim-treesitter", "owner": "nvim-treesitter",
"repo": "nvim-treesitter-textobjects", "repo": "nvim-treesitter-textobjects",
"rev": "1b2d85d3de6114c4bcea89ffb2cd1ce9e3a19931", "rev": "b54cec389e98c5b0babbe618773acec927437cab",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -477,11 +424,11 @@
"root": { "root": {
"inputs": { "inputs": {
"dart": "dart", "dart": "dart",
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils",
"gen-luarc": "gen-luarc", "gen-luarc": "gen-luarc",
"neovim-nightly-overlay": "neovim-nightly-overlay", "neovim-nightly-overlay": "neovim-nightly-overlay",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_2",
"nvim-treesitter-main": "nvim-treesitter-main", "nvim-treesitter": "nvim-treesitter",
"nvim-treesitter-textobjects": "nvim-treesitter-textobjects" "nvim-treesitter-textobjects": "nvim-treesitter-textobjects"
} }
}, },
@ -500,21 +447,6 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": { "treefmt-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -523,11 +455,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1758728421, "lastModified": 1754492133,
"narHash": "sha256-ySNJ008muQAds2JemiyrWYbwbG+V7S5wg3ZVKGHSFu8=", "narHash": "sha256-B+3g9+76KlGe34Yk9za8AF3RL+lnbHXkLiVHLjYVOAc=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "5eda4ee8121f97b218f7cc73f5172098d458f1d1", "rev": "1298185c05a56bff66383a20be0b41a307f52228",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -10,10 +10,12 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
dart = { dart = {
url = "path:/home/e/dev/dart.nvim"; url = "github:iofq/dart.nvim";
flake = false;
}; };
nvim-treesitter-main = { nvim-treesitter = {
url = "path:/home/e/dev/nvim-treesitter-main"; url = "github:nvim-treesitter/nvim-treesitter/main";
flake = false;
}; };
nvim-treesitter-textobjects = { nvim-treesitter-textobjects = {
url = "github:nvim-treesitter/nvim-treesitter-textobjects/main"; url = "github:nvim-treesitter/nvim-treesitter-textobjects/main";
@ -48,7 +50,6 @@
config.allowUnfree = true; config.allowUnfree = true;
overlays = [ overlays = [
inputs.neovim-nightly-overlay.overlays.default inputs.neovim-nightly-overlay.overlays.default
inputs.nvim-treesitter-main.overlays.default
plugin-overlay plugin-overlay
neovim-overlay neovim-overlay
# This adds a function can be used to generate a .luarc.json # This adds a function can be used to generate a .luarc.json
@ -87,6 +88,6 @@
} }
) )
// { // {
overlays.default = final: prev: (plugin-overlay final prev) // (neovim-overlay final prev); overlays.default = neovim-overlay;
}; };
} }

View file

@ -11,8 +11,19 @@ in
{ {
vimPlugins = prev.vimPlugins.extend ( vimPlugins = prev.vimPlugins.extend (
final': prev': { final': prev': {
dart-nvim = inputs.dart.packages.${prev.system}.default; dart-nvim = mkNvimPlugin inputs.dart "dart.nvim";
nvim-treesitter-textobjects = mkNvimPlugin inputs.nvim-treesitter-textobjects "nvim-treesitter-textobjects"; nvim-treesitter-textobjects = mkNvimPlugin inputs.nvim-treesitter-textobjects "nvim-treesitter-textobjects";
nvim-treesitter = prev'.nvim-treesitter.overrideAttrs (old: rec {
src = inputs.nvim-treesitter;
name = "${old.pname}-${src.rev}";
postPatch = "";
# ensure runtime queries get linked to RTP (:TSInstall does this too)
buildPhase = "
mkdir -p $out/queries
cp -a $src/runtime/queries/* $out/queries
";
nvimSkipModules = [ "nvim-treesitter._meta.parsers" ];
});
} }
); );
} }

View file

@ -626,7 +626,7 @@ hi(0, 'SpellLocal', { sp = '#5a93aa', undercurl = true })
hi(0, 'SpellRare', { sp = '#5a93aa', undercurl = true }) hi(0, 'SpellRare', { sp = '#5a93aa', undercurl = true })
hi(0, 'Statement', { fg = '#ad5c7c' }) hi(0, 'Statement', { fg = '#ad5c7c' })
hi(0, 'StatusLine', { bg = 'none' }) hi(0, 'StatusLine', { bg = 'none' })
hi(0, 'StatusLineNC', { bg = 'none', fg = "grey" }) hi(0, 'StatusLineNC', { bg = 'none' })
hi(0, 'String', { fg = '#7aa4a1' }) hi(0, 'String', { fg = '#7aa4a1' })
hi(0, 'Substitute', { bg = '#e85c51', fg = '#152528' }) hi(0, 'Substitute', { bg = '#e85c51', fg = '#152528' })
hi(0, 'SymbolOutlineConnector', { link = 'Conceal' }) hi(0, 'SymbolOutlineConnector', { link = 'Conceal' })

View file

@ -1,10 +1,3 @@
-- create undopath
local undopath = vim.fn.stdpath('data') .. 'undo'
vim.api.nvim_create_autocmd('VimEnter', {
command = 'silent !mkdir -p ' .. undopath,
group = vim.api.nvim_create_augroup('Init', {}),
})
-- open :h in buffers -- open :h in buffers
vim.api.nvim_create_autocmd('BufWinEnter', { vim.api.nvim_create_autocmd('BufWinEnter', {
pattern = '*', pattern = '*',

View file

@ -84,6 +84,7 @@ return {
notify_no_formatters = false, notify_no_formatters = false,
formatters_by_ft = { formatters_by_ft = {
json = { 'jq' }, json = { 'jq' },
puppet = { 'puppet-lint' },
lua = { 'stylua' }, lua = { 'stylua' },
python = { 'ruff' }, python = { 'ruff' },
nix = { 'nixfmt' }, nix = { 'nixfmt' },
@ -110,6 +111,7 @@ return {
require('lint').linters_by_ft = { require('lint').linters_by_ft = {
docker = { 'hadolint' }, docker = { 'hadolint' },
yaml = { 'yamllint' }, yaml = { 'yamllint' },
puppet = { 'puppet-lint' },
sh = { 'shellcheck' }, sh = { 'shellcheck' },
go = { 'golangcilint' }, go = { 'golangcilint' },
ruby = { 'rubocop' }, ruby = { 'rubocop' },
@ -122,7 +124,7 @@ return {
group = vim.api.nvim_create_augroup('lint', { clear = true }), group = vim.api.nvim_create_augroup('lint', { clear = true }),
callback = function() callback = function()
if vim.bo.modifiable then if vim.bo.modifiable then
require('lint').try_lint(nil, { ignore_errors = true }) require('lint').try_lint()
end end
end, end,
}) })

View file

@ -32,7 +32,6 @@ return {
}, },
config = function() config = function()
require('mini.basics').setup { mappings = { windows = true } } require('mini.basics').setup { mappings = { windows = true } }
require('mini.icons').setup()
vim.schedule(function() vim.schedule(function()
local ai = require('mini.ai') local ai = require('mini.ai')
local extra_ai = require('mini.extra').gen_ai_spec local extra_ai = require('mini.extra').gen_ai_spec
@ -41,7 +40,7 @@ return {
custom_textobjects = { custom_textobjects = {
i = extra_ai.indent(), i = extra_ai.indent(),
g = extra_ai.buffer(), g = extra_ai.buffer(),
l = extra_ai.line(), e = extra_ai.line(),
u = ai.gen_spec.function_call(), u = ai.gen_spec.function_call(),
a = ai.gen_spec.treesitter { a = '@parameter.outer', i = '@parameter.inner' }, a = ai.gen_spec.treesitter { a = '@parameter.outer', i = '@parameter.inner' },
k = ai.gen_spec.treesitter { a = '@assignment.lhs', i = '@assignment.lhs' }, k = ai.gen_spec.treesitter { a = '@assignment.lhs', i = '@assignment.lhs' },
@ -55,6 +54,7 @@ return {
} }
require('mini.align').setup() require('mini.align').setup()
require('mini.bracketed').setup { file = { suffix = 'm' } } require('mini.bracketed').setup { file = { suffix = 'm' } }
require('mini.icons').setup()
require('mini.git').setup() require('mini.git').setup()
require('mini.surround').setup() require('mini.surround').setup()
require('mini.splitjoin').setup { detect = { separator = '[,;\n]' } } require('mini.splitjoin').setup { detect = { separator = '[,;\n]' } }

View file

@ -3,10 +3,7 @@ return {
'iofq/dart.nvim', 'iofq/dart.nvim',
lazy = false, lazy = false,
priority = 1001, priority = 1001,
dependencies = 'echasnovski/mini.nvim', config = true,
opts = {
label_marked_fg = 'cyan'
},
}, },
{ {
'windwp/nvim-autopairs', 'windwp/nvim-autopairs',

View file

@ -186,13 +186,6 @@ return {
end, end,
desc = 'pick notifications', desc = 'pick notifications',
}, },
{
'<leader>gd',
function()
Snacks.git.blame_line()
end,
desc = 'Snacks git blame',
},
}, },
}, },
} }