chore: initial commit
This commit is contained in:
commit
ed8c3dde6c
6 changed files with 56 additions and 0 deletions
21
LICENSE
Normal file
21
LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2020 tamago324
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
7
Makefile
Normal file
7
Makefile
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
.PHONY: lint
|
||||||
|
|
||||||
|
lint:
|
||||||
|
luacheck lua
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
stylua --config-path stylua.toml --glob 'lua/**/*.lua' -- lua
|
||||||
9
README.md
Normal file
9
README.md
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Open in github for neovim written in lua (WIP)
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
## Commands
|
||||||
|
|
||||||
|
## Contributions
|
||||||
|
|
||||||
|
|
||||||
1
lua/init.lua
Normal file
1
lua/init.lua
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
print("HELLOO FROM LUAS")
|
||||||
15
plugin/openingh.lua
Normal file
15
plugin/openingh.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
if vim.g.openingh then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
vim.g.openingh = true
|
||||||
|
|
||||||
|
require("openingh").setup(true)
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("OpenInGHFile", function()
|
||||||
|
require("openingh").openFile()
|
||||||
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("OpenInGHRepo", function()
|
||||||
|
require("openingh"):openRepo()
|
||||||
|
end, {})
|
||||||
|
|
||||||
3
stylua.toml
Normal file
3
stylua.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
quote_style = "AutoPreferDouble"
|
||||||
Loading…
Add table
Reference in a new issue