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 utils = require('lualine.utils')
local highlight = require('lualine.highlight') 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 local git_branch
-- os specific path separator -- 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 function encoding()
local data = [[%{strlen(&fenc)?&fenc:&enc}]] local data = [[%{strlen(&fenc)?&fenc:&enc}]]
return data return data

View File

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

View File

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

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function filetype() local function filetype()
local data = vim.bo.filetype local data = vim.bo.filetype
if #data > 0 then 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 function location()
local data = [[%3l:%-2c]] local data = [[%3l:%-2c]]
return data return data

View File

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

View File

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

View File

@ -1,3 +1,6 @@
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function signify() local function signify()
if vim.fn.exists('*sy#repo#get_stats') == 0 then return '' end if vim.fn.exists('*sy#repo#get_stats') == 0 then return '' end
local added, modified, removed = unpack(vim.fn['sy#repo#get_stats']()) 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() local function fzf_statusline()
vim.cmd([[hi clear fzf1]]) vim.cmd([[hi clear fzf1]])
vim.cmd([[hi link fzf1 lualine_a_normal]]) 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 M = { }
local utils = require "lualine.utils" local utils = require "lualine.utils"

View File

@ -1,9 +1,6 @@
-- ============================================================================= -- Copyright (c) 2020-2021 shadmansaleh
-- Filename: lua/lualine/themes/16color.lua -- MIT license, see LICENSE for more details.
-- Author: shadman
-- Credit itchyny, jackno (lightline) -- Credit itchyny, jackno (lightline)
-- License: MIT License
-- =============================================================================
local M = {} 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 -- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
color2 = "#0f1419", 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 -- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
color2 = "#f3f3f3", 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 -- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
color2 = "#242b38", color2 = "#242b38",

View File

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

View File

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

View File

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

View File

@ -1,8 +1,5 @@
-- ============================================================================= -- Copyright (c) 2020-2021 shadmansaleh
-- Filename: lua/lualine/themes/gruvbox_material.lua -- MIT license, see LICENSE for more details.
-- Author: shadman
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
fg1 = "#282828", 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 -- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
color2 = "#161821", 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 -- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
color5 = "#668e3d", 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 -- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
color2 = "#30302c", color2 = "#30302c",
@ -41,4 +40,4 @@ local jellybeans = {
}, },
} }
return jellybeans return jellybeans

View File

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

View File

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

View File

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

View File

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

View File

@ -1,9 +1,6 @@
-- ============================================================================= -- Copyright (c) 2020-2021 shadmansaleh
-- Filename: lua/lualine/themes/onedark.lua -- MIT license, see LICENSE for more details.
-- Author: shadman
-- Credit: Zoltan Dalmadi(lightline) -- Credit: Zoltan Dalmadi(lightline)
-- License: MIT License
-- =============================================================================
local M = {} 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 -- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
color0 = "#282c34", color0 = "#282c34",
@ -43,4 +42,4 @@ local onehalfdark = {
}, },
} }
return onehalfdark return onehalfdark

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,9 +1,6 @@
-- ============================================================================= -- Copyright (c) 2020-2021 shadmansaleh
-- Filename: lua/lualine/themes/solarized_light.lua -- MIT license, see LICENSE for more details.
-- Author: shadman
-- Credit: itchyny(lightline) -- Credit: itchyny(lightline)
-- License: MIT License
-- =============================================================================
local M = {} 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 -- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- License: MIT License
-- =============================================================================
local colors = { local colors = {
color14 = "#718c00", color14 = "#718c00",

View File

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

View File

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