2023-11-14 01:38:00 +01:00
|
|
|
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)
|
|
|
|
|
|
|
|
plugins = {
|
2023-11-16 20:51:39 +01:00
|
|
|
'f-person/git-blame.nvim',
|
|
|
|
{
|
|
|
|
'windwp/nvim-autopairs',
|
|
|
|
event = 'InsertEnter',
|
|
|
|
config = function ()
|
|
|
|
require('nvim-autopairs').setup{}
|
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'windwp/nvim-ts-autotag',
|
|
|
|
config = function ()
|
2023-11-18 17:27:19 +01:00
|
|
|
require('nvim-ts-autotag').setup()
|
2023-11-16 20:51:39 +01:00
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'williamboman/mason.nvim',
|
|
|
|
config = function()
|
|
|
|
require('mason').setup()
|
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'neovim/nvim-lspconfig',
|
|
|
|
config = function()
|
|
|
|
local configs = require('lspconfig')
|
|
|
|
configs.lua_ls.setup{}
|
|
|
|
configs.pyright.setup{}
|
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'hrsh7th/nvim-cmp',
|
|
|
|
config = function()
|
|
|
|
|
|
|
|
require('luasnip.loaders.from_vscode').lazy_load()
|
|
|
|
|
|
|
|
local cmp = require('cmp')
|
|
|
|
cmp.setup({
|
|
|
|
snippet = {
|
|
|
|
expand = function(args)
|
|
|
|
require('luasnip').lsp_expand(args.body)
|
|
|
|
end
|
|
|
|
},
|
|
|
|
mapping = cmp.mapping.preset.insert ({
|
|
|
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
|
|
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
|
|
|
['<C-Space>'] = cmp.mapping.complete(),
|
|
|
|
['<C-e>'] = cmp.mapping.abort(),
|
|
|
|
['<CR>'] = cmp.mapping.confirm({ select = true }),
|
|
|
|
}),
|
|
|
|
sources = cmp.config.sources({
|
|
|
|
{name = 'nvim_lsp'},
|
|
|
|
{name = 'luasnip'},
|
|
|
|
{name = 'buffer'}
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
dependencies = {
|
|
|
|
{'hrsh7th/cmp-nvim-lsp'},
|
|
|
|
{'saadparwaiz1/cmp_luasnip'},
|
|
|
|
{'rafamadriz/friendly-snippets'},
|
|
|
|
{'L3MON4D3/LuaSnip'}
|
|
|
|
}
|
|
|
|
},
|
2023-11-14 19:20:29 +01:00
|
|
|
{
|
2023-11-15 00:30:45 +01:00
|
|
|
'maxmx03/dracula.nvim',
|
|
|
|
lazy = false,
|
|
|
|
config = function ()
|
|
|
|
local dracula = require 'dracula'
|
|
|
|
dracula.setup()
|
|
|
|
vim.cmd.colorscheme 'dracula'
|
|
|
|
end
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'nvimdev/dashboard-nvim',
|
|
|
|
event = 'VimEnter',
|
|
|
|
config = function ()
|
|
|
|
require('dashboard').setup{
|
|
|
|
theme = "hyper"
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
dependencies = {{'nvim-tree/nvim-web-devicons'}}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'romgrk/barbar.nvim',
|
|
|
|
init = function()
|
|
|
|
vim.g.barbar_autosetup = false
|
|
|
|
require('barbar').setup {
|
|
|
|
auto_hide = 1
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
dependencies = {
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
'nvim-tree/nvim-web-devicons',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'NTBBloodbath/galaxyline.nvim',
|
|
|
|
config = function() require('galaxyline.themes.eviline') end,
|
|
|
|
dependencies = {{'nvim-tree/nvim-web-devicons'}},
|
2023-11-14 19:20:29 +01:00
|
|
|
},
|
2023-11-18 17:27:19 +01:00
|
|
|
{
|
|
|
|
'nvim-neo-tree/neo-tree.nvim',
|
|
|
|
branch = "v3.x",
|
|
|
|
dependencies = {
|
|
|
|
'nvim-lua/plenary.nvim',
|
|
|
|
'nvim-tree/nvim-web-devicons',
|
|
|
|
'MunifTanjim/nui.nvim'
|
|
|
|
}
|
|
|
|
},
|
2023-11-14 01:38:00 +01:00
|
|
|
{
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
build = ":TSUpdate",
|
|
|
|
config = function ()
|
|
|
|
local configs = require("nvim-treesitter.configs")
|
|
|
|
configs.setup({
|
2023-11-14 19:20:29 +01:00
|
|
|
ensure_installed = { "c", "rust", "lua", "vim", "vimdoc", "javascript", "html", "astro" },
|
2023-11-14 01:38:00 +01:00
|
|
|
sync_install = false,
|
|
|
|
highlight = { enable = true },
|
|
|
|
indent = { enable = true },
|
2023-11-18 17:27:19 +01:00
|
|
|
})
|
2023-11-16 20:51:39 +01:00
|
|
|
end
|
|
|
|
},
|
2023-11-14 01:38:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
require("lazy").setup(plugins)
|
|
|
|
|
2023-11-17 21:40:23 +01:00
|
|
|
if vim.g.neovide == true then
|
|
|
|
vim.api.nvim_set_keymap('n', "<F11>", ":let g:neovide_fullscreen = !g:neovide_fullscreen<CR>", {})
|
|
|
|
end
|
|
|
|
|
2023-11-14 01:38:00 +01:00
|
|
|
vim.opt.smarttab = true
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
vim.opt.shiftwidth = 2
|
2023-11-18 17:27:19 +01:00
|
|
|
vim.opt.cmdheight = 0
|
2023-11-16 20:51:39 +01:00
|
|
|
vim.opt.guifont = "victor mono:h11"
|
2023-11-18 17:27:19 +01:00
|
|
|
vim.opt.termguicolors = true
|
|
|
|
vim.wo.number = true
|