nvim : add indent-blankline.

This commit is contained in:
Dmitry Voronin 2023-11-18 04:58:23 +03:00
parent 15c7f7d7ab
commit 50f0705b51
4 changed files with 51 additions and 45 deletions

View file

@ -15,3 +15,6 @@ vim.cmd("set mouse=") -- disable mouse.
-- disable signs for diagnostics.
vim.diagnostic.config({ signs = false })
-- Display for invisible characters.
vim.cmd("set list listchars=tab:>\\ ,trail:-,eol:,lead:.")

View file

@ -1,4 +1,4 @@
require('key/rekey')
remap_normal('<Leader>o', 'za') -- toggle fold.
remap_normal('<Leader>O', 'zx zM') -- fold everything.
remap_normal('<Leader>o', 'za') -- toggle fold.
remap_normal('<Leader>O', 'zM') -- fold everything.

View file

@ -0,0 +1 @@
require("ibl").setup()

View file

@ -1,8 +1,8 @@
local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
local install_path = fn.stdpath("data").."/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://git.voronind.com/mirror/packer.nvim.git', install_path})
fn.system({"git", "clone", "--depth", "1", "https://git.voronind.com/mirror/packer.nvim.git", install_path})
vim.cmd [[packadd packer.nvim]]
return true
end
@ -20,64 +20,66 @@ local available = function(commands)
return true
end
return require('packer').startup(function(use)
return require("packer").startup(function(use)
--[[
host requirements
- gcc-c++
]]--
use 'https://git.voronind.com/mirror/packer.nvim.git'
use 'https://git.voronind.com/mirror/nvim-web-devicons.git'
use 'https://git.voronind.com/mirror/nvim-tree.lua.git'
use 'https://git.voronind.com/mirror/nvim-lspconfig.git'
use 'https://git.voronind.com/mirror/which-key.nvim.git'
use 'https://git.voronind.com/mirror/bufferline.nvim.git'
use 'https://git.voronind.com/mirror/SingleComment.nvim.git'
use 'https://git.voronind.com/mirror/lualine.nvim.git'
use 'https://git.voronind.com/mirror/autoclose.nvim.git'
use 'https://git.voronind.com/mirror/winshift.nvim.git'
use 'https://git.voronind.com/mirror/mason.nvim.git'
use 'https://git.voronind.com/mirror/mason-lspconfig.nvim.git'
use 'https://git.voronind.com/mirror/gitsigns.nvim.git'
use 'https://git.voronind.com/mirror/trouble.nvim.git'
use 'https://git.voronind.com/mirror/tokyonight.nvim.git'
use 'https://git.voronind.com/mirror/close-buffers.nvim.git'
use 'https://git.voronind.com/mirror/plenary.nvim.git'
use 'https://git.voronind.com/mirror/telescope.nvim.git'
use 'https://git.voronind.com/mirror/nvim-treesitter.git'
use 'https://git.voronind.com/mirror/todo-comments.nvim.git'
use 'https://git.voronind.com/mirror/align.nvim.git'
use 'https://git.voronind.com/mirror/gruvbox-material.git'
use "https://git.voronind.com/mirror/packer.nvim.git"
use "https://git.voronind.com/mirror/nvim-web-devicons.git"
use "https://git.voronind.com/mirror/nvim-tree.lua.git"
use "https://git.voronind.com/mirror/nvim-lspconfig.git"
use "https://git.voronind.com/mirror/which-key.nvim.git"
use "https://git.voronind.com/mirror/bufferline.nvim.git"
use "https://git.voronind.com/mirror/SingleComment.nvim.git"
use "https://git.voronind.com/mirror/lualine.nvim.git"
use "https://git.voronind.com/mirror/autoclose.nvim.git"
use "https://git.voronind.com/mirror/winshift.nvim.git"
use "https://git.voronind.com/mirror/mason.nvim.git"
use "https://git.voronind.com/mirror/mason-lspconfig.nvim.git"
use "https://git.voronind.com/mirror/gitsigns.nvim.git"
use "https://git.voronind.com/mirror/trouble.nvim.git"
use "https://git.voronind.com/mirror/tokyonight.nvim.git"
use "https://git.voronind.com/mirror/close-buffers.nvim.git"
use "https://git.voronind.com/mirror/plenary.nvim.git"
use "https://git.voronind.com/mirror/telescope.nvim.git"
use "https://git.voronind.com/mirror/nvim-treesitter.git"
use "https://git.voronind.com/mirror/todo-comments.nvim.git"
use "https://git.voronind.com/mirror/align.nvim.git"
use "https://git.voronind.com/mirror/gruvbox-material.git"
use "https://git.voronind.com/mirror/indent-blankline.nvim.git"
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
require("packer").sync()
end
-- plugin toggles.
local treesitter = true
-- plugin setup.
require('plugin/mason')
require('plugin/lsp/init')
require('plugin/filetree')
require('plugin/bufferline')
require('plugin/lualine')
require('plugin/autoclose')
require('plugin/winshift')
require('plugin/gitsigns')
require('plugin/trouble')
require('plugin/tokyonight')
require('plugin/gruvbox')
require('plugin/closebuffers')
require('plugin/telescope')
require('plugin/todo')
require("plugin/mason")
require("plugin/lsp/init")
require("plugin/filetree")
require("plugin/bufferline")
require("plugin/lualine")
require("plugin/autoclose")
require("plugin/winshift")
require("plugin/gitsigns")
require("plugin/trouble")
require("plugin/tokyonight")
require("plugin/gruvbox")
require("plugin/closebuffers")
require("plugin/telescope")
require("plugin/todo")
require("plugin/indent")
if available({'g++'}) then
if available({"g++"}) then
if treesitter then
require('plugin/treesitter')
require('plugin/fold')
require("plugin/treesitter")
require("plugin/fold")
end
end
end)