Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vim.g.mapleader = '\\'
- vim.o.clipboard = 'unnamedplus'
- vim.opt.termguicolors = true
- vim.o.termguicolors = true
- vim.o.number = true
- vim.g.tokyonight_transparent = true
- local vim = vim
- local execute = vim.api.nvim_command
- local fn = vim.fn
- -- ensure that packer is installed
- local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
- if fn.empty(fn.glob(install_path)) > 0 then
- execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
- execute 'packadd packer.nvim'
- end
- vim.cmd('packadd packer.nvim')
- local packer = require'packer'
- local util = require'packer.util'
- packer.init({
- package_root = util.join_paths(vim.fn.stdpath('data'), 'site', 'pack')
- })
- --- startup and add configure plugins
- packer.startup(function()
- local use = use
- use {
- 'glepnir/galaxyline.nvim', branch = 'main', config = function() require'statusline' end,
- requires = {'kyazdani42/nvim-web-devicons'}
- }
- use 'nvim-treesitter/nvim-treesitter'
- use 'sheerun/vim-polyglot'
- use 'svermeulen/vim-cutlass'
- use 'folke/tokyonight.nvim'
- use "lukas-reineke/indent-blankline.nvim"
- end)
- local configs = require'nvim-treesitter.configs'
- configs.setup {
- ensure_installed = "maintained",
- highlight = {
- enable = true,
- }
- }
- vim.api.nvim_exec(
- [[
- augroup YankHighlight
- autocmd!
- autocmd TextYankPost * silent! lua vim.highlight.on_yank()
- augroup end
- ]],
- false
- )
- vim.cmd[[colorscheme tokyonight]]
- require("indent_blankline").setup {
- char = "|",
- buftype_exclude = {"terminal"}
- }
- vim.opt.list = true
- vim.opt.listchars = {eol = '↲', tab = '▸ ', trail = '·'}
- vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 blend=nocombine]]
- vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B blend=nocombine]]
- vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 blend=nocombine]]
- vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 blend=nocombine]]
- vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF blend=nocombine]]
- vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD blend=nocombine]]
- require("indent_blankline").setup {
- char = "|",
- space_char_blankline = " ",
- buftype_exclude = {"terminal"},
- char_highlight_list = {
- "IndentBlanklineIndent1",
- "IndentBlanklineIndent2",
- "IndentBlanklineIndent3",
- "IndentBlanklineIndent4",
- "IndentBlanklineIndent5",
- "IndentBlanklineIndent6",
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement