style: formatted lua source
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 26s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 26s
Details
This commit is contained in:
parent
252bfae0b0
commit
c69a88e20f
1
init.lua
1
init.lua
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Initialize Neovim configuration
|
-- Initialize Neovim configuration
|
||||||
-- ..............................................
|
-- ..............................................
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Icons
|
-- Icons
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Global custom plugin agnostic keymaps
|
-- Global custom plugin agnostic keymaps
|
||||||
-- ..............................................
|
-- ..............................................
|
||||||
|
@ -88,7 +87,6 @@ local keymaps = {
|
||||||
local file_type = vim.api.nvim_buf_get_option(buf, 'filetype')
|
local file_type = vim.api.nvim_buf_get_option(buf, 'filetype')
|
||||||
|
|
||||||
if buf_type == '' then
|
if buf_type == '' then
|
||||||
|
|
||||||
-- check if buffer is in ignore
|
-- check if buffer is in ignore
|
||||||
in_ignore = false
|
in_ignore = false
|
||||||
for _, v in ipairs(ignore) do
|
for _, v in ipairs(ignore) do
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Bootstrap and start Lazy.nvim plugins
|
-- Bootstrap and start Lazy.nvim plugins
|
||||||
-- manager.
|
-- manager.
|
||||||
|
@ -17,17 +16,17 @@
|
||||||
-- Bootstrap lazy.nvim
|
-- Bootstrap lazy.nvim
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
if vim.v.shell_error ~= 0 then
|
if vim.v.shell_error ~= 0 then
|
||||||
vim.api.nvim_echo({
|
vim.api.nvim_echo({
|
||||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
{ out, "WarningMsg" },
|
{ out, "WarningMsg" },
|
||||||
{ "\nPress any key to exit..." },
|
{ "\nPress any key to exit..." },
|
||||||
}, true, {})
|
}, true, {})
|
||||||
vim.fn.getchar()
|
vim.fn.getchar()
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
@ -50,16 +49,16 @@ require("config.opts")
|
||||||
|
|
||||||
-- Setup lazy.nvim
|
-- Setup lazy.nvim
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
-- import your plugins
|
-- import your plugins
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
},
|
},
|
||||||
-- Configure any other settings here. See the documentation for more details.
|
-- Configure any other settings here. See the documentation for more details.
|
||||||
-- colorscheme that will be used when installing plugins.
|
-- colorscheme that will be used when installing plugins.
|
||||||
install = { colorscheme = { "habamax" } },
|
install = { colorscheme = { "habamax" } },
|
||||||
-- automatically check for plugin updates
|
-- automatically check for plugin updates
|
||||||
checker = { enabled = false },
|
checker = { enabled = false },
|
||||||
rtp = {
|
rtp = {
|
||||||
disabled_plugins = {
|
disabled_plugins = {
|
||||||
"gzip",
|
"gzip",
|
||||||
"matchit",
|
"matchit",
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Neovim and VIM global configuration
|
-- Neovim and VIM global configuration
|
||||||
-- and options
|
-- and options
|
||||||
|
@ -26,11 +25,11 @@ opt.mouse = "a"
|
||||||
opt.shiftwidth = 4
|
opt.shiftwidth = 4
|
||||||
opt.tabstop = 4
|
opt.tabstop = 4
|
||||||
opt.showmode = false
|
opt.showmode = false
|
||||||
opt.termguicolors = true -- True color support
|
opt.termguicolors = true -- True color support
|
||||||
opt.virtualedit = "block" -- Allow cursor to move where there is no text in visual block mode
|
opt.virtualedit = "block" -- Allow cursor to move where there is no text in visual block mode
|
||||||
opt.wrap = false
|
opt.wrap = false
|
||||||
opt.smoothscroll = true
|
opt.smoothscroll = true
|
||||||
opt.swapfile = false -- disable swapfiles because they are fucking garbage
|
opt.swapfile = false -- disable swapfiles because they are fucking garbage
|
||||||
opt.smartindent = true
|
opt.smartindent = true
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -41,4 +40,3 @@ opt.smartindent = true
|
||||||
vim.g.loaded_netrw = 1
|
vim.g.loaded_netrw = 1
|
||||||
vim.g.loaded_netrwPlugin = 1
|
vim.g.loaded_netrwPlugin = 1
|
||||||
vim.g.inlay_hints_visible = true
|
vim.g.inlay_hints_visible = true
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- User interface configuration
|
-- User interface configuration
|
||||||
--
|
--
|
||||||
|
|
|
@ -2,8 +2,8 @@ return {
|
||||||
{
|
{
|
||||||
'romgrk/barbar.nvim',
|
'romgrk/barbar.nvim',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status
|
'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status
|
||||||
'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons
|
'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.barbar_auto_setup = false
|
vim.g.barbar_auto_setup = false
|
||||||
|
@ -12,9 +12,9 @@ return {
|
||||||
auto_hide = 1,
|
auto_hide = 1,
|
||||||
tabpages = true,
|
tabpages = true,
|
||||||
clickable = true,
|
clickable = true,
|
||||||
-- Set the filetypes which barbar will offset itself for
|
-- Set the filetypes which barbar will offset itself for
|
||||||
sidebar_filetypes = {
|
sidebar_filetypes = {
|
||||||
['neo-tree'] = {event = 'BufWipeout'}
|
['neo-tree'] = { event = 'BufWipeout' }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
version = '^1.0.0'
|
version = '^1.0.0'
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Global custom plugin agnostic keymaps
|
-- Global custom plugin agnostic keymaps
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Improve the default vim.ui interfaces
|
-- Improve the default vim.ui interfaces
|
||||||
--
|
--
|
||||||
|
@ -14,16 +13,16 @@
|
||||||
ui = require 'config.ui'
|
ui = require 'config.ui'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'stevearc/dressing.nvim',
|
'stevearc/dressing.nvim',
|
||||||
opts = {
|
opts = {
|
||||||
input = {
|
input = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
border = ui.border,
|
border = ui.border,
|
||||||
trim_prompt = true,
|
trim_prompt = true,
|
||||||
win_options = {
|
win_options = {
|
||||||
winhighlight = ui.winhighlight
|
winhighlight = ui.winhighlight
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
select = {
|
select = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Super fast git decorations implemented purely in Lua
|
-- Super fast git decorations implemented purely in Lua
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Identation markers
|
-- Identation markers
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Mini plugin library
|
-- Mini plugin library
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Pretty file tree with various sources
|
-- Pretty file tree with various sources
|
||||||
--
|
--
|
||||||
|
@ -29,24 +28,24 @@ return {
|
||||||
winbar = true,
|
winbar = true,
|
||||||
statusline = false,
|
statusline = false,
|
||||||
sources = {
|
sources = {
|
||||||
{
|
{
|
||||||
source = "filesystem",
|
source = "filesystem",
|
||||||
display_name = " Files "
|
display_name = " Files "
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source = "buffers",
|
source = "buffers",
|
||||||
display_name = " Buffers "
|
display_name = " Buffers "
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source = "document_symbols",
|
source = "document_symbols",
|
||||||
display_name = " Git "
|
display_name = " Git "
|
||||||
},
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
filesystem = {
|
||||||
filesystem = {
|
|
||||||
bind_to_cwd = false,
|
bind_to_cwd = false,
|
||||||
follow_current_file = { enabled = true },
|
follow_current_file = { enabled = true },
|
||||||
use_libuv_file_watcher = true,
|
use_libuv_file_watcher = true,
|
||||||
hijack_netrw_behavior = "open_default",
|
hijack_netrw_behavior = "open_default",
|
||||||
filtered_items = {
|
filtered_items = {
|
||||||
hide_dotfiles = false,
|
hide_dotfiles = false,
|
||||||
|
@ -58,7 +57,7 @@ return {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
close_if_last_window = false,
|
close_if_last_window = false,
|
||||||
default_component_configs = {
|
default_component_configs = {
|
||||||
container = {
|
container = {
|
||||||
enable_character_fade = true
|
enable_character_fade = true
|
||||||
},
|
},
|
||||||
|
@ -68,11 +67,11 @@ return {
|
||||||
with_markers = true,
|
with_markers = true,
|
||||||
indent_marker = "│",
|
indent_marker = "│",
|
||||||
last_indent_marker = "└",
|
last_indent_marker = "└",
|
||||||
with_expanders = true, -- if nil and file nesting is enabled, will enable expanders
|
with_expanders = true, -- if nil and file nesting is enabled, will enable expanders
|
||||||
expander_collapsed = "",
|
expander_collapsed = "",
|
||||||
expander_expanded = "",
|
expander_expanded = "",
|
||||||
expander_highlight = "NeoTreeExpander",
|
expander_highlight = "NeoTreeExpander",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Start config for builtin Neovim language server protocol client
|
-- Start config for builtin Neovim language server protocol client
|
||||||
--
|
--
|
||||||
|
@ -64,7 +63,6 @@ return {
|
||||||
function(server_name) -- default handler (optional)
|
function(server_name) -- default handler (optional)
|
||||||
require("lspconfig")[server_name].setup({
|
require("lspconfig")[server_name].setup({
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
|
|
||||||
-- optionally enable inlay hints
|
-- optionally enable inlay hints
|
||||||
-- Source: https://www.reddit.com/r/neovim/comments/14em0f8/how_to_use_the_new_lsp_inlay_hints/
|
-- Source: https://www.reddit.com/r/neovim/comments/14em0f8/how_to_use_the_new_lsp_inlay_hints/
|
||||||
-- ..............................................
|
-- ..............................................
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Prettier user interface for VIM notifications.
|
-- Prettier user interface for VIM notifications.
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Tree sitter syntax highlightning
|
-- Tree sitter syntax highlightning
|
||||||
--
|
--
|
||||||
|
@ -15,7 +14,7 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
version = false, -- last release is way too old and doesn't work on Windows
|
version = false, -- last release is way too old and doesn't work on Windows
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
lazy = vim.fn.argc(-1) == 0, -- load treesitter early when opening a file from the cmdline
|
lazy = vim.fn.argc(-1) == 0, -- load treesitter early when opening a file from the cmdline
|
||||||
init = function(plugin)
|
init = function(plugin)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Super fast git decorations implemented purely in Lua
|
-- Super fast git decorations implemented purely in Lua
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dim all non active scopes using tree sitter
|
-- Dim all non active scopes using tree sitter
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Mark all occurances of the word under the current cursor
|
-- Mark all occurances of the word under the current cursor
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue