Compare commits

...

4 Commits

Author SHA1 Message Date
Sven Vogel e0235a25d1 Merge pull request 'feature/add-workflow' (#7) from feature/add-workflow into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 21s Details
Reviewed-on: #7
2024-05-17 08:50:20 +00:00
Sven Vogel 62eb5491f3 fixed luachecks
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 22s Details
2024-05-17 10:44:36 +02:00
Sven Vogel d396f51ff3 added -y option to apt
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 25s Details
2024-05-17 10:38:43 +02:00
Sven Vogel a9b366459b added workflow and luacheckrc
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s Details
2024-05-17 10:33:26 +02:00
5 changed files with 28 additions and 7 deletions

View File

@ -0,0 +1,20 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is performing luacheck
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "This job is now running on a ${{ runner.os }}"
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
- name: Install dependencies
run: apt update -y && apt install neovim python3 lua5.4 -y
- run: echo "The workflow is now ready to test your code on the runner."
- name: Luacheck linter
uses: lunarmodules/luacheck@v1
- run: echo "This job's status is ${{ job.status }}."

4
.luacheckrc Normal file
View File

@ -0,0 +1,4 @@
color = true
globals = {
"vim"
}

View File

@ -21,7 +21,8 @@ require("lazy").setup({
},
defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
-- If you know what you're doing, you can set this to `true`
-- to have all your custom plugins lazy-loaded by default.
lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.

View File

@ -33,11 +33,11 @@ return {
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
["<CR>"] = cmp.mapping.confirm({ select = true }),
["<S-CR>"] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}),
["<C-CR>"] = function(fallback)
cmp.abort()
fallback()

View File

@ -15,9 +15,6 @@ return {
spacing = 4,
source = "if_many",
prefix = "",
-- this will set set the prefix to a function that returns the diagnostics icon based on the severity
-- this only works on a recent 0.10.0 build. Will be set to "●" when not supported
-- prefix = "icons",
},
severity_sort = true,
float = {
@ -152,7 +149,6 @@ return {
for server, server_opts in pairs(servers) do
if server_opts then
server_opts = server_opts == true and {} or server_opts
-- run manual setup if mason=false or if this is a server that cannot be installed with mason-lspconfig
if server_opts.mason == false or not vim.tbl_contains(all_mslp_servers, server) then
setup(server)
else