Init tile impl
This commit is contained in:
@@ -1 +1,4 @@
|
|||||||
src.bin
|
src.bin
|
||||||
|
.gdbf/
|
||||||
|
.gdbinit
|
||||||
|
build/
|
||||||
|
|||||||
@@ -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({
|
require("custom.runner").setup({
|
||||||
commands = {
|
commands = {
|
||||||
run = { cmd = "odin run ." }, -- активная команда
|
run = function()
|
||||||
-- test = { cmd = "go test ./..." },
|
local command = require("custom.runner").command
|
||||||
-- build = { cmd = "odin build ./src/" },
|
command:add("odin run .")
|
||||||
-- lint = { cmd = "go vet ./..." },
|
command.target = { position = "bottom" }
|
||||||
build = { cmd = "odin build . -debug" },
|
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 = {
|
-- options = {
|
||||||
-- tabstop = 4,
|
-- textwidth = 100,
|
||||||
-- shiftwidth = 4,
|
|
||||||
-- expandtab = false,
|
|
||||||
-- },
|
-- },
|
||||||
|
|
||||||
-- ── Исключения для snacks-файндеров (поверх базовых .git, .gitignore и т.п.) ──
|
-- ── Excludes for snacks pickers (on top of base .git, .gitignore, etc.) ──
|
||||||
exclude = {
|
exclude = {
|
||||||
|
"build",
|
||||||
|
"Tiled",
|
||||||
"assets",
|
"assets",
|
||||||
}, -- например: { "_build", "vendor" }
|
".gdbf",
|
||||||
|
".gdbinit",
|
||||||
|
}, -- e.g.: { "_build", "vendor" }
|
||||||
})
|
})
|
||||||
|
|
||||||
-- ── Проектная автокоманда (пример) ──
|
-- ── Project autocmd (example) ──
|
||||||
-- vim.api.nvim_create_autocmd("BufWritePre", {
|
-- vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
-- pattern = "*.odin",
|
-- pattern = "*.odin",
|
||||||
-- callback = function()
|
-- callback = function()
|
||||||
-- vim.notify("Файл сохраняется в проекте", vim.log.levels.INFO)
|
-- vim.notify("File saved in project", vim.log.levels.INFO)
|
||||||
-- end,
|
-- end,
|
||||||
-- })
|
-- })
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"automappingRulesFile": "",
|
||||||
|
"commands": [
|
||||||
|
],
|
||||||
|
"compatibilityVersion": 1100,
|
||||||
|
"extensionsPath": "extensions",
|
||||||
|
"folders": [
|
||||||
|
"."
|
||||||
|
],
|
||||||
|
"properties": [
|
||||||
|
],
|
||||||
|
"propertyTypes": [
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"activeFile": "",
|
||||||
|
"expandedProjectPaths": [
|
||||||
|
],
|
||||||
|
"fileStates": {
|
||||||
|
},
|
||||||
|
"openFiles": [
|
||||||
|
],
|
||||||
|
"project": "hello.tiled-project",
|
||||||
|
"recentFiles": [
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user