feat: move neovim config files (#1857)

* feat: move neovim config files

* fix: bootstrap
This commit is contained in:
Myriad-Dreamin 2025-06-30 10:49:42 +08:00 committed by GitHub
parent d0a478929e
commit a0d5d7bee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 11 additions and 28 deletions

View file

@ -15,7 +15,7 @@ else
fi
(cd ../.. && docker build -t myriaddreamin/tinymist:0.13.14 .)
docker build -t myriaddreamin/tinymist-nvim:0.13.14 .
(cd samples && docker build -t myriaddreamin/tinymist-nvim:0.13.14 -f lazyvim-dev/Dockerfile .)
docker run --rm -it \
-v $PWD/../../tests/workspaces:/home/runner/dev/workspaces \
-v $PWD:/home/runner/dev \

View file

@ -1,17 +0,0 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
vim.api.nvim_create_autocmd(
{
"BufNewFile",
"BufRead",
},
{
pattern = "*.typ",
callback = function()
local buf = vim.api.nvim_get_current_buf()
vim.api.nvim_buf_set_option(buf, "filetype", "typst")
end
}
)

View file

@ -38,11 +38,11 @@ ENV XDG_DATA_HOME=/home/runner/.local/share
ENV XDG_STATE_HOME=/home/runner/.local/state
ENV XDG_CACHE_HOME=/home/runner/.cache
COPY init.lua $XDG_CONFIG_HOME/nvim/init.lua
COPY plugins/dev.lua $XDG_CONFIG_HOME/nvim/lua/plugins/dev.lua
COPY plugins/lsp-folding.lua $XDG_CONFIG_HOME/nvim/lua/plugins/lsp-folding.lua
COPY plugins/mason-workaround.lua $XDG_CONFIG_HOME/nvim/lua/plugins/mason-workaround.lua
COPY plugins/tinymist.lua $XDG_CONFIG_HOME/nvim/lua/others/tinymist.lua
COPY lazyvim-dev/init.lua $XDG_CONFIG_HOME/nvim/init.lua
COPY lazyvim-dev/plugins/dev.lua $XDG_CONFIG_HOME/nvim/lua/plugins/dev.lua
COPY lazyvim-dev/plugins/mason-workaround.lua $XDG_CONFIG_HOME/nvim/lua/plugins/mason-workaround.lua
COPY lazyvim/plugins/lsp-folding.lua $XDG_CONFIG_HOME/nvim/lua/plugins/lsp-folding.lua
COPY lazyvim/plugins/tinymist.lua $XDG_CONFIG_HOME/nvim/lua/others/tinymist.lua
# SHELL isn't supported by OCI images
ENTRYPOINT []

View file

@ -0,0 +1,3 @@
This is a minimal settings that bootstraps neovim editor for *development*.

View file

@ -52,9 +52,6 @@ if vim.env.SSH_TTY ~= nil then
}
end
-- important for running LSP servers
-- vim.lsp.enable('tinymist')
vim.api.nvim_set_keymap("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", { noremap = true, silent = true })
require("lazy").setup({

View file

@ -5,8 +5,8 @@
flake-parts.url = "github:hercules-ci/flake-parts";
tinymist-unstable.url = "path:contrib/nix/unstable";
tinymist-dev.url = "path:././././././././contrib/nix/dev";
tinymist-nixvim.url = "path:editors/nixvim";
tinymist-dev.url = "path:contrib/nix/dev";
tinymist-nixvim.url = "path:editors/neovim/samples/nixvim";
};
outputs = inputs@{