From e3d3ab6680bb023cd0c0d8bc23245a4f363cd9fc Mon Sep 17 00:00:00 2001 From: Dario48true Date: Mon, 3 Feb 2025 10:21:51 +0100 Subject: [PATCH] new config --- README.md | 3 - init.lua | 6 +- lazy-lock.json | 60 ++++++---------- lua/Dario48/colors.lua | 11 --- lua/Dario48/lazy.lua | 14 ---- lua/Dario48/options.lua | 36 ---------- lua/Dario48/plugins/VimBeGood.lua | 4 -- lua/Dario48/plugins/alpha.lua | 51 ------------- lua/Dario48/plugins/bufferline.lua | 14 ---- lua/Dario48/plugins/codeium.lua | 37 ---------- lua/Dario48/plugins/conformer.lua | 35 --------- lua/Dario48/plugins/csvlens.lua | 8 --- lua/Dario48/plugins/feline.lua | 10 --- lua/Dario48/plugins/lazydev.lua | 24 ------- lua/Dario48/plugins/lsp-zero.lua | 108 ---------------------------- lua/Dario48/plugins/luarocks.lua | 5 -- lua/Dario48/plugins/neorg.lua | 22 ------ lua/Dario48/plugins/nightfox.lua | 15 ---- lua/Dario48/plugins/nvim-dap.lua | 48 ------------- lua/Dario48/plugins/nvim-tetris.lua | 3 - lua/Dario48/plugins/nvim-tree.lua | 49 ------------- lua/Dario48/plugins/oxocarbon.lua | 9 --- lua/Dario48/plugins/presence.lua | 23 ------ lua/Dario48/plugins/telescope.lua | 10 --- lua/Dario48/plugins/treesitter.lua | 23 ------ lua/Dario48/plugins/whichkey.lua | 9 --- lua/config/general.lua | 21 ++++++ lua/config/lazy.lua | 28 ++++++++ lua/plugins/lspconfig.lua | 39 ++++++++++ lua/plugins/mason.lua | 25 +++++++ lua/plugins/neorg.lua | 37 ++++++++++ lua/plugins/nightfox.lua | 6 ++ lua/plugins/nvim-cmp.lua | 33 +++++++++ lua/plugins/treesitter.lua | 39 ++++++++++ lua/plugins/vim-jukit.lua | 5 ++ lua/plugins/which-key.lua | 3 + 36 files changed, 262 insertions(+), 611 deletions(-) delete mode 100644 README.md delete mode 100644 lua/Dario48/colors.lua delete mode 100644 lua/Dario48/lazy.lua delete mode 100644 lua/Dario48/options.lua delete mode 100644 lua/Dario48/plugins/VimBeGood.lua delete mode 100644 lua/Dario48/plugins/alpha.lua delete mode 100644 lua/Dario48/plugins/bufferline.lua delete mode 100644 lua/Dario48/plugins/codeium.lua delete mode 100644 lua/Dario48/plugins/conformer.lua delete mode 100644 lua/Dario48/plugins/csvlens.lua delete mode 100644 lua/Dario48/plugins/feline.lua delete mode 100644 lua/Dario48/plugins/lazydev.lua delete mode 100644 lua/Dario48/plugins/lsp-zero.lua delete mode 100644 lua/Dario48/plugins/luarocks.lua delete mode 100644 lua/Dario48/plugins/neorg.lua delete mode 100644 lua/Dario48/plugins/nightfox.lua delete mode 100644 lua/Dario48/plugins/nvim-dap.lua delete mode 100644 lua/Dario48/plugins/nvim-tetris.lua delete mode 100644 lua/Dario48/plugins/nvim-tree.lua delete mode 100644 lua/Dario48/plugins/oxocarbon.lua delete mode 100644 lua/Dario48/plugins/presence.lua delete mode 100644 lua/Dario48/plugins/telescope.lua delete mode 100644 lua/Dario48/plugins/treesitter.lua delete mode 100644 lua/Dario48/plugins/whichkey.lua create mode 100644 lua/config/general.lua create mode 100644 lua/config/lazy.lua create mode 100644 lua/plugins/lspconfig.lua create mode 100644 lua/plugins/mason.lua create mode 100644 lua/plugins/neorg.lua create mode 100644 lua/plugins/nightfox.lua create mode 100644 lua/plugins/nvim-cmp.lua create mode 100644 lua/plugins/treesitter.lua create mode 100644 lua/plugins/vim-jukit.lua create mode 100644 lua/plugins/which-key.lua diff --git a/README.md b/README.md deleted file mode 100644 index d10ecc4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# neovim - -neovim config \ No newline at end of file diff --git a/init.lua b/init.lua index 2cdfcd8..de67cb0 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,3 @@ -require("Dario48.options") -require("Dario48.colors") -require("Dario48.lazy") +require("config.lazy") +require("config.general") + diff --git a/lazy-lock.json b/lazy-lock.json index 3aa7548..74d72e0 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,42 +1,28 @@ { - "LuaSnip": { "branch": "master", "commit": "ce0a05ab4e2839e1c48d072c5236cce846a387bc" }, - "alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" }, - "auto-pairs": { "branch": "master", "commit": "39f06b873a8449af8ff6a3eee716d3da14d63a76" }, - "bufferline.nvim": { "branch": "main", "commit": "99337f63f0a3c3ab9519f3d1da7618ca4f91cffe" }, - "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, - "codeium.vim": { "branch": "main", "commit": "e0342fde9474fdd0a36ff9692fe0031b7611a19f" }, - "conform.nvim": { "branch": "master", "commit": "310e2e95a4f832163f3f7a9fedebb1a4afc0db69" }, - "csvlens.nvim": { "branch": "main", "commit": "987375e2cf6399850f7f801b53b89c981ed652fa" }, - "fd": { "branch": "master", "commit": "cfced9787ee544d99f36e455762defec87c6be16" }, - "feline.nvim": { "branch": "main", "commit": "c97c17dc56ca3cf2b9b9192c3447fc59347e8c0d" }, - "gitsigns.nvim": { "branch": "main", "commit": "f4928ba14eb6c667786ac7d69927f6aee6719f1e" }, - "lazy.nvim": { "branch": "main", "commit": "5473e3d77c13e40fc4758fa977a1f2c14d0b4ceb" }, - "lazydev.nvim": { "branch": "main", "commit": "02f1055a777264d4b65896051ec28d0f322f7932" }, - "lsp-zero.nvim": { "branch": "v3.x", "commit": "87701af045b3032515776abeb47eb8c2ddb5e679" }, + "LuaSnip": { "branch": "master", "commit": "33b06d72d220aa56a7ce80a0dd6f06c70cd82b9d" }, + "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, + "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" }, + "cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, + "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, + "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, + "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, + "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, + "lazy.nvim": { "branch": "main", "commit": "7c493713bc2cb392706866eeba53aaef6c8e9fc6" }, + "lsp-zero.nvim": { "branch": "v1.x", "commit": "aa36afcf7a59fbd98008c9a434593c423d3d649a" }, "lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" }, - "luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" }, - "luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" }, - "mason-conform.nvim": { "branch": "main", "commit": "abce2be529f3b4b336c56d0ba6336a9144e0fee6" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "8e46de9241d3997927af12196bd8faa0ed08c29a" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, - "neorg": { "branch": "main", "commit": "efd7bd9c584c206d7aed2c40b02c73a9e5d04e73" }, - "nightfox.nvim": { "branch": "main", "commit": "df75a6a94910ae47854341d6b5a6fd483192c0eb" }, - "nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" }, - "nvim-cmp": { "branch": "main", "commit": "d818fd0624205b34e14888358037fb6f5dc51234" }, - "nvim-dap": { "branch": "master", "commit": "6f79b822997f2e8a789c6034e147d42bc6706770" }, - "nvim-dap-ui": { "branch": "master", "commit": "a5606bc5958db86f8d92803bea7400ee26a8d7e4" }, - "nvim-lspconfig": { "branch": "master", "commit": "01e08d4bf1c35e5126b2ad5209725e4c552289ab" }, + "neorg": { "branch": "main", "commit": "0460ccd3b97bc100ca1af0270588b4c76d29c4c4" }, + "neorg-extras": { "branch": "main", "commit": "e3693be7378d82351d4600ef4a7bc9bc86578b95" }, + "nightfox.nvim": { "branch": "main", "commit": "7557f26defd093c4e9bc17f28b08403f706f5a44" }, + "nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" }, + "nvim-cmp": { "branch": "main", "commit": "3403e2e9391ed0a28c3afddd8612701b647c8e26" }, + "nvim-lspconfig": { "branch": "master", "commit": "5a812abc65d529ea7673059a348814c21d7f87ff" }, "nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" }, - "nvim-tetris": { "branch": "master", "commit": "d17c99fb527ada98ffb0212ffc87ccda6fd4f7d9" }, - "nvim-tree.lua": { "branch": "master", "commit": "f9ff00bc06d7cb70548a3847d7a2a05e928bc988" }, - "nvim-treesitter": { "branch": "master", "commit": "7a38515741768c0a0712253de4ce64454cb24c1a" }, - "nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" }, - "pathlib.nvim": { "branch": "main", "commit": "7a5a6facd29e306bc73a37719fa67c0d2226f852" }, - "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, - "presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" }, - "telescope.nvim": { "branch": "master", "commit": "bfcc7d5c6f12209139f175e6123a7b7de6d9c18a" }, - "toggleterm.nvim": { "branch": "main", "commit": "cd55bf6aab3f88c259fa29ea86bbdcb1a325687d" }, - "tree-sitter-hyprlang": { "branch": "master", "commit": "6858695eba0e63b9e0fceef081d291eb352abce8" }, - "vim-be-good": { "branch": "master", "commit": "4fa57b7957715c91326fcead58c1fa898b9b3625" }, - "which-key.nvim": { "branch": "main", "commit": "df77add576a1b2b7c6956be0b07d3c753f034b54" } + "nvim-treesitter": { "branch": "master", "commit": "2a496fa4e89034014dd054f04c061ba7d6023a0c" }, + "pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" }, + "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, + "telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" }, + "vim-jukit": { "branch": "master", "commit": "73214c9a8abc4b6aa7a6266b5bc2ddbf8b3e3c00" }, + "which-key.nvim": { "branch": "main", "commit": "9b365a6428a9633e3eeb34dbef1b791511c54f70" } } diff --git a/lua/Dario48/colors.lua b/lua/Dario48/colors.lua deleted file mode 100644 index f5c1b74..0000000 --- a/lua/Dario48/colors.lua +++ /dev/null @@ -1,11 +0,0 @@ -vim.api.nvim_create_namespace("top_of_mlm") -vim.api.nvim_create_namespace("top_middle_of_mlm") -vim.api.nvim_create_namespace("middle_of_mlm") -vim.api.nvim_create_namespace("bottom_middle_of_mlm") -vim.api.nvim_create_namespace("bottom_of_mlm") - -vim.api.nvim_set_hl(0, "top_of_mlm", {fg = "#078d70"}) -vim.api.nvim_set_hl(0, "top_middle_of_mlm", {fg = "#98e8c1"}) -vim.api.nvim_set_hl(0, "middle_of_mlm", {fg = "#ffffff"}) -vim.api.nvim_set_hl(0, "bottom_middle_of_mlm", {fg = "#7bade2"}) -vim.api.nvim_set_hl(0, "bottom_of_mlm", {fg = "#3d1a78"}) diff --git a/lua/Dario48/lazy.lua b/lua/Dario48/lazy.lua deleted file mode 100644 index caf0c69..0000000 --- a/lua/Dario48/lazy.lua +++ /dev/null @@ -1,14 +0,0 @@ -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", -- latest stable release - lazypath, - }) -end -vim.opt.rtp:prepend(lazypath) -require("lazy").setup({ import = "Dario48/plugins" }) -vim.keymap.set("n", "l", ":Lazy ") diff --git a/lua/Dario48/options.lua b/lua/Dario48/options.lua deleted file mode 100644 index 8121703..0000000 --- a/lua/Dario48/options.lua +++ /dev/null @@ -1,36 +0,0 @@ -vim.cmd("nnoremap ") -vim.g.mapleader = " " -vim.g.maplocalleader = "," - -vim.opt.tabstop = 4 -vim.opt.softtabstop = 0 -vim.opt.shiftwidth = 0 -vim.opt.shell = "/bin/bash" -vim.cmd("set wrap smoothscroll") - -vim.keymap.set("n", "+x", ":!chmod +x %", { silent = true }) -vim.keymap.set("n", "+r", ":!chmod +r %", { silent = true }) -vim.keymap.set("n", "+w", ":!chmod +w %", { silent = true }) - -vim.keymap.set("n", "-x", ":!chmod -x %", { silent = true }) -vim.keymap.set("n", "-r", ":!chmod -r %", { silent = true }) -vim.keymap.set("n", "-w", ":!chmod -w %", { silent = true }) - -vim.opt.rnu = true -vim.opt.nu = true - -vim.cmd([[set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,space:•]]) -vim.keymap.set("n", "hc", ":set list!", { silent = true }) - -vim.opt.termguicolors = true - -vim.opt.hlsearch = false -vim.opt.incsearch = true - -vim.opt.scrolloff = 6 - -vim.keymap.set("v", "yo", ":yank +", { silent = true }) -vim.keymap.set("v", "ya", ":yank *", { silent = true }) - -vim.cmd("nnoremap j gj") -vim.cmd("nnoremap k gk") diff --git a/lua/Dario48/plugins/VimBeGood.lua b/lua/Dario48/plugins/VimBeGood.lua deleted file mode 100644 index 3be9b3a..0000000 --- a/lua/Dario48/plugins/VimBeGood.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - 'ThePrimeagen/vim-be-good', - keys ={{"vbg", ":VimBeGood ", desc = "VimBeGood"}} -} diff --git a/lua/Dario48/plugins/alpha.lua b/lua/Dario48/plugins/alpha.lua deleted file mode 100644 index 50afbb3..0000000 --- a/lua/Dario48/plugins/alpha.lua +++ /dev/null @@ -1,51 +0,0 @@ -return { - 'goolord/alpha-nvim', - config = function() - local alpha = require("alpha") - local dashboard = require("alpha.themes.startify") - - -- Set header - dashboard.section.header.val = { - [[ /\\\\\ /\\\ /\\\\\\\\\\\\\\\ /\\\\\ /\\\ /\\\ /\\\\\\\\\\\ /\\\\ /\\\\ ]], - [[ \ \\\\\\ \ \\\ \ \\\/////////// /\\\///\\\ \ \\\ \ \\\ \/////\\\/// \ \\\\\\ /\\\\\\ ]], - [[ \ \\\/\\\ \ \\\ \ \\\ /\\\/ \///\\\ \//\\\ /\\\ \ \\\ \ \\\//\\\ /\\\//\\\ ]], - [[ \ \\\//\\\ \ \\\ \ \\\\\\\\\\\ /\\\ \//\\\ \//\\\ /\\\ \ \\\ \ \\\\///\\\/\\\/ \ \\\ ]], - [[ \ \\\\//\\\\ \\\ \ \\\/////// \ \\\ \ \\\ \//\\\ /\\\ \ \\\ \ \\\ \///\\\/ \ \\\ ]], - [[ \ \\\ \//\\\ \\\ \ \\\ \//\\\ /\\\ \//\\\/\\\ \ \\\ \ \\\ \/// \ \\\ ]], - [[ \ \\\ \//\\\\\\ \ \\\ \///\\\ /\\\ \//\\\\\ \ \\\ \ \\\ \ \\\ ]], - [[ \ \\\ \//\\\\\ \ \\\\\\\\\\\\\\\ \///\\\\\/ \//\\\ /\\\\\\\\\\\ \ \\\ \ \\\ ]], - [[ \/// \///// \/////////////// \///// \/// \/////////// \/// \/// ]], - } - - dashboard.section.header.opts.hl = { - {'top_of_mlm', 1, 118}, - {'top_of_mlm', 121, 238}, - {'top_middle_of_mlm', 241, 358}, - {'top_middle_of_mlm', 361, 478}, - {'middle_of_mlm', 481, 598}, - {'bottom_middle_of_mlm', 601, 718}, - {'bottom_middle_of_mlm', 721, 838}, - {'bottom_of_mlm', 841, 958}, - {'bottom_of_mlm', 961, 1078}, - } - -- Set menu - dashboard.section.buttons= { - type = "group", - val = { - { type = "text", val = "Quick links", opts = { hl = "SpecialComment", position = "center" } }, - { type = "padding", val = 1 }, - dashboard.button("e", " New file", "ene"), - dashboard.button("u", " Update plugins", "Lazy sync"), - dashboard.button("q", "󰩈 Quit", "qa"), - }, - position = "center", - } - -- Send config to alpha - alpha.setup(dashboard.opts) - - -- Disable folding on alpha buffer - vim.cmd([[ - autocmd FileType alpha setlocal nofoldenable - ]]) - end -}; diff --git a/lua/Dario48/plugins/bufferline.lua b/lua/Dario48/plugins/bufferline.lua deleted file mode 100644 index 0df1d37..0000000 --- a/lua/Dario48/plugins/bufferline.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - 'akinsho/bufferline.nvim', - event = {'BufReadPre', 'BufNewFile'}, - version = "*", - dependencies = 'nvim-tree/nvim-web-devicons', - config = function() - require("bufferline").setup() - end, - keys = { - {"bb", "bNext ", desc = "next buffer"}, - {"bd", "bdelete ", desc = "delete buffer"}, - {"bl", "blast ", desc = "last buffer"}, - } -} diff --git a/lua/Dario48/plugins/codeium.lua b/lua/Dario48/plugins/codeium.lua deleted file mode 100644 index 44ce0e3..0000000 --- a/lua/Dario48/plugins/codeium.lua +++ /dev/null @@ -1,37 +0,0 @@ -return { - "Exafunction/codeium.vim", - event = "BufEnter", - config = function() - vim.g.codeium_disable_bindings = 1 - end, - keys = { - { - "", - function() - return vim.fn["codeium#Accept"]() - end, - { expr = true, silent = true }, - }, - { - "", - function() - return vim.fn["codeium#CycleCompletions"](1) - end, - { expr = true, silent = true }, - }, - { - "", - function() - return vim.fn["codeium#CycleCompletions"](-1) - end, - { expr = true, silent = true }, - }, - { - "", - function() - return vim.fn["codeium#Clear"]() - end, - { expr = true, silent = true }, - }, - }, -} diff --git a/lua/Dario48/plugins/conformer.lua b/lua/Dario48/plugins/conformer.lua deleted file mode 100644 index 30e3680..0000000 --- a/lua/Dario48/plugins/conformer.lua +++ /dev/null @@ -1,35 +0,0 @@ -return { - { - "stevearc/conform.nvim", - event = { "BufReadPre", "BufNewFile" }, - cmd = "Conform", - config = true, - opts = { - formatters_by_ft = { - lua = { "stylua" }, - cpp = { "clang-format" }, - fish = { "fish_indent" }, - css = { "prettier" }, - scss = { "prettier" }, - js = { "prettier" }, - json = { "prettier" }, - html = { "prettier" }, - }, - format_on_save = { - -- These options will be passed to conform.format() - timeout_ms = 500, - lsp_format = "fallback", - }, - formatters = { - prettier = { - prepend_args = { "--config=/home/Dario48/.config/.prettierrc" }, - }, - }, - }, - }, - { - "zapling/mason-conform.nvim", - dependencies = { "mason.nvim", "conform.nvim" }, - config = true, - }, -} diff --git a/lua/Dario48/plugins/csvlens.lua b/lua/Dario48/plugins/csvlens.lua deleted file mode 100644 index a05cc6b..0000000 --- a/lua/Dario48/plugins/csvlens.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - "theKnightsOfRohan/csvlens.nvim", - dependencies = { - "akinsho/toggleterm.nvim" - }, - config = true, - opts = { --[[ Place your opts here ]] } -} diff --git a/lua/Dario48/plugins/feline.lua b/lua/Dario48/plugins/feline.lua deleted file mode 100644 index 3bb990f..0000000 --- a/lua/Dario48/plugins/feline.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - 'freddiehaddad/feline.nvim', - dependencies = { - 'nvim-tree/nvim-web-devicons', - 'lewis6991/gitsigns.nvim', - }, - config = function() - require('feline').setup() - end -} diff --git a/lua/Dario48/plugins/lazydev.lua b/lua/Dario48/plugins/lazydev.lua deleted file mode 100644 index 1c95911..0000000 --- a/lua/Dario48/plugins/lazydev.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - { - "folke/lazydev.nvim", - ft = "lua", -- only load on lua files - opts = { - library = { - -- See the configuration section for more details - -- Load luvit types when the `vim.uv` word is found - { path = "luvit-meta/library", words = { "vim%.uv" } }, - }, - }, - }, - { "Bilal2453/luvit-meta", lazy = true }, -- optional `vim.uv` typings - { -- optional completion source for require statements and module annotations - "hrsh7th/nvim-cmp", - opts = function(_, opts) - opts.sources = opts.sources or {} - table.insert(opts.sources, { - name = "lazydev", - group_index = 0, -- set group index to 0 to skip loading LuaLS completions - }) - end, - }, -} diff --git a/lua/Dario48/plugins/lsp-zero.lua b/lua/Dario48/plugins/lsp-zero.lua deleted file mode 100644 index 30f047d..0000000 --- a/lua/Dario48/plugins/lsp-zero.lua +++ /dev/null @@ -1,108 +0,0 @@ -return { - { - "VonHeikemen/lsp-zero.nvim", - branch = "v3.x", - lazy = true, - config = false, - init = function() - -- Disable automatic setup, we are doing it manually - vim.g.lsp_zero_extend_cmp = 0 - vim.g.lsp_zero_extend_lspconfig = 0 - end, - }, - { - "williamboman/mason.nvim", - lazy = false, - config = function() - require("mason").setup() - end, - keys = { - { "m", ":Mason ", desc = "open mason" }, - }, - }, - - -- Autocompletion - { - "hrsh7th/nvim-cmp", - event = "InsertEnter", - dependencies = { - { "L3MON4D3/LuaSnip" }, - }, - config = function() - -- Here is where you configure the autocompletion settings. - local lsp_zero = require("lsp-zero") - lsp_zero.extend_cmp() - - -- And you can configure cmp even more, if you want to. - local cmp = require("cmp") - local cmp_action = lsp_zero.cmp_action() - - cmp.setup({ - sources = { - { name = "nvim_lsp" }, - { name = "nvim_lua" }, - }, - formatting = lsp_zero.cmp_format(), - mapping = cmp.mapping.preset.insert({ - [""] = cmp.mapping.complete(), - [" "] = cmp.mapping.confirm({ select = false }), - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp_action.luasnip_jump_forward(), - [""] = cmp_action.luasnip_jump_backward(), - }), - }) - end, - }, - - -- LSP - { - "neovim/nvim-lspconfig", - cmd = { "LspInfo", "LspInstall", "LspStart" }, - event = { "BufReadPre", "BufNewFile" }, - dependencies = { - { "hrsh7th/cmp-nvim-lsp" }, - { "williamboman/mason-lspconfig.nvim" }, - }, - config = function() - -- This is where all the LSP shenanigans will live - local lsp_zero = require("lsp-zero") - lsp_zero.extend_lspconfig() - - lsp_zero.on_attach(function(client, bufnr) - -- see :help lsp-zero-keybindings - -- to learn the available actions - vim.keymap.set("n", "gd", function() - vim.lsp.buf.definition() - end, { buffer = bufnr, remap = false }) - vim.keymap.set("n", "ca", function() - vim.lsp.buf.code_action() - end, { buffer = bufnr, remap = false }) - lsp_zero.default_keymaps({ buffer = bufnr }) - end) - - require("mason-lspconfig").setup({ - ensure_installed = {}, - handlers = { - lsp_zero.default_setup, - lua_ls = function() - -- (Optional) Configure lua language server for neovim - local lua_opts = lsp_zero.nvim_lua_ls() - require("lspconfig").lua_ls.setup(lua_opts) - require("lspconfig").ltex.setup({}) - end, - }, - }) - end, - keys = { - { - "qf", - function() - vim.lsp.buf.code_action() - end, - silent = true, - desc = "quickfix", - }, - }, - }, -} diff --git a/lua/Dario48/plugins/luarocks.lua b/lua/Dario48/plugins/luarocks.lua deleted file mode 100644 index c8dfe6c..0000000 --- a/lua/Dario48/plugins/luarocks.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "vhyrro/luarocks.nvim", - priority = 1000, -- Very high priority is required, luarocks.nvim should run as the first plugin in your config. - config = true, -} diff --git a/lua/Dario48/plugins/neorg.lua b/lua/Dario48/plugins/neorg.lua deleted file mode 100644 index 62e662c..0000000 --- a/lua/Dario48/plugins/neorg.lua +++ /dev/null @@ -1,22 +0,0 @@ -return { - "nvim-neorg/neorg", - dependencies = { "luarocks.nvim" }, - lazy = true, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default - opts = { - load = { - ["core.defaults"] = {}, - ["core.concealer"] = {}, - ["core.dirman"] = { - config = { - workspaces = { - school = "~/Documents/school", - notes = "~/Documents/notes", - }, - default_workspace = "notes", - }, - } - } - }, - ft = "norg", - cmd = "Neorg" -} diff --git a/lua/Dario48/plugins/nightfox.lua b/lua/Dario48/plugins/nightfox.lua deleted file mode 100644 index bb7f575..0000000 --- a/lua/Dario48/plugins/nightfox.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - "EdenEast/nightfox.nvim", - priority = 1000, - config = function() - local nightfox = require("nightfox") - nightfox.setup({ - transparent = true - }) - nightfox.load() - vim.opt.termguicolors = true - vim.cmd("colorscheme carbonfox") - --vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) - --vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) - end -} diff --git a/lua/Dario48/plugins/nvim-dap.lua b/lua/Dario48/plugins/nvim-dap.lua deleted file mode 100644 index 862965b..0000000 --- a/lua/Dario48/plugins/nvim-dap.lua +++ /dev/null @@ -1,48 +0,0 @@ -return { - { - "mfussenegger/nvim-dap", - keys = { - {"dt", function() require'dap'.toggle_breakpoint() end, {silent = true}, desc = "toggle breakpoint"}, - {"dc", function() require'dap'.continue() end, {silent = true}, desc = "debug continue"}, - {"dso", function() require'dap'.step_over() end, {silent = true}, desc = "debug step over"}, - {"dsi", function() require'dap'.step_into() end, {silent = true}, desc = "debug step into"} - }, - init = function() - local dap = require'dap' - dap.adapters.lldb = { - type = 'executable', - command = '/usr/bin/lldb-vscode', -- adjust as needed, must be absolute path - name = 'lldb' - } - dap.configurations.cpp = { - { - name = 'Launch', - type = 'lldb', - request = 'launch', - program = function() - return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') - end, - cwd = '${workspaceFolder}', - stopOnEntry = false, - args = {function() - return vim.fn.input('Runtime args: ', vim.fn.getcwd()) - end, - }, - }, - } - dap.configurations.c = dap.configurations.cpp - dap.configurations.zig = dap.configurations.cpp - dap.configurations.rust = dap.configurations.cpp - end - }, - { - "rcarriga/nvim-dap-ui", - dependencies = {"mfussenegger/nvim-dap", "nvim-neotest/nvim-nio"}, - config = function() - require("dapui").setup() - end, - keys = { - {"du", "lua require\"dapui\".toggle()", desc = "open dapui"} - }, - } -} diff --git a/lua/Dario48/plugins/nvim-tetris.lua b/lua/Dario48/plugins/nvim-tetris.lua deleted file mode 100644 index 641619e..0000000 --- a/lua/Dario48/plugins/nvim-tetris.lua +++ /dev/null @@ -1,3 +0,0 @@ -return { - "alec-gibson/nvim-tetris" -} diff --git a/lua/Dario48/plugins/nvim-tree.lua b/lua/Dario48/plugins/nvim-tree.lua deleted file mode 100644 index 482fb1e..0000000 --- a/lua/Dario48/plugins/nvim-tree.lua +++ /dev/null @@ -1,49 +0,0 @@ -return { - "nvim-tree/nvim-tree.lua", - dependencies = {'nvim-tree/nvim-web-devicons'}, - lazy = false, - config = function() - -- disable netrw at the very start of your init.lua - vim.g.loaded_netrw = 1 - vim.g.loaded_netrwPlugin = 1 - - -- set termguicolors to enable highlight groups - vim.opt.termguicolors = true - - -- empty setup using defaults - require("nvim-tree").setup{ - renderer = { - -- These icons are visible when you install web-devicons - icons = { - glyphs = { - default = "", - symlink = "", - folder = { - arrow_open = "󱞣", - arrow_closed = "󰁔", - default = "", - open = "", - empty = "", - empty_open = "", - symlink = " ", - symlink_open = "󰁔 ", - }, - git = { - unstaged = " ", - staged = " ", - unmerged = " ", - renamed = " ➜", - untracked = " ", - deleted = " 󰛌", - ignored = " ◌", - }, - }, - }, - }, - } - end, - keys = { - {"ee", ":NvimTreeToggle ", { silent = true }}, - {"ef", ":NvimTreeOpen ", { silent = true }}, - } -} diff --git a/lua/Dario48/plugins/oxocarbon.lua b/lua/Dario48/plugins/oxocarbon.lua deleted file mode 100644 index 612d5cc..0000000 --- a/lua/Dario48/plugins/oxocarbon.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { ---[[ "nyoom-engineering/oxocarbon.nvim", - config = function () - vim.opt.background = "dark" - vim.cmd("colorscheme oxocarbon") --- vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) --- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) - end ]]-- -} diff --git a/lua/Dario48/plugins/presence.lua b/lua/Dario48/plugins/presence.lua deleted file mode 100644 index ec94b9e..0000000 --- a/lua/Dario48/plugins/presence.lua +++ /dev/null @@ -1,23 +0,0 @@ -return{ - 'andweeb/presence.nvim', - config = function () - -- The setup config table shows all available config options with their default values: - require("presence").setup({ - -- General options - auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`) - neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image - main_image = "neovim", -- Main image display (either "neovim" or "file") - buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "