Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CONTRIBUTING.md → .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ appreciation, which we would also be very happy about:
## Code of Conduct

This project and everyone participating in it is governed by the
[nvim-config Code of Conduct](https://github.com/CelticBoozer/nvim-config/blob/master/CODE_OF_CONDUCT.md).
[nvim-config Code of Conduct](https://github.com/CelticBoozer/nvim-config/blob/master/.github/CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code. Please report
unacceptable behavior to <celtic.boozer@proton.me>.

Expand Down Expand Up @@ -159,6 +159,12 @@ and [Discussions](https://github.com/CelticBoozer/nvim-config/discussions).

1. Type (feat:): Indicates the type of change. Common types include:

- revert: If the commit reverts a previous commit. In the body it should say:
`This reverts commit <hash>`.
- build: Changes that affect the build system or external dependencies (example
scopes: gulp, broccoli, npm)
- ci: Changes to our CI configuration files and scripts (example scopes: Circle,
GitHub Actions)
- feat: A new feature
- fix: A bug fix
- docs: Documentation changes
Expand Down
File renamed without changes.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@

## Deps

npm, Java, luarocks, python3, deno
npm -
Java last version
luarocks - lazy
git - lazy,
Nerd fonts - lazy, whichkey
python3
deno
rg - lspsaga,
42 changes: 1 addition & 41 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
-- lazy.nvim package manager installation
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)

--Core
require("core.options")
require("plugin.lazy")

local opts = {
defaults = {
lazy = false,
version = "*",
cond = nil,
},
dev = {
path = "~/Development/Projects",
},
install = {
missing = true,
colorscheme = { "gruvbox-materal" },
},
ui = {
border = "rounded",
},
}

local plugins = {
{ import = "plugin.editor" },
{ import = "plugin.lsp" },
{ import = "plugin.ui" },
{ import = "plugin.util" },
}

require("lazy").setup(plugins, opts)
require("telescope").load_extension("media_files")
84 changes: 45 additions & 39 deletions lazy-lock.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,56 @@
{
"Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
"bufferline.nvim": { "branch": "main", "commit": "2e3c8cc5a57ddd32f1edd2ffd2ccb10c09421f6c" },
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"conform.nvim": { "branch": "master", "commit": "acc7337cfd24ddfa3109bfc8c258c09c88c5c450" },
"dashboard-nvim": { "branch": "master", "commit": "fabf5feec96185817c732d47d363f34034212685" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"conform.nvim": { "branch": "master", "commit": "db8a4a9edb217067b1d7a2e0362c74bfe9cc944d" },
"dashboard-nvim": { "branch": "master", "commit": "000448d837f6e7a47f8f342f29526c4d7e49e9ce" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
"fine-cmdline.nvim": { "branch": "main", "commit": "aec9efebf6f4606a5204d49ffa3ce2eeb7e08a3e" },
"gruvbox-material": { "branch": "master", "commit": "30e9f4b0fa24c25980df1690a8c47c36e40b6673" },
"image.nvim": { "branch": "master", "commit": "da64ce69598875c9af028afe129f916b02ccc42e" },
"indent-blankline.nvim": { "branch": "master", "commit": "65e20ab94a26d0e14acac5049b8641336819dfc7" },
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
"lsp-progress.nvim": { "branch": "main", "commit": "d5f4d28efe75ce636bfbe271eb45f39689765aab" },
"lspkind.nvim": { "branch": "master", "commit": "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" },
"lualine.nvim": { "branch": "master", "commit": "544dd1583f9bb27b393f598475c89809c4d5e86b" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "9ae570e206360e47d30b4c35a4550c165f4ea7b7" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
"mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
"neo-tree.nvim": { "branch": "main", "commit": "8c75e8a2949cd6cd35525799200a8d34471ee9eb" },
"neoscroll.nvim": { "branch": "master", "commit": "a731f66f1d39ec6175fd201c5bf849e54abda99c" },
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
"nvim-autopairs": { "branch": "master", "commit": "e38c5d837e755ce186ae51d2c48e1b387c4425c6" },
"nvim-bqf": { "branch": "main", "commit": "654c904d5ad9dc4846445056086168e25bd8ba2d" },
"nvim-cmp": { "branch": "main", "commit": "983453e32cb35533a119725883c04436d16c0120" },
"gruvbox-material": { "branch": "master", "commit": "146f40fd42cbef30fed69b4ef51329aeeaceb909" },
"image.nvim": { "branch": "master", "commit": "6ffafab2e98b5bda46bf227055aa84b90add8cdc" },
"inc-rename.nvim": { "branch": "main", "commit": "f9b9e5b9a75074810f40881b7e254b5bbeaf122e" },
"indent-blankline.nvim": { "branch": "master", "commit": "e10626f7fcd51ccd56d7ffc00883ba7e0aa28f78" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lsp-progress.nvim": { "branch": "main", "commit": "f3df1df8f5ea33d082db047b5d2d2b83cc01cd8a" },
"lsp_signature.nvim": { "branch": "master", "commit": "02629e5bc38f6cb1a49bb43ff4a441f23335a933" },
"lspkind.nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" },
"lspsaga.nvim": { "branch": "main", "commit": "6063935cf68de9aa6dd79f8e1caf5df0a9385de3" },
"lualine.nvim": { "branch": "master", "commit": "f4f791f67e70d378a754d02da068231d2352e5bc" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "5639d58a3d11ff7c05c8e31e159bfedae55d7961" },
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
"mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" },
"neo-tree.nvim": { "branch": "main", "commit": "40dd57777a96d0728f6758874b141f409466e2da" },
"nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" },
"nvim-autopairs": { "branch": "master", "commit": "68f0e5c3dab23261a945272032ee6700af86227a" },
"nvim-cmp": { "branch": "main", "commit": "c27370703e798666486e3064b64d59eaf4bdc6d5" },
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
"nvim-lint": { "branch": "master", "commit": "efc6fc83f0772283e064c53a8f9fb5645bde0bc0" },
"nvim-lspconfig": { "branch": "master", "commit": "0b8165cf95806bc4bb8f745bb0c92021b2ed4b98" },
"nvim-treesitter": { "branch": "master", "commit": "f197a15b0d1e8d555263af20add51450e5aaa1f0" },
"nvim-ts-autotag": { "branch": "main", "commit": "dc5e1687ab76ee02e0f11c5ce137f530b36e98b3" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "6b5f95aa4d24f2c629a74f2c935c702b08dbde62" },
"nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" },
"nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" },
"nvim-jdtls": { "branch": "master", "commit": "2f7bff9b8d2ee1918b36ca55f19547d9d335a268" },
"nvim-lint": { "branch": "master", "commit": "6e9dd545a1af204c4022a8fcd99727ea41ffdcc8" },
"nvim-lspconfig": { "branch": "master", "commit": "fd26f8626c03b424f7140d454031d1dcb8d23513" },
"nvim-treesitter": { "branch": "master", "commit": "59573f96164ab3725a2358fe8ffe69e8291d9549" },
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
"nvim-ufo": { "branch": "main", "commit": "a52c92c3bbaa10f0c9b547a50adaa8c7d8b29f94" },
"nvim-web-devicons": { "branch": "master", "commit": "ab4cfee554e501f497bce0856788d43cf2eb93d7" },
"peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" },
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "a727bd368e70808125b7cf589328cc595faf3d5a" },
"statuscol.nvim": { "branch": "main", "commit": "93d8bcda516fc86e11c03f9ef577bae9a72fba0e" },
"promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "c2255b20bb1accb0e83e70f995adf99b78dee13d" },
"reactive.nvim": { "branch": "master", "commit": "e0a22a42811ca1e7aa7531f931c55619aad68b5d" },
"statuscol.nvim": { "branch": "main", "commit": "c399884e8f64019ec9bb581251f9710915b7f996" },
"telescope-docker.nvim": { "branch": "main", "commit": "4219840291d9e3e64f6b8eefa11e8deb14357581" },
"telescope-media-files.nvim": { "branch": "master", "commit": "0826c7a730bc4d36068f7c85cf4c5b3fd9fb570a" },
"telescope-undo.nvim": { "branch": "main", "commit": "51be9ae7c42fc27c0b05505e3a0162e0f05fbb6a" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"todo-comments.nvim": { "branch": "main", "commit": "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" },
"trouble.nvim": { "branch": "main", "commit": "40c5317a6e90fe3393f07b0fee580d9e93a216b4" },
"wf.nvim": { "branch": "main", "commit": "d7de32119e933ddd4c006324475d487c87b8d80b" }
"telescope-undo.nvim": { "branch": "main", "commit": "928d0c2dc9606e01e2cc547196f48d2eaecf58e5" },
"telescope.nvim": { "branch": "master", "commit": "814f102cd1da3dc78c7d2f20f2ef3ed3cdf0e6e4" },
"tiny-devicons-auto-colors.nvim": { "branch": "main", "commit": "51f548421f8a74680eff27d283c9d5ea6e8d0074" },
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
}
6 changes: 6 additions & 0 deletions lua/core/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decr
vim.o.foldlevelstart = 99
vim.o.foldenable = true
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]

vim.diagnostic.config({
severity_sort = true, -- Sort all diagnostics by severity
-- Optional: Reverse sort order (highest first is default)
severity_sort = { reverse = false }
})
10 changes: 10 additions & 0 deletions lua/plugin/editor/reactive.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
return {
"rasulomaroff/reactive.nvim",
opts = {
builtin = {
cursorline = true,
cursor = true,
modemsg = true,
},
},
}
24 changes: 24 additions & 0 deletions lua/plugin/editor/tiny-devicons-auto-colors.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- INFO: updates nvim-web-devicons colors based on colorscheme.
return {
"rachartier/tiny-devicons-auto-colors.nvim",
event = "VeryLazy",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
require("tiny-devicons-auto-colors").setup({
colors = {
"#ea6962",
"#e78a4e",
"#d8a657",
"#a9b665",
"#89b482",
"#7daea3",
"#d3869b",
"#ea6962",
"#a9b665",
"#d8a657",
},
})
end,
}
37 changes: 37 additions & 0 deletions lua/plugin/lazy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
-- INFO: Plugin manager
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
end
vim.opt.rtp:prepend(lazypath)

-- Setup lazy.nvim
require("lazy").setup({
spec = {
{ import = "plugin.editor" },
{ import = "plugin.lsp" },
{ import = "plugin.theme" },
{ import = "plugin.util" },
},
checker = { enabled = true },
dev = { path = "~/Development/Projects" },
install = { colorscheme = { "gruvbox-materal" } },
ui = { border = "rounded" },
})
6 changes: 0 additions & 6 deletions lua/plugin/lsp/bqf.lua

This file was deleted.

24 changes: 24 additions & 0 deletions lua/plugin/lsp/fidget.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- NOTE: UI enhancements for LSP progress notifications
-- Dependencies: None explicitly required, integrates with LSP clients

return {
"j-hui/fidget.nvim",
event = "LspAttach",
opts = {
progress = {
display = {
done_icon = "✔", -- Custom icon for completed tasks
progress_icon = { "⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏" },
},
},
notification = {
window = {
winblend = 10, -- Transparency
border = "rounded", -- Rounded borders for a modern look
},
},
logger = {
level = vim.log.levels.WARN, -- Show warnings and errors only
},
},
}
15 changes: 15 additions & 0 deletions lua/plugin/lsp/inc-rename.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- NOTE: Interactive LSP rename with preview

return {
"smjonas/inc-rename.nvim",
event = "BufReadPre",
dependencies = {
"stevearc/dressing.nvim"
},
keys = {
{ "<leader>rn", ":IncRename ", desc = "Rename symbol" },
},
opts = {
input_buffer_type = "dressing", -- Use dressing.nvim if available
},
}
20 changes: 12 additions & 8 deletions lua/plugin/lsp/lint.lua
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
-- INFO: linter
-- NOTE: Provides linting support for various filetypes

return {
"mfussenegger/nvim-lint",
lazy = false,
event = { "BufReadPre", "BufNewFile" },
keys = {
{
"<leader>ll",
function()
require("lint").try_lint()
end,
desc = "lint file",
desc = "Lint file",
},
},
config = function()
local lint = require("lint")

lint.linters_by_ft = {
opts = {
linters_by_ft = {
python = { "ruff" },
lua = { "luacheck" },
dockerfile = { "hadolint" },
Expand All @@ -29,14 +27,20 @@ return {
java = { "checkstyle" },
sql = { "sqlfluff" },
markdown = { "markdownlint" },
}
},
},
config = function(_, opts)
local lint = require("lint")

lint.linters_by_ft = opts.linters_by_ft

local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })

vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function()
lint.try_lint()
lint.try_lint("cspell") -- Ensure cspell is always run
end,
})
end,
Expand Down
14 changes: 14 additions & 0 deletions lua/plugin/lsp/lsp_signature.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- NOTE: Show function signatures as you type for better LSP experience

return {
"ray-x/lsp_signature.nvim",
event = "VeryLazy",
opts = {
bind = true,
hint_enable = true,
floating_window = true,
handler_opts = {
border = "rounded",
},
},
}
Loading
Loading