From 69db7bb4d257a99185eb155c00d1660d8c912fab Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 3 Dec 2021 00:37:09 +0100 Subject: [PATCH] Add unused semshi plugin config --- .../nvim/lua/plugins.d/deprecated/semshi.lua | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 home/.config/nvim/lua/plugins.d/deprecated/semshi.lua diff --git a/home/.config/nvim/lua/plugins.d/deprecated/semshi.lua b/home/.config/nvim/lua/plugins.d/deprecated/semshi.lua new file mode 100644 index 0000000..e37aea8 --- /dev/null +++ b/home/.config/nvim/lua/plugins.d/deprecated/semshi.lua @@ -0,0 +1,31 @@ +local vim = require("vim") +local cmd = vim.cmd +local fn = vim.fn + +-- Unused because the extension significantly slows down the opening time for vim. +-- Also, while the semantic highlighting in it is neat, for me, it isn't worth in. +-- +-- The extension default colorscheme makes the code look like unicorn vommit. +-- I'd prefer a simpler extension that only really distinguishes between classes, +-- functions and perhaps unused variables. I don't need to see a different color +-- when I access something as an attribute, but it would be neat to see what that +-- attribute actually holds, is it a class or a fucntion. But from my searching, +-- I wasn't able to find anything like this. This is open to pull requests. +cmd[[Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' }]] + +if (fn.has("python3")) then + fn.system({"pip", "install", "nvim", "--upgrade"}) +end + +cmd[[ +function MyCustomHighlights() + hi semshiParameter ctermfg=117 guifg=#93CCED + hi semshiParameterUnused ctermfg=117 guifg=#5e8193 cterm=underline gui=underline + hi semshiBuiltin ctermfg=29 guifg=#48bda5 + hi semshiAttribute ctermfg=254 guifg=#d1d1d1 + hi semshiImported ctermfg=214 guifg=#f8c466 cterm=bold gui=bold + hi semshiLocal ctermfg=209 guifg=#ff875f +endfunction + +autocmd FileType python call MyCustomHighlights() +]]