154 lines
3.6 KiB
Lua
154 lines
3.6 KiB
Lua
local logo = "\n"
|
|
.. [[
|
|
███╗ ███╗ ██████╗ ██╗ ██████╗
|
|
████╗ ████║██╔═══██╗ ██║██╔═══██╗
|
|
██╔████╔██║██║ ██║ ██║██║ ██║
|
|
██║╚██╔╝██║██║ ██║██ ██║██║ ██║
|
|
██║ ╚═╝ ██║╚██████╔╝╚█████╔╝╚██████╔╝
|
|
╚═╝ ╚═╝ ╚═════╝ ╚════╝ ╚═════╝
|
|
]]
|
|
|
|
return {
|
|
{
|
|
"nvimdev/dashboard-nvim",
|
|
opts = {
|
|
config = {
|
|
header = vim.split(logo, "\n"),
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"catppuccin/nvim",
|
|
name = "catppuccin",
|
|
opts = {
|
|
flavour = "macchiato",
|
|
},
|
|
},
|
|
{
|
|
"LazyVim/LazyVim",
|
|
opts = {
|
|
colorscheme = "catppuccin",
|
|
},
|
|
},
|
|
{
|
|
"christoomey/vim-tmux-navigator",
|
|
lazy = false,
|
|
},
|
|
{
|
|
"folke/flash.nvim",
|
|
keys = {
|
|
{ "s", mode = { "n", "x", "o" }, false },
|
|
{ "S", mode = { "n", "x", "o" }, false },
|
|
},
|
|
},
|
|
{
|
|
"hrsh7th/nvim-cmp",
|
|
opts = function(_, opts)
|
|
local cmp = require("cmp")
|
|
opts.mapping["<CR>"] = cmp.mapping({
|
|
i = function(fallback)
|
|
if cmp.visible() and cmp.get_active_entry() then
|
|
cmp.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = false })
|
|
else
|
|
fallback()
|
|
end
|
|
end,
|
|
s = cmp.mapping.confirm({ select = true }),
|
|
c = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true }),
|
|
})
|
|
opts.mapping["<S-CR>"] = nil
|
|
opts.mapping["<Tab>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert })
|
|
opts.mapping["<S-Tab>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert })
|
|
opts.completion.completeopt = "menu,menuone,noselect"
|
|
opts.preselect = cmp.PreselectMode.None
|
|
end,
|
|
},
|
|
{
|
|
"L3MON4D3/LuaSnip",
|
|
-- stylua: ignore
|
|
dependencies = {
|
|
"rafamadriz/friendly-snippets",
|
|
config = function()
|
|
require("luasnip.loaders.from_vscode").lazy_load({
|
|
exclude = { "elixir" },
|
|
})
|
|
end,
|
|
},
|
|
keys = function()
|
|
return {
|
|
{
|
|
"<C-.>",
|
|
function()
|
|
return require("luasnip").jumpable(1) and "<Plug>luasnip-jump-next" or "<tab>"
|
|
end,
|
|
expr = true,
|
|
silent = true,
|
|
mode = "i",
|
|
},
|
|
{
|
|
"<C-.>",
|
|
function()
|
|
require("luasnip").jump(1)
|
|
end,
|
|
mode = "s",
|
|
},
|
|
{
|
|
"<C-,>",
|
|
function()
|
|
require("luasnip").jump(-1)
|
|
end,
|
|
mode = { "i", "s" },
|
|
},
|
|
}
|
|
end,
|
|
},
|
|
{
|
|
"echasnovski/mini.indentscope",
|
|
opts = {
|
|
draw = {
|
|
delay = 0,
|
|
animation = require("mini.indentscope").gen_animation.none(),
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
pylsp = {
|
|
settings = {
|
|
pylsp = {
|
|
plugins = {
|
|
black = {
|
|
enabled = true,
|
|
},
|
|
flake8 = {
|
|
enabled = true,
|
|
},
|
|
pycodestyle = {
|
|
enabled = false,
|
|
},
|
|
pyflakes = {
|
|
enabled = false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"stevearc/dressing.nvim",
|
|
enabled = false,
|
|
},
|
|
{
|
|
"folke/noice.nvim",
|
|
enabled = false,
|
|
},
|
|
{
|
|
"echasnovski/mini.pairs",
|
|
enabled = false,
|
|
},
|
|
}
|