docs: added license to all source files

This commit is contained in:
Hubert Pelczarski 2021-02-13 01:03:57 +01:00
parent 937a56d5ef
commit 55c0f0fe9a
43 changed files with 124 additions and 116 deletions

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local utils = require('lualine.utils')
local highlight = require('lualine.highlight')

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local git_branch
-- os specific path separator

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function encoding()
local data = [[%{strlen(&fenc)?&fenc:&enc}]]
return data

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function fileformat()
local data = [[%{&ff}]]
return data

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function filename()
local data = [[%t %m]]
return data

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function filetype()
local data = vim.bo.filetype
if #data > 0 then

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function location()
local data = [[%3l:%-2c]]
return data

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function mode()
local mode_map = {
['n'] = 'NORMAL',

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function progress()
local data = [[%3P]]
return data

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function signify()
if vim.fn.exists('*sy#repo#get_stats') == 0 then return '' end
local added, modified, removed = unpack(vim.fn['sy#repo#get_stats']())

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function fzf_statusline()
vim.cmd([[hi clear fzf1]])
vim.cmd([[hi link fzf1 lualine_a_normal]])

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local M = { }
local utils = require "lualine.utils"

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/16color.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit itchyny, jackno (lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color2 = "#0f1419",
@ -40,4 +39,4 @@ local ayu_dark = {
},
}
return ayu_dark
return ayu_dark

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color2 = "#f3f3f3",

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color2 = "#242b38",

View File

@ -1,3 +1,7 @@
-- Copyright (c) 2020-2021 Shatur95
-- MIT license, see LICENSE for more details.
local codedark = {}
local colors = {

View File

@ -1,3 +1,7 @@
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit itchyny, jackno (lightline)
local dracula = {}
local colors = {

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 gnuyent
-- MIT license, see LICENSE for more details.
local forest_night = {}
local colors = {

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local gruvbox = {}
local colors = {

View File

@ -1,8 +1,5 @@
-- =============================================================================
-- Filename: lua/lualine/themes/gruvbox_material.lua
-- Author: shadman
-- License: MIT License
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
local colors = {
fg1 = "#282828",

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color2 = "#161821",
@ -42,4 +41,4 @@ local iceberg = {
},
}
return iceberg
return iceberg

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color5 = "#668e3d",
@ -40,4 +39,4 @@ local iceberg = {
},
}
return iceberg
return iceberg

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color2 = "#30302c",
@ -41,4 +40,4 @@ local jellybeans = {
},
}
return jellybeans
return jellybeans

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lightline/themes/material.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: Lokesh Krishna(lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/molokai.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: challsted(lightline)
-- License: MIT License
-- =============================================================================
local molokai = {}

View File

@ -1,8 +1,5 @@
-- =============================================================================
-- lightline to lualine theme converter
-- Author: shadman
-- License: MIT License
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
local colors = {
color3 = "#2c3043",

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
local nord = {}
local colors = {

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color0 = "#ffffff",
@ -43,4 +42,4 @@ local oceanicnext = {
},
}
return oceanicnext
return oceanicnext

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/onedark.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: Zoltan Dalmadi(lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color0 = "#282c34",
@ -43,4 +42,4 @@ local onehalfdark = {
},
}
return onehalfdark
return onehalfdark

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/onelight.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: Zoltan Dalmadi(lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/papercolor.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: itchyny(lightline)
-- License: MIT License
-- =============================================================================
local background = vim.o.background

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lightline/themes/PaperColor_dark.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: TKNGUE(lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/PaperColor_light.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: TKNGUE(lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
local powerline = { }
local Colors = {

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color5 = "#d7afaf",
@ -41,4 +40,4 @@ local seoul256 = {
},
}
return seoul256
return seoul256

View File

@ -1,9 +1,7 @@
-- =============================================================================
-- Filename: lua/lualine/themes/solarized.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: itchyny(lightline)
-- License: MIT License
-- =============================================================================
local background = vim.o.background

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/solarized_dark.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: itchyny(lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/solarized_light.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: itchyny(lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,8 +1,7 @@
-- =============================================================================
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
local colors = {
color14 = "#718c00",

View File

@ -1,9 +1,6 @@
-- =============================================================================
-- Filename: lua/lualine/themes/wombat.lua
-- Author: shadman
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: itchyny(lightline)
-- License: MIT License
-- =============================================================================
local M = {}

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local M = { }
function M.draw_section(section, separator)