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

Sun, 19 Feb 2023 13:48:14 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 19 Feb 2023 13:48:14 -0600
changeset 1032
b0497894f69b
parent 1031
ceb2e56c6e8f
child 1034
d412eecafebf
permissions
-rw-r--r--

Customize LSP float diags further

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
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 return {
1020
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
16 "editorconfig/editorconfig-vim",
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1020
diff changeset
17
1020
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
18 "tpope/vim-unimpaired",
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
19 "tomtom/tcomment_vim",
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
20 "tpope/vim-endwise",
1029
9265f8508e4c Copy other ft and plugin settings
Meredith Howard <mhoward@roomag.org>
parents: 1022
diff changeset
21 "godlygeek/tabular",
1020
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
22 {"mbbill/undotree", cmd = "UndotreeToggle"},
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
23
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
24 "tpope/vim-vinegar",
1020
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
25 "kshenoy/vim-signature",
b1b644e9825d Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
26 {"majutsushi/tagbar", cmd = "TagbarToggle"},
1031
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
27
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
28 {
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
29 "RRethy/vim-illuminate",
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
30 event = {"BufReadPost", "BufNewFile"},
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
31 opts = {
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
32 delay = 250,
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
33 large_file_cutoff = 15000,
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
34 },
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
35 config = function(_, opts)
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
36 require("illuminate").configure(opts)
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
37 vim.cmd([[
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
38 hi! IlluminatedWordRead ctermfg=0 ctermbg=11 guifg=#f0a0c0 guibg=#302028
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
39 hi! IlluminatedWordText ctermfg=0 ctermbg=11 guifg=#f0a0c0 guibg=#302028
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
40 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
41 ]])
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
42 end,
ceb2e56c6e8f Use vim-illuminate
Meredith Howard <mhoward@roomag.org>
parents: 1029
diff changeset
43 },
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
44 }

mercurial