new config
This commit is contained in:
parent
ee2563cac6
commit
e3d3ab6680
36 changed files with 262 additions and 611 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
# neovim
|
|
||||||
|
|
||||||
neovim config
|
|
||||||
6
init.lua
6
init.lua
|
|
@ -1,3 +1,3 @@
|
||||||
require("Dario48.options")
|
require("config.lazy")
|
||||||
require("Dario48.colors")
|
require("config.general")
|
||||||
require("Dario48.lazy")
|
|
||||||
|
|
|
||||||
|
|
@ -1,42 +1,28 @@
|
||||||
{
|
{
|
||||||
"LuaSnip": { "branch": "master", "commit": "ce0a05ab4e2839e1c48d072c5236cce846a387bc" },
|
"LuaSnip": { "branch": "master", "commit": "33b06d72d220aa56a7ce80a0dd6f06c70cd82b9d" },
|
||||||
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
|
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||||
"auto-pairs": { "branch": "master", "commit": "39f06b873a8449af8ff6a3eee716d3da14d63a76" },
|
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
|
||||||
"bufferline.nvim": { "branch": "main", "commit": "99337f63f0a3c3ab9519f3d1da7618ca4f91cffe" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
|
||||||
"codeium.vim": { "branch": "main", "commit": "e0342fde9474fdd0a36ff9692fe0031b7611a19f" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "310e2e95a4f832163f3f7a9fedebb1a4afc0db69" },
|
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||||
"csvlens.nvim": { "branch": "main", "commit": "987375e2cf6399850f7f801b53b89c981ed652fa" },
|
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
||||||
"fd": { "branch": "master", "commit": "cfced9787ee544d99f36e455762defec87c6be16" },
|
"lazy.nvim": { "branch": "main", "commit": "7c493713bc2cb392706866eeba53aaef6c8e9fc6" },
|
||||||
"feline.nvim": { "branch": "main", "commit": "c97c17dc56ca3cf2b9b9192c3447fc59347e8c0d" },
|
"lsp-zero.nvim": { "branch": "v1.x", "commit": "aa36afcf7a59fbd98008c9a434593c423d3d649a" },
|
||||||
"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" },
|
|
||||||
"lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
|
"lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
|
||||||
"luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "8e46de9241d3997927af12196bd8faa0ed08c29a" },
|
||||||
"luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
|
|
||||||
"mason-conform.nvim": { "branch": "main", "commit": "abce2be529f3b4b336c56d0ba6336a9144e0fee6" },
|
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" },
|
|
||||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||||
"neorg": { "branch": "main", "commit": "efd7bd9c584c206d7aed2c40b02c73a9e5d04e73" },
|
"neorg": { "branch": "main", "commit": "0460ccd3b97bc100ca1af0270588b4c76d29c4c4" },
|
||||||
"nightfox.nvim": { "branch": "main", "commit": "df75a6a94910ae47854341d6b5a6fd483192c0eb" },
|
"neorg-extras": { "branch": "main", "commit": "e3693be7378d82351d4600ef4a7bc9bc86578b95" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
|
"nightfox.nvim": { "branch": "main", "commit": "7557f26defd093c4e9bc17f28b08403f706f5a44" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "d818fd0624205b34e14888358037fb6f5dc51234" },
|
"nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "6f79b822997f2e8a789c6034e147d42bc6706770" },
|
"nvim-cmp": { "branch": "main", "commit": "3403e2e9391ed0a28c3afddd8612701b647c8e26" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "a5606bc5958db86f8d92803bea7400ee26a8d7e4" },
|
"nvim-lspconfig": { "branch": "master", "commit": "5a812abc65d529ea7673059a348814c21d7f87ff" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "01e08d4bf1c35e5126b2ad5209725e4c552289ab" },
|
|
||||||
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
|
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
|
||||||
"nvim-tetris": { "branch": "master", "commit": "d17c99fb527ada98ffb0212ffc87ccda6fd4f7d9" },
|
"nvim-treesitter": { "branch": "master", "commit": "2a496fa4e89034014dd054f04c061ba7d6023a0c" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "f9ff00bc06d7cb70548a3847d7a2a05e928bc988" },
|
"pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "7a38515741768c0a0712253de4ce64454cb24c1a" },
|
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
|
"telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" },
|
||||||
"pathlib.nvim": { "branch": "main", "commit": "7a5a6facd29e306bc73a37719fa67c0d2226f852" },
|
"vim-jukit": { "branch": "master", "commit": "73214c9a8abc4b6aa7a6266b5bc2ddbf8b3e3c00" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
"which-key.nvim": { "branch": "main", "commit": "9b365a6428a9633e3eeb34dbef1b791511c54f70" }
|
||||||
"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" }
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"})
|
|
||||||
|
|
@ -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>")
|
|
||||||
|
|
@ -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")
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
return {
|
|
||||||
'ThePrimeagen/vim-be-good',
|
|
||||||
keys ={{"<leader>vbg", ":VimBeGood <CR>", desc = "VimBeGood"}}
|
|
||||||
}
|
|
||||||
|
|
@ -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
|
|
||||||
};
|
|
||||||
|
|
@ -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"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -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 },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -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,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
return {
|
|
||||||
"theKnightsOfRohan/csvlens.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"akinsho/toggleterm.nvim"
|
|
||||||
},
|
|
||||||
config = true,
|
|
||||||
opts = { --[[ Place your opts here ]] }
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
return {
|
|
||||||
'freddiehaddad/feline.nvim',
|
|
||||||
dependencies = {
|
|
||||||
'nvim-tree/nvim-web-devicons',
|
|
||||||
'lewis6991/gitsigns.nvim',
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require('feline').setup()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
@ -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,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -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,
|
|
||||||
}
|
|
||||||
|
|
@ -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"
|
|
||||||
}
|
|
||||||
|
|
@ -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
|
|
||||||
}
|
|
||||||
|
|
@ -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"}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
return {
|
|
||||||
"alec-gibson/nvim-tetris"
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue