.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.

1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
1 local g = vim.g
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
2
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
3 -- >> Undotree
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
4 g.undotree_SplitWidth = 45
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
5 g.undotree_SetFocusWhenToggle = 1
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
6 g.undotree_ShortIndicators = 1
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
7 g.undotree_DiffCommand = "diff -dp -U 1"
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
8
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
9 -- >> Tagbar
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
10 g.tagbar_autoclose = 1
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
11 g.tagbar_autofocus = 1
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
12 g.tagbar_compact = 1
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
13 g.tagbar_width = 30
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
14
1034
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
15 -- >> interestingwords
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
16 -- These are jellybeans colors and some complements
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
17 g.interestingWordsGUIColors = {
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
18 '#C4A258','#6AADA0', '#71B9F8', '#A037B0', '#CF6A4C', '#D8AD4C',
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
19 }
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
20 g.interestingWordsTermColors = {
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
21 '179', '73', '75', '133', '167', '136',
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
22 }
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
23
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
24 return {
1020
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
25 "editorconfig/editorconfig-vim",
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
26
1020
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
27 "tpope/vim-unimpaired",
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
28 "tomtom/tcomment_vim",
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
29 "tpope/vim-endwise",
1029
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents: 1022
diff changeset
30 "godlygeek/tabular",
1020
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
31 {"mbbill/undotree", cmd = "UndotreeToggle"},
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
32
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
33 "tpope/vim-vinegar",
1034
d412eecafebf Add + configure interestingwords
Meredith Howard <mhoward@roomag.org>
parents: 1031
diff changeset
34 "lfv89/vim-interestingwords",
1020
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
35 "kshenoy/vim-signature",
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
36 {"majutsushi/tagbar", cmd = "TagbarToggle"},
1031
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
37
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
38 {
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
39 "RRethy/vim-illuminate",
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
40 event = {"BufReadPost", "BufNewFile"},
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
41 opts = {
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
42 delay = 250,
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
43 large_file_cutoff = 15000,
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
44 },
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
45 config = function(_, opts)
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
46 require("illuminate").configure(opts)
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
47 vim.cmd([[
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
48 hi! IlluminatedWordRead ctermfg=0 ctermbg=11 guifg=#f0a0c0 guibg=#302028
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
49 hi! IlluminatedWordText ctermfg=0 ctermbg=11 guifg=#f0a0c0 guibg=#302028
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
50 hi! IlluminatedWordWrite ctermfg=0 ctermbg=11 cterm=underline guifg=#f0a0c0 guibg=#302028 gui=underline
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
51 ]])
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
52 end,
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
53 },
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
54 }

mercurial