Update system. Changes in neovim config

This commit is contained in:
2026-03-25 20:16:21 +01:00
parent bf522e0b25
commit 8eb8d54d93
5 changed files with 144 additions and 96 deletions
+103
View File
@@ -0,0 +1,103 @@
vim.opt.number = true
vim.opt.expandtab = true
vim.opt.cursorline = true
vim.opt.shiftwidth = 2
vim.opt.softtabstop = 2
vim.opt.tabstop = 2
vim.opt.clipboard:append { 'unnamed', 'unnamedplus' }
--vim.g.cord_defer_startup = true
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if vim.fn.executable("git") == 1 then
if not (vim.uv or 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)
local opts = {}
local plugins = {
{
"Mofiqul/dracula.nvim",
lazy = false,
priority = 1000,
opts = {}
},
{
"romgrk/barbar.nvim",
init = function() vim.g.barbar_auto_setup = false end,
dependencies = { "nvim-tree/nvim-web-devicons", "lewis6991/gitsigns.nvim" }
},
{
'lewis6991/gitsigns.nvim'
},
{
'nvim-telescope/telescope.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
}
},
{
'lambdalisue/vim-suda'
},
{
'vyfor/cord.nvim'
},
{
"dstein64/nvim-scrollview"
},
{
"Isrothy/neominimap.nvim",
version = "v3.x.x",
lazy = false,
init = function()
vim.opt.wrap = true
vim.opt.sidescrolloff = 36
vim.g.neominimap = {
auto_enable = false,
layout = "float",
click = {
enabled = true,
auto_switch_focus = false,
},
}
end,
},
--[[
{
"kevinhwang91/nvim-ufo",
dependencies = {"kevinhwang91/promise-async"},
opts = {}
}]]
}
require("lazy").setup(plugins, opts)
if vim.fn.executable("tree-sitter") == 1 and MATERUS.NIXOS ~= 1 then
table.insert(plugins, {
'nvim-treesitter/nvim-treesitter',
lazy = false,
build = ':TSUpdate'
})
end
if vim.fn.executable("tree-sitter") == 1 and MATERUS.NIXOS ~= 1 then
require('nvim-treesitter').setup {
-- Directory to install parsers and queries to (prepended to `runtimepath` to have priority)
install_dir = vim.fn.stdpath('data') .. '/site',
highlight = { enable = true },
indent = { enable = true },
}
require('nvim-treesitter').install { 'lua' }
end
vim.cmd [[colorscheme dracula]]
end