Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
chore: format source code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 26, 2021
1 parent c1fa8ca commit 5950634
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 118 deletions.
76 changes: 38 additions & 38 deletions bin/starplug.example.lua
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
local star = {
ui = {
"dashboard", -- Start screen
"statusline", -- Statusline
"tabline", -- Tabline, shows your buffers list at top
"which-key", -- Keybindings popup menu like Emacs' guide-key
-- 'zen', -- Distraction free environment
-- 'indentlines', -- Show indent lines
},
star = {
-- 'orgmode', -- Life Organization Tool
-- 'runner', -- Code runner for your language
},
colors = {
"stardark", -- The shiny theme
-- "gruvbox", -- The almighty
-- "icy", -- Shiver to death!
-- "neon", -- Welcome to the light
},
editor = {
"lsp", -- Language Server Protocols
"lint", -- A beauty teacher for your language
"completion", -- The ultimate completion
"nvim-tree", -- Tree explorer
"symbols", -- LSP symbols and tags
"gitsigns", -- Git signs
"telescope", -- Highly extendable fuzzy finder over lists
"formatter", -- File formatting
"autopairs", -- Autopairs
"commentary", -- Commentary plugin
-- "terminal", -- Terminal for Neovim (NOTE: needed for runner and compiler)
-- 'minimap', -- Code minimap, requires github.com/wfxr/code-minimap
},
utilities = {
"colorizer", -- Fastets colorizer for Neovim
-- 'lazygit', -- LazyGit integration for Neovim, requires LazyGit
-- 'suda', -- Write and read files without sudo permissions
-- 'range-highlight', -- hightlights ranges you have entered in commandline
},
ui = {
"dashboard", -- Start screen
"statusline", -- Statusline
"tabline", -- Tabline, shows your buffers list at top
"which-key", -- Keybindings popup menu like Emacs' guide-key
-- 'zen', -- Distraction free environment
-- 'indentlines', -- Show indent lines
},
star = {
-- 'orgmode', -- Life Organization Tool
-- 'runner', -- Code runner for your language
},
colors = {
"stardark", -- The shiny theme
-- "gruvbox", -- The almighty
-- "icy", -- Shiver to death!
-- "neon", -- Welcome to the light
},
editor = {
"lsp", -- Language Server Protocols
"lint", -- A beauty teacher for your language
"completion", -- The ultimate completion
"nvim-tree", -- Tree explorer
"symbols", -- LSP symbols and tags
"gitsigns", -- Git signs
"telescope", -- Highly extendable fuzzy finder over lists
"formatter", -- File formatting
"autopairs", -- Autopairs
"commentary", -- Commentary plugin
-- "terminal", -- Terminal for Neovim (NOTE: needed for runner and compiler)
-- 'minimap', -- Code minimap, requires github.com/wfxr/code-minimap
},
utilities = {
"colorizer", -- Fastets colorizer for Neovim
-- 'lazygit', -- LazyGit integration for Neovim, requires LazyGit
-- 'suda', -- Write and read files without sudo permissions
-- 'range-highlight', -- hightlights ranges you have entered in commandline
},
}

return star
84 changes: 42 additions & 42 deletions bin/sv-config.example.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,48 @@ Sv.format_on_save = true

-- TreeSitter parsers config
Sv.treesitter.ensure_installed = {
"lua",
-- "bash",
-- "json",
-- "python",
-- "c",
-- "c_sharp",
-- "clojure",
-- "comment",
-- "cpp",
-- "commonlisp",
-- "cuda",
-- "dart",
-- "devicetree",
-- "dockerfile",
-- "elixir",
-- "erlang",
-- "go",
-- "fish",
-- "haskell",
-- "java",
-- "jsdoc",
-- "graphql",
-- "julia",
-- "kotlin",
-- "ledger",
-- "latex",
-- "php",
-- "nix",
-- "ocamel",
-- "ql",
-- "regex",
-- "ruby",
-- "rust",
-- "rst",
-- "scss",
-- "sparql",
-- "teal",
-- "toml",
-- "typescript",
-- "vue",
-- "yaml",
-- "zig"
"lua",
-- "bash",
-- "json",
-- "python",
-- "c",
-- "c_sharp",
-- "clojure",
-- "comment",
-- "cpp",
-- "commonlisp",
-- "cuda",
-- "dart",
-- "devicetree",
-- "dockerfile",
-- "elixir",
-- "erlang",
-- "go",
-- "fish",
-- "haskell",
-- "java",
-- "jsdoc",
-- "graphql",
-- "julia",
-- "kotlin",
-- "ledger",
-- "latex",
-- "php",
-- "nix",
-- "ocamel",
-- "ql",
-- "regex",
-- "ruby",
-- "rust",
-- "rst",
-- "scss",
-- "sparql",
-- "teal",
-- "toml",
-- "typescript",
-- "vue",
-- "yaml",
-- "zig"
}
Sv.treesitter.ignore_install = { "haskell" }
Sv.treesitter.highlight.enabled = true
Expand Down
76 changes: 38 additions & 38 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,60 @@ vim.opt.shadafile = "NONE"

-- Disable some unused built-in Neovim plugins
local disabled_built_ins = {
"netrw",
"gzip",
"zip",
"netrwPlugin",
"netrwSettings",
"tar",
"tarPlugin",
"netrwFileHandlers",
"zipPlugin",
"getscript",
"getscriptPlugin",
"vimball",
"vimballPlugin",
"2html_plugin",
"logipat",
"spellfile_plugin",
"matchit",
"netrw",
"gzip",
"zip",
"netrwPlugin",
"netrwSettings",
"tar",
"tarPlugin",
"netrwFileHandlers",
"zipPlugin",
"getscript",
"getscriptPlugin",
"vimball",
"vimballPlugin",
"2html_plugin",
"logipat",
"spellfile_plugin",
"matchit",
}

for _, plugin in pairs(disabled_built_ins) do
vim.g["loaded_" .. plugin] = 1
vim.g["loaded_" .. plugin] = 1
end

-- Disable these for very fast startup time
vim.cmd([[
vim.cmd [[
filetype off
filetype plugin indent off
]])
]]

require("core")
require "core"

local async
async = vim.loop.new_async(vim.schedule_wrap(function()
local status_ok, _ = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/sv-config.lua")
if not status_ok then
print("Error in sv-config")
end
local compiled_plugins_path = vim.fn.expand("$HOME/.config/nvim/plugin/packer_compiled.lua")
if vim.fn.filereadable(compiled_plugins_path) > 0 then
-- If the current buffer name is empty then trigger Dashboard
if vim.api.nvim_buf_get_name(0):len() == 0 then
vim.cmd("Dashboard")
end
end
vim.opt.shadafile = ""
vim.defer_fn(function()
vim.cmd([[
local status_ok, _ = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/sv-config.lua")
if not status_ok then
print "Error in sv-config"
end
local compiled_plugins_path = vim.fn.expand "$HOME/.config/nvim/plugin/packer_compiled.lua"
if vim.fn.filereadable(compiled_plugins_path) > 0 then
-- If the current buffer name is empty then trigger Dashboard
if vim.api.nvim_buf_get_name(0):len() == 0 then
vim.cmd "Dashboard"
end
end
vim.opt.shadafile = ""
vim.defer_fn(function()
vim.cmd [[
rshada!
doautocmd BufRead
filetype on
filetype plugin indent on
silent! bufdo e
]])
end, 15)
async:close()
]]
end, 15)
async:close()
end))
async:send()

0 comments on commit 5950634

Please sign in to comment.