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