Advertisement
hugoeustaquio

Untitled

Sep 16th, 2021
1,310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.47 KB | None | 0 0
  1. vim.g.mapleader = '\\'
  2. vim.o.clipboard = 'unnamedplus'
  3. vim.opt.termguicolors = true
  4. vim.o.termguicolors = true
  5. vim.o.number = true
  6. vim.g.tokyonight_transparent = true
  7.  
  8. local vim = vim
  9. local execute = vim.api.nvim_command
  10. local fn = vim.fn
  11.  
  12. -- ensure that packer is installed
  13. local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
  14. if fn.empty(fn.glob(install_path)) > 0 then
  15.     execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
  16.     execute 'packadd packer.nvim'
  17. end
  18.  
  19. vim.cmd('packadd packer.nvim')
  20. local packer = require'packer'
  21. local util = require'packer.util'
  22. packer.init({
  23.   package_root = util.join_paths(vim.fn.stdpath('data'), 'site', 'pack')
  24. })
  25. --- startup and add configure plugins
  26. packer.startup(function()
  27.   local use = use
  28.   use {
  29.     'glepnir/galaxyline.nvim', branch = 'main', config = function() require'statusline' end,
  30.     requires = {'kyazdani42/nvim-web-devicons'}
  31.   }
  32.  
  33.   use 'nvim-treesitter/nvim-treesitter'
  34.   use 'sheerun/vim-polyglot'
  35.   use 'svermeulen/vim-cutlass'
  36.   use 'folke/tokyonight.nvim'
  37.   use "lukas-reineke/indent-blankline.nvim"
  38.  
  39. end)
  40.  
  41.  
  42. local configs = require'nvim-treesitter.configs'
  43. configs.setup {
  44.   ensure_installed = "maintained",
  45.   highlight = {
  46.     enable = true,
  47.   }
  48. }
  49.  
  50.  
  51. vim.api.nvim_exec(
  52.   [[
  53.   augroup YankHighlight
  54.     autocmd!
  55.     autocmd TextYankPost * silent! lua vim.highlight.on_yank()
  56.   augroup end
  57. ]],
  58.   false
  59. )
  60.  
  61. vim.cmd[[colorscheme tokyonight]]
  62.  
  63. require("indent_blankline").setup {
  64.     char = "|",
  65.     buftype_exclude = {"terminal"}
  66. }
  67.  
  68. vim.opt.list = true
  69. vim.opt.listchars = {eol = '↲', tab = '▸ ', trail = '·'}
  70.  
  71. vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 blend=nocombine]]
  72. vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B blend=nocombine]]
  73. vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 blend=nocombine]]
  74. vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 blend=nocombine]]
  75. vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF blend=nocombine]]
  76. vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD blend=nocombine]]
  77.  
  78. require("indent_blankline").setup {
  79.     char = "|",
  80.     space_char_blankline = " ",
  81.     buftype_exclude = {"terminal"},
  82.     char_highlight_list = {
  83.         "IndentBlanklineIndent1",
  84.         "IndentBlanklineIndent2",
  85.         "IndentBlanklineIndent3",
  86.         "IndentBlanklineIndent4",
  87.         "IndentBlanklineIndent5",
  88.         "IndentBlanklineIndent6",
  89.     },
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement