Init tile impl

This commit is contained in:
2026-08-06 22:10:33 +03:00
parent dee1d4cc0f
commit 9a008834dc
6 changed files with 61 additions and 14 deletions
+31 -14
View File
@@ -1,30 +1,47 @@
-- .nvim.lua — project-local settings
-- Created with :LocalInit. Loaded automatically by nvim-config-local (first time — via :ConfigLocalTrust).
-- ── Runners ─────────────────────────────────────────────
-- :Run — picker, :Run <name> [args] — specific command,
-- <leader>dr = :Run run.
require("custom.runner").setup({
commands = {
run = { cmd = "odin run ." }, -- активная команда
-- test = { cmd = "go test ./..." },
-- build = { cmd = "odin build ./src/" },
-- lint = { cmd = "go vet ./..." },
build = { cmd = "odin build . -debug" },
run = function()
local command = require("custom.runner").command
command:add("odin run .")
command.target = { position = "bottom" }
command:run()
end,
debug = function()
local command = require("custom.runner").command
command:add("odin build . -debug -out:build/debug")
command:add("gdbf ./build/debug")
command:run()
command.target = { position = "bottom" }
end,
},
focus = false, -- фокус на нижний терминал при запуске
-- ── Опции редактора для проекта (применяются к буферам) ──
-- Editor options (indent, tabstop, expandtab) come from .editorconfig —
-- nvim applies them natively. `options` is only for what .editorconfig
-- cannot express:
-- options = {
-- tabstop = 4,
-- shiftwidth = 4,
-- expandtab = false,
-- textwidth = 100,
-- },
-- ── Исключения для snacks-файндеров (поверх базовых .git, .gitignore и т.п.) ──
-- ── Excludes for snacks pickers (on top of base .git, .gitignore, etc.) ──
exclude = {
"build",
"Tiled",
"assets",
}, -- например: { "_build", "vendor" }
".gdbf",
".gdbinit",
}, -- e.g.: { "_build", "vendor" }
})
-- ── Проектная автокоманда (пример) ──
-- ── Project autocmd (example) ──
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- pattern = "*.odin",
-- callback = function()
-- vim.notify("Файл сохраняется в проекте", vim.log.levels.INFO)
-- vim.notify("File saved in project", vim.log.levels.INFO)
-- end,
-- })