.config/nvim/lua/plugins/editing.lua

Mon, 20 Feb 2023 15:15:50 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 20 Feb 2023 15:15:50 -0600
changeset 1040
b7d88feee303
parent 1034
d412eecafebf
child 1048
06ff90b09389
permissions
-rw-r--r--

fvim's font rendering is small for some reason.

local g = vim.g

-- >> Undotree
g.undotree_SplitWidth = 45
g.undotree_SetFocusWhenToggle = 1
g.undotree_ShortIndicators = 1
g.undotree_DiffCommand = "diff -dp -U 1"

-- >> Tagbar
g.tagbar_autoclose = 1
g.tagbar_autofocus = 1
g.tagbar_compact = 1
g.tagbar_width = 30

-- >> interestingwords
-- These are jellybeans colors and some complements
g.interestingWordsGUIColors = {
  '#C4A258','#6AADA0', '#71B9F8', '#A037B0', '#CF6A4C', '#D8AD4C',
}
g.interestingWordsTermColors = {
  '179', '73', '75', '133', '167', '136',
}

return {
  "editorconfig/editorconfig-vim",

  "tpope/vim-unimpaired",
  "tomtom/tcomment_vim",
  "tpope/vim-endwise",
  "godlygeek/tabular",
  {"mbbill/undotree", cmd = "UndotreeToggle"},

  "tpope/vim-vinegar",
  "lfv89/vim-interestingwords",
  "kshenoy/vim-signature",
  {"majutsushi/tagbar", cmd = "TagbarToggle"},

  {
    "RRethy/vim-illuminate",
    event = {"BufReadPost", "BufNewFile"},
    opts = {
      delay = 250,
      large_file_cutoff = 15000,
    },
    config = function(_, opts)
      require("illuminate").configure(opts)
      vim.cmd([[
        hi! IlluminatedWordRead ctermfg=0 ctermbg=11 guifg=#f0a0c0 guibg=#302028
        hi! IlluminatedWordText ctermfg=0 ctermbg=11 guifg=#f0a0c0 guibg=#302028
        hi! IlluminatedWordWrite ctermfg=0 ctermbg=11 cterm=underline guifg=#f0a0c0 guibg=#302028 gui=underline
      ]])
    end,
  },
}

mercurial