Skip to content

Commit

Permalink
solve tab format problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony15246 committed Aug 8, 2024
1 parent 0d92a6e commit 6159a8a
Show file tree
Hide file tree
Showing 15 changed files with 399 additions and 478 deletions.
6 changes: 2 additions & 4 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"diagnostics.globals": [
"vim"
]
}
"diagnostics.globals": ["vim"]
}
135 changes: 27 additions & 108 deletions lazy-lock.json
Original file line number Diff line number Diff line change
@@ -1,110 +1,29 @@
{
"LuaSnip": {
"branch": "master",
"commit": "b84eeb3641b08324287587b426ec974b888390d9"
},
"alpha-nvim": {
"branch": "main",
"commit": "41283fb402713fc8b327e60907f74e46166f4cfd"
},
"catppuccin": {
"branch": "main",
"commit": "05206bbb6d500a339cd55a9486532c3871a4455e"
},
"cmp-nvim-lsp": {
"branch": "main",
"commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d"
},
"cmp_luasnip": {
"branch": "master",
"commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843"
},
"friendly-snippets": {
"branch": "main",
"commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4"
},
"lazy.nvim": {
"branch": "main",
"commit": "077102c5bfc578693f12377846d427f49bc50076"
},
"lualine.nvim": {
"branch": "master",
"commit": "544dd1583f9bb27b393f598475c89809c4d5e86b"
},
"mason-lspconfig.nvim": {
"branch": "main",
"commit": "62360f061d45177dda8afc1b0fd1327328540301"
},
"mason.nvim": {
"branch": "main",
"commit": "e2f7f9044ec30067bc11800a9e266664b88cda22"
},
"neo-tree.nvim": {
"branch": "v3.x",
"commit": "29f7c215332ba95e470811c380ddbce2cebe2af4"
},
"noice.nvim": {
"branch": "main",
"commit": "448bb9c524a7601035449210838e374a30153172"
},
"none-ls-extras.nvim": {
"branch": "main",
"commit": "059bb6561b8f5ff99a7acc9262b557ebbe5c34ec"
},
"none-ls.nvim": {
"branch": "main",
"commit": "cfa65d86e21eeb60544d5e823f6db43941322a53"
},
"nui.nvim": {
"branch": "main",
"commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1"
},
"nvim-cmp": {
"branch": "main",
"commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30"
},
"nvim-dap": {
"branch": "master",
"commit": "dcc85d12d6e2c18c5fa0f9a304d9f5e767e1401a"
},
"nvim-dap-python": {
"branch": "master",
"commit": "d777c2b32ed39f61209c09bede28d7491621a631"
},
"nvim-dap-ui": {
"branch": "master",
"commit": "a5606bc5958db86f8d92803bea7400ee26a8d7e4"
},
"nvim-lspconfig": {
"branch": "master",
"commit": "652386deae739e38fa1bcf2f06e3e7de9b3436ba"
},
"nvim-nio": {
"branch": "master",
"commit": "a428f309119086dc78dd4b19306d2d67be884eee"
},
"nvim-notify": {
"branch": "master",
"commit": "d333b6f167900f6d9d42a59005d82919830626bf"
},
"nvim-treesitter": {
"branch": "master",
"commit": "2e01c7104c0983467ee1b9f569e0874b8d2b44c6"
},
"nvim-web-devicons": {
"branch": "master",
"commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520"
},
"plenary.nvim": {
"branch": "master",
"commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683"
},
"telescope-ui-select.nvim": {
"branch": "master",
"commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2"
},
"telescope.nvim": {
"branch": "master",
"commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026"
}
"LuaSnip": { "branch": "master", "commit": "b84eeb3641b08324287587b426ec974b888390d9" },
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
"catppuccin": { "branch": "main", "commit": "05206bbb6d500a339cd55a9486532c3871a4455e" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"friendly-snippets": { "branch": "main", "commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4" },
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
"lualine.nvim": { "branch": "master", "commit": "544dd1583f9bb27b393f598475c89809c4d5e86b" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "62360f061d45177dda8afc1b0fd1327328540301" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "29f7c215332ba95e470811c380ddbce2cebe2af4" },
"noice.nvim": { "branch": "main", "commit": "448bb9c524a7601035449210838e374a30153172" },
"none-ls-extras.nvim": { "branch": "main", "commit": "059bb6561b8f5ff99a7acc9262b557ebbe5c34ec" },
"none-ls.nvim": { "branch": "main", "commit": "cfa65d86e21eeb60544d5e823f6db43941322a53" },
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
"nvim-dap": { "branch": "master", "commit": "dcc85d12d6e2c18c5fa0f9a304d9f5e767e1401a" },
"nvim-dap-python": { "branch": "master", "commit": "d777c2b32ed39f61209c09bede28d7491621a631" },
"nvim-dap-ui": { "branch": "master", "commit": "a5606bc5958db86f8d92803bea7400ee26a8d7e4" },
"nvim-lspconfig": { "branch": "master", "commit": "652386deae739e38fa1bcf2f06e3e7de9b3436ba" },
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
"nvim-treesitter": { "branch": "master", "commit": "a8535b2329a082c7f4e0b11b91b1792770425eaa" },
"nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" },
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }
}
40 changes: 20 additions & 20 deletions lua/config/lazy.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,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)

Expand All @@ -23,13 +23,13 @@ vim.g.maplocalleader = "\\"

-- 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 = true },
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 = true },
})
52 changes: 26 additions & 26 deletions lua/plugins/alpha.lua
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
return {
"goolord/alpha-nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
"goolord/alpha-nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
},

config = function()
local alpha = require("alpha")
local dashboard = require("alpha.themes.startify")
config = function()
local alpha = require("alpha")
local dashboard = require("alpha.themes.startify")

dashboard.section.header.val = {
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[  ]],
[[ ████ ██████ █████ ██ ]],
[[ ███████████ █████  ]],
[[ █████████ ███████████████████ ███ ███████████ ]],
[[ █████████ ███ █████████████ █████ ██████████████ ]],
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
[[ ]],
[[ ]],
[[ ]],
}
dashboard.section.header.val = {
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[  ]],
[[ ████ ██████ █████ ██ ]],
[[ ███████████ █████  ]],
[[ █████████ ███████████████████ ███ ███████████ ]],
[[ █████████ ███ █████████████ █████ ██████████████ ]],
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
[[ ]],
[[ ]],
[[ ]],
}

alpha.setup(dashboard.opts)
end,
alpha.setup(dashboard.opts)
end,
}
18 changes: 9 additions & 9 deletions lua/plugins/catpuccin.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
return {
{
"catppuccin/nvim",
lazy = false,
name = "catppuccin",
priority = 1000,
config = function()
vim.cmd.colorscheme("catppuccin")
end,
},
{
"catppuccin/nvim",
lazy = false,
name = "catppuccin",
priority = 1000,
config = function()
vim.cmd.colorscheme("catppuccin")
end,
},
}
82 changes: 41 additions & 41 deletions lua/plugins/completions.lua
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
return {
{
"hrsh7th/cmp-nvim-lsp",
},
{
"L3MON4D3/LuaSnip",
dependencies = {
"saadparwaiz1/cmp_luasnip",
"rafamadriz/friendly-snippets",
},
},
{
"hrsh7th/nvim-cmp",
config = function()
local cmp = require("cmp")
require("luasnip.loaders.from_vscode").lazy_load()
{
"hrsh7th/cmp-nvim-lsp",
},
{
"L3MON4D3/LuaSnip",
dependencies = {
"saadparwaiz1/cmp_luasnip",
"rafamadriz/friendly-snippets",
},
},
{
"hrsh7th/nvim-cmp",
config = function()
local cmp = require("cmp")
require("luasnip.loaders.from_vscode").lazy_load()

cmp.setup({
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "luasnip" }, -- For luasnip users.
}, {
{ name = "buffer" },
}),
})
end,
},
cmp.setup({
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "luasnip" }, -- For luasnip users.
}, {
{ name = "buffer" },
}),
})
end,
},
}
Loading

0 comments on commit 6159a8a

Please sign in to comment.