mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
update CI
This commit is contained in:
parent
b65b7296e5
commit
f9ae40f53c
5 changed files with 18 additions and 18 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/iofq/nvim:latest
|
tags: ghcr.io/iofq/nvim:latest
|
||||||
-
|
-
|
||||||
name: Extract .tar.gz from container
|
name: Extract full .tar.gz from container
|
||||||
uses: shrink/actions-docker-extract@v1
|
uses: shrink/actions-docker-extract@v1
|
||||||
id: extract
|
id: extract
|
||||||
with:
|
with:
|
||||||
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
path: /app/neovim-x86_64-linux.AppImage
|
path: /app/neovim-x86_64-linux.AppImage
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Extract .tar.gz from container
|
name: Extract minimal .tar.gz from container
|
||||||
uses: shrink/actions-docker-extract@v1
|
uses: shrink/actions-docker-extract@v1
|
||||||
id: extract-minimal
|
id: extract-minimal
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
10
Dockerfile
10
Dockerfile
|
|
@ -4,15 +4,15 @@ WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN nix bundle \
|
RUN nix bundle \
|
||||||
|
-o nvim.AppImage \
|
||||||
--bundler github:ralismark/nix-appimage \
|
--bundler github:ralismark/nix-appimage \
|
||||||
--extra-experimental-features nix-command \
|
--extra-experimental-features nix-command \
|
||||||
--extra-experimental-features flakes .#full && \
|
--extra-experimental-features flakes .#full && \
|
||||||
mv $(realpath nvim-x86_64.AppImage) neovim-x86_64-linux.AppImage && \
|
mv $(realpath nvim.AppImage) neovim-x86_64-linux.AppImage && \
|
||||||
nix-collect-garbage
|
nix bundle \
|
||||||
|
-o nvim-minimal.AppImage \
|
||||||
RUN nix bundle \
|
|
||||||
--bundler github:ralismark/nix-appimage \
|
--bundler github:ralismark/nix-appimage \
|
||||||
--extra-experimental-features nix-command \
|
--extra-experimental-features nix-command \
|
||||||
--extra-experimental-features flakes .#minimal && \
|
--extra-experimental-features flakes .#minimal && \
|
||||||
mv $(realpath nvim-x86_64.AppImage) neovim-x86_64-linux-minimal.AppImage && \
|
mv $(realpath nvim-minimal.AppImage) neovim-x86_64-linux-minimal.AppImage && \
|
||||||
nix-collect-garbage
|
nix-collect-garbage
|
||||||
|
|
|
||||||
|
|
@ -26,5 +26,3 @@ require('gitsigns').setup{
|
||||||
return '<Ignore>'
|
return '<Ignore>'
|
||||||
end, {expr=true}) end
|
end, {expr=true}) end
|
||||||
}
|
}
|
||||||
|
|
||||||
require("neogit").setup()
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
-- Setup language servers.
|
-- Setup language servers.
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
lspconfig.gopls.setup {}
|
lspconfig.gopls.setup {}
|
||||||
lspconfig.phpactor.setup {}
|
|
||||||
|
|
||||||
-- Global mappings.
|
-- Global mappings.
|
||||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||||
|
|
@ -31,7 +30,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
vim.keymap.set({ 'n', 'v' }, '<leader>ca', vim.lsp.buf.code_action, opts)
|
vim.keymap.set({ 'n', 'v' }, '<leader>ca', vim.lsp.buf.code_action, opts)
|
||||||
vim.keymap.set("n", "gd", "<cmd>Telescope lsp_definitions<cr>", { buffer = bufnr })
|
vim.keymap.set("n", "gd", "<cmd>Telescope lsp_definitions<cr>", { buffer = bufnr })
|
||||||
vim.keymap.set("n", "gi", "<cmd>Telescope lsp_implementations<cr>", { buffer = bufnr })
|
vim.keymap.set("n", "gi", "<cmd>Telescope lsp_implementations<cr>", { buffer = bufnr })
|
||||||
vim.keymap.set("n", "gr", "<cmd>Telescope lsp_references<cr>", { buffer = bufnr })
|
vim.keymap.set("n", "gR", "<cmd>Telescope lsp_references<cr>", { buffer = bufnr })
|
||||||
vim.keymap.set("n", "<leader>dt", "<cmd>Telescope lsp_type_definitions<cr>", { buffer = bufnr })
|
vim.keymap.set("n", "<leader>dt", "<cmd>Telescope lsp_type_definitions<cr>", { buffer = bufnr })
|
||||||
vim.keymap.set("n", "<leader>ds", "<cmd>Telescope lsp_document_symbols<cr>", { buffer = bufnr })
|
vim.keymap.set("n", "<leader>ds", "<cmd>Telescope lsp_document_symbols<cr>", { buffer = bufnr })
|
||||||
vim.keymap.set("n", "<leader>dS", "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>", { buffer = bufnr })
|
vim.keymap.set("n", "<leader>dS", "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>", { buffer = bufnr })
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
tree-sitter-c
|
tree-sitter-c
|
||||||
tree-sitter-dockerfile
|
tree-sitter-dockerfile
|
||||||
tree-sitter-go
|
tree-sitter-go
|
||||||
|
tree-sitter-html
|
||||||
tree-sitter-javascript
|
tree-sitter-javascript
|
||||||
tree-sitter-json
|
tree-sitter-json
|
||||||
tree-sitter-lua
|
tree-sitter-lua
|
||||||
|
|
@ -24,6 +25,8 @@
|
||||||
tree-sitter-markdown-inline
|
tree-sitter-markdown-inline
|
||||||
tree-sitter-php
|
tree-sitter-php
|
||||||
tree-sitter-python
|
tree-sitter-python
|
||||||
|
tree-sitter-svelte
|
||||||
|
tree-sitter-typescript
|
||||||
tree-sitter-yaml
|
tree-sitter-yaml
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue