Skip to content

Commit e2bdfd4

Browse files
authored
Reupload of all files with new additions
Expanding on the base settings, redone colours, feline and indent blank line and some extra settings Signed-off-by: Ren B <127970608+Ren-B-7@users.noreply.github.com>
1 parent 1045ecf commit e2bdfd4

File tree

10 files changed

+282
-190
lines changed

10 files changed

+282
-190
lines changed

nvim/lua/Installation-package/health.lua

Lines changed: 36 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,81 +4,64 @@
44
local dependencies = {}
55

66
-- Ripgrep cmd and name
7-
local ripgrep = { cmd = 'rg', name = 'ripgrep',
8-
install_method = string.format('sudo apt install %s', 'ripgrep')}
9-
table.insert(dependencies, ripgrep)
7+
table.insert(dependencies, { cmd = "rg", name = "ripgrep", install_method = string.format("sudo apt install %s", "ripgrep") })
108
-- Curl cmd
11-
local curl = {cmd = 'curl', name = 'curl',
12-
install_method = string.format('sudo apt install %s', 'curl')}
13-
table.insert(dependencies, curl)
9+
table.insert(dependencies, { cmd = "curl", name = "curl", install_method = string.format("sudo apt install %s", "curl") })
1410
-- lua
15-
local lua = {cmd = 'lua', name = 'lua',
16-
install_method = string.format('sudo apt install %s', 'lua')}
17-
table.insert(dependencies, lua)
11+
table.insert(dependencies, { cmd = "lua", name = "lua", install_method = string.format("sudo apt install %s", "lua") })
1812
-- luarocks
19-
local luarocks = {cmd = 'luarocks', name = 'luarocks',
20-
install_method = string.format('sudo apt install %s', 'luarocks')}
21-
table.insert(dependencies, luarocks)
13+
table.insert(dependencies, { cmd = "luarocks", name = "luarocks", install_method = string.format("sudo apt install %s", "luarocks") })
2214
-- git
23-
local git = {cmd = 'git', name = 'git',
24-
install_method = string.format('sudo apt install %s', 'git')}
25-
table.insert(dependencies, git)
15+
table.insert(dependencies, { cmd = "git", name = "git", install_method = string.format("sudo apt install %s", "git") })
2616
-- python
27-
local python = {cmd = 'python', name = 'python',
28-
install_method = string.format('sudo apt install %s3.12', 'python')}
29-
table.insert(dependencies, python)
17+
table.insert(dependencies, { cmd = "python", name = "python", install_method = string.format("sudo apt install %s3.12", "python") })
3018
-- pip
31-
local pip = {cmd = 'pip', name = 'pip',
32-
install_method = string.format('sudo apt install python3-%s', 'pip')}
33-
table.insert(dependencies, pip)
19+
table.insert(dependencies, { cmd = "pip", name = "pip", install_method = string.format("sudo apt install python3-%s", "pip") })
3420
-- npm
35-
local npm = {cmd = 'npm', name = 'npm',
36-
install_method = string.format('sudo apt install %s', 'npm')}
37-
table.insert(dependencies, npm)
21+
table.insert(dependencies, { cmd = "npm", name = "npm", install_method = string.format("sudo apt install %s", "npm") })
3822
-- fdfind
39-
local fdfind = {cmd = 'fdfind', name = 'fd-find',
40-
install_method = string.format('sudo apt install %s', 'fd-find')}
41-
table.insert(dependencies, fdfind)
23+
table.insert(dependencies, { cmd = "fdfind", name = "fd-find", install_method = string.format("sudo apt install %s", "fd-find") })
4224

4325
local attempt_cmd = function(opts)
44-
if vim.fn.executable(opts.cmd) == 1 then
45-
vim.health.ok(("Installed: %s"):format(opts.name))
46-
else
47-
vim.health.warn(("Missing: %s"):format(opts.name))
48-
vim.health.info(opts.install_method)
49-
end
26+
if vim.fn.executable(opts.cmd) == 1 then
27+
vim.health.ok(("Installed: %s"):format(opts.name))
28+
else
29+
vim.health.warn(("Missing: %s"):format(opts.name))
30+
vim.health.info(opts.install_method)
31+
end
5032
end
5133

5234
local checkversion = function()
53-
local versionstring = tostring(vim.version())
35+
local versionstring = tostring(vim.version())
5436

55-
if not vim.version.ge then
56-
vim.health.error("Nvim out of date")
57-
end
37+
if not vim.version.ge then
38+
vim.health.error("Nvim out of date")
39+
end
5840

59-
if vim.version.lt(vim.version(), "0.10-dev") then
60-
vim.health.error(string.format("Nvim out of date, current: %s, minimum: 0.10-dev", versionstring))
61-
end
41+
if vim.version.lt(vim.version(), "0.10-dev") then
42+
vim.health.error(string.format("Nvim out of date, current: %s, minimum: 0.10-dev", versionstring))
43+
end
6244
end
6345

6446
local checkrequire = function()
65-
for _, deps in ipairs(dependencies) do
66-
attempt_cmd(deps)
67-
end
47+
for _, deps in ipairs(dependencies) do
48+
attempt_cmd(deps)
49+
end
6850
end
6951

7052
return {
71-
check = function ()
72-
-- vim.health.warn(vim.bo.fileformat:upper())
73-
-- vim.health.warn(vim.uv.os_environ().DESKTOP_SESSION)
74-
vim.health.start ("Nvim installation package")
53+
check = function()
54+
-- vim.health.warn(vim.bo.fileformat:upper())
55+
-- vim.health.warn(vim.uv.os_environ().DESKTOP_SESSION)
56+
vim.health.start("Nvim installation package")
7557

76-
vim.health.info("[Not all warns is a must fix from checkhealth]" .. '\n' ..
77-
"plugins will complain if packages are missing")
58+
vim.health.info(
59+
"[Not all warns is a must fix from checkhealth]" .. "\n" .. "plugins will complain if packages are missing"
60+
)
7861

79-
vim.health.info(string.format("System info: ".. vim.inspect(vim.uv.os_environ().DESKTOP_SESSION)))
62+
vim.health.info(string.format("System info: " .. vim.inspect(vim.uv.os_environ().DESKTOP_SESSION)))
8063

81-
checkversion()
82-
checkrequire()
83-
end,
64+
checkversion()
65+
checkrequire()
66+
end,
8467
}

nvim/lua/keymaps.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ set("n", "<leader>tt", function()
5757
require("utils.functions").toggle_list_and_col()
5858
end, { desc = "Toggles space and tab view, with line length" })
5959

60-
set("n", "<C-L>", function()
60+
set("n", "<C-F>", function()
6161
require("utils.functions").toggle_format_on_save()
6262
end, { desc = "Toggle format on save" })

nvim/lua/opts.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ local opt = vim.opt
44
g.loaded_netrw = 1
55
g.loaded_netrwPlugin = 1
66
g.mapleader = " "
7+
g.autoformat = 1
78

89
opt.number = true
910
opt.relativenumber = true
@@ -15,7 +16,7 @@ opt.shiftwidth = 4
1516
opt.textwidth = 80
1617
opt.expandtab = true
1718

18-
opt.listchars = {eol = "¬",tab = ">>",trail = "·",space = ""}
19+
opt.listchars = { eol = "¬", tab = ">>", trail = "·", space = "" }
1920

2021
vim.smartindent = true
2122

@@ -27,7 +28,7 @@ opt.wrap = false
2728

2829
opt.hlsearch = false
2930
opt.incsearch = true
30-
opt.inccommand = 'split'
31+
opt.inccommand = "split"
3132

3233
opt.swapfile = false
3334
opt.backup = false

nvim/lua/plugins/catppuccin.lua

Lines changed: 49 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,57 @@
1+
local opts = {
2+
flavour = "macchiato",
3+
background = {
4+
light = "latte",
5+
dark = "macchiato",
6+
},
7+
term_colors = true,
8+
dim_inactive = {
9+
enabled = true,
10+
shade = "dark",
11+
percentage = 0.1,
12+
},
13+
styles = {
14+
comments = { "italic" },
15+
functions = { "bold" },
16+
conditionals = { "underline" },
17+
},
18+
default_integrations = true,
19+
integrations = {
20+
cmp = true,
21+
gitsigns = true,
22+
harpoon = true,
23+
indent_blankline = {
24+
enabled = true,
25+
colored_indent_levels = true,
26+
},
27+
lsp_trouble = true,
28+
mason = true,
29+
markdown = false,
30+
mini = true,
31+
native_lsp = {
32+
enabled = true,
33+
underlines = {
34+
errors = { "undercurl" },
35+
hints = { "undercurl" },
36+
warnings = { "undercurl" },
37+
information = { "undercurl" },
38+
},
39+
},
40+
nvimtree = true,
41+
nvim_surround = true,
42+
telescope = true,
43+
treesitter = true,
44+
treesitter_context = true,
45+
which_key = true,
46+
},
47+
}
148
return {
249
"catppuccin/nvim",
350
lazy = false,
451
priority = 1000,
552
name = "catppuccin",
653
config = function()
7-
require("catppuccin").setup({})
8-
vim.cmd.colorscheme("catppuccin-mocha")
54+
require("catppuccin").setup(opts)
55+
vim.cmd.colorscheme("catppuccin")
956
end,
10-
opts = {
11-
integrations = {
12-
aerial = true,
13-
alpha = true,
14-
cmp = true,
15-
dashboard = true,
16-
flash = true,
17-
grug_far = true,
18-
gitsigns = true,
19-
headlines = false,
20-
illuminate = false,
21-
indent_blankline = { enabled = true },
22-
leap = false,
23-
lsp_trouble = true,
24-
mason = true,
25-
markdown = false,
26-
mini = true,
27-
native_lsp = {
28-
enabled = true,
29-
underlines = {
30-
errors = { "undercurl" },
31-
hints = { "undercurl" },
32-
warnings = { "undercurl" },
33-
information = { "undercurl" },
34-
},
35-
},
36-
navic = { enabled = true, custom_bg = "feline" },
37-
neotest = false,
38-
nvimtree = true,
39-
noice = false,
40-
notify = false,
41-
semantic_tokens = true,
42-
telescope = true,
43-
treesitter = true,
44-
treesitter_context = true,
45-
which_key = true,
46-
},
47-
},
4857
}

0 commit comments

Comments
 (0)