new config

This commit is contained in:
Dario48true 2025-02-03 10:21:51 +01:00
commit e3d3ab6680
33 changed files with 262 additions and 611 deletions

View file

@ -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"})

View file

@ -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", "<leader>l", ":Lazy <CR>")

View file

@ -1,36 +0,0 @@
vim.cmd("nnoremap <Space> <Nop>")
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", "<leader>+x", ":!chmod +x %<CR>", { silent = true })
vim.keymap.set("n", "<leader>+r", ":!chmod +r %<CR>", { silent = true })
vim.keymap.set("n", "<leader>+w", ":!chmod +w %<CR>", { silent = true })
vim.keymap.set("n", "<leader>-x", ":!chmod -x %<CR>", { silent = true })
vim.keymap.set("n", "<leader>-r", ":!chmod -r %<CR>", { silent = true })
vim.keymap.set("n", "<leader>-w", ":!chmod -w %<CR>", { silent = true })
vim.opt.rnu = true
vim.opt.nu = true
vim.cmd([[set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,space:•]])
vim.keymap.set("n", "<leader>hc", ":set list!<CR>", { silent = true })
vim.opt.termguicolors = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.scrolloff = 6
vim.keymap.set("v", "<leader>yo", ":yank +", { silent = true })
vim.keymap.set("v", "<leader>ya", ":yank *", { silent = true })
vim.cmd("nnoremap j gj")
vim.cmd("nnoremap k gk")

View file

@ -1,4 +0,0 @@
return {
'ThePrimeagen/vim-be-good',
keys ={{"<leader>vbg", ":VimBeGood <CR>", desc = "VimBeGood"}}
}

View file

@ -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", "<cmd>ene<CR>"),
dashboard.button("u", " Update plugins", "<cmd>Lazy sync<CR>"),
dashboard.button("q", "󰩈 Quit", "<cmd>qa<CR>"),
},
position = "center",
}
-- Send config to alpha
alpha.setup(dashboard.opts)
-- Disable folding on alpha buffer
vim.cmd([[
autocmd FileType alpha setlocal nofoldenable
]])
end
};

View file

@ -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 = {
{"<leader>bb", "<cmd>bNext <CR>", desc = "next buffer"},
{"<leader>bd", "<cmd>bdelete <CR>", desc = "delete buffer"},
{"<leader>bl", "<cmd>blast <CR>", desc = "last buffer"},
}
}

View file

@ -1,37 +0,0 @@
return {
"Exafunction/codeium.vim",
event = "BufEnter",
config = function()
vim.g.codeium_disable_bindings = 1
end,
keys = {
{
"<c-l>",
function()
return vim.fn["codeium#Accept"]()
end,
{ expr = true, silent = true },
},
{
"<c-;>",
function()
return vim.fn["codeium#CycleCompletions"](1)
end,
{ expr = true, silent = true },
},
{
"<s-c-,>",
function()
return vim.fn["codeium#CycleCompletions"](-1)
end,
{ expr = true, silent = true },
},
{
"<s-c-x>",
function()
return vim.fn["codeium#Clear"]()
end,
{ expr = true, silent = true },
},
},
}

View file

@ -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,
},
}

View file

@ -1,8 +0,0 @@
return {
"theKnightsOfRohan/csvlens.nvim",
dependencies = {
"akinsho/toggleterm.nvim"
},
config = true,
opts = { --[[ Place your opts here ]] }
}

View file

@ -1,10 +0,0 @@
return {
'freddiehaddad/feline.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
'lewis6991/gitsigns.nvim',
},
config = function()
require('feline').setup()
end
}

View file

@ -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,
},
}

View file

@ -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 = {
{ "<leader>m", ":Mason <CR>", 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({
["<C-Space>"] = cmp.mapping.complete(),
[" "] = cmp.mapping.confirm({ select = false }),
["<C-u>"] = cmp.mapping.scroll_docs(-4),
["<C-d>"] = cmp.mapping.scroll_docs(4),
["<C-f>"] = cmp_action.luasnip_jump_forward(),
["<C-b>"] = 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", "<leader>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 = {
{
"<leader>qf",
function()
vim.lsp.buf.code_action()
end,
silent = true,
desc = "quickfix",
},
},
},
}

View file

@ -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,
}

View file

@ -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"
}

View file

@ -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
}

View file

@ -1,48 +0,0 @@
return {
{
"mfussenegger/nvim-dap",
keys = {
{"<leader>dt", function() require'dap'.toggle_breakpoint() end, {silent = true}, desc = "toggle breakpoint"},
{"<leader>dc", function() require'dap'.continue() end, {silent = true}, desc = "debug continue"},
{"<leader>dso", function() require'dap'.step_over() end, {silent = true}, desc = "debug step over"},
{"<leader>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 = {
{"<leader>du", "<cmd>lua require\"dapui\".toggle()", desc = "open dapui"}
},
}
}

View file

@ -1,3 +0,0 @@
return {
"alec-gibson/nvim-tetris"
}

View file

@ -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 = {
{"<leader>ee", ":NvimTreeToggle <CR>", { silent = true }},
{"<leader>ef", ":NvimTreeOpen <CR>", { silent = true }},
}
}

View file

@ -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 ]]--
}

View file

@ -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 = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
show_time = true, -- Show the timer
-- Rich Presence text options
editing_text = "Editing %s", -- Format string rendered when an editable file is loaded in the buffer (either string or function(filename: string): string)
file_explorer_text = "Browsing %s", -- Format string rendered when browsing a file explorer (either string or function(file_explorer_name: string): string)
git_commit_text = "Committing changes", -- Format string rendered when committing changes in git (either string or function(filename: string): string)
plugin_manager_text = "Managing plugins", -- Format string rendered when managing plugins (either string or function(plugin_manager_name: string): string)
reading_text = "Reading %s", -- Format string rendered when a read-only or unmodifiable file is loaded in the buffer (either string or function(filename: string): string)
workspace_text = "Working on %s", -- Format string rendered when in a git repository (either string or function(project_name: string|nil, filename: string): string)
line_number_text = "Line %s out of %s", -- Format string rendered when `enable_line_number` is set to true (either string or function(line_number: number, line_count: number): string)
})
end
}

Some files were not shown because too many files have changed in this diff Show more