ensure plugins are exported in overlay

This commit is contained in:
iofq 2025-08-15 00:59:00 -05:00
parent 7165161856
commit ac26b74e43
5 changed files with 12 additions and 7 deletions

4
flake.lock generated
View file

@ -3,10 +3,10 @@
"dart": { "dart": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1754291267, "lastModified": 1755657012,
"owner": "iofq", "owner": "iofq",
"repo": "dart.nvim", "repo": "dart.nvim",
"rev": "617587d40fd2f2727c18758c4e6decac78459529", "rev": "c38b1e0d6daa47f8b9c58422e5a7ab57221810fd",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -88,6 +88,6 @@
} }
) )
// { // {
overlays.default = neovim-overlay; overlays.default = final: prev: (plugin-overlay final prev) // (neovim-overlay final prev);
}; };
} }

View file

@ -1,3 +1,10 @@
-- 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,7 +84,6 @@ 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' },
@ -111,7 +110,6 @@ 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' },
@ -124,7 +122,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() require('lint').try_lint(nil, { ignore_errors = true })
end end
end, end,
}) })

View file

@ -40,7 +40,7 @@ return {
custom_textobjects = { custom_textobjects = {
i = extra_ai.indent(), i = extra_ai.indent(),
g = extra_ai.buffer(), g = extra_ai.buffer(),
e = extra_ai.line(), l = 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' },