mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-07 13:05:02 +00:00
feat: move neovim config files (#1857)
* feat: move neovim config files * fix: bootstrap
This commit is contained in:
parent
d0a478929e
commit
a0d5d7bee7
17 changed files with 11 additions and 28 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
}
|
||||
)
|
|
@ -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 []
|
3
editors/neovim/samples/lazyvim-dev/README.md
Normal file
3
editors/neovim/samples/lazyvim-dev/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
This is a minimal settings that bootstraps neovim editor for *development*.
|
||||
|
|
@ -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({
|
|
@ -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@{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue