From 20f8db6f9a81c274fb6f870739670137d3db40ec Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 22 Jul 2023 09:20:37 +0200 Subject: [PATCH] refactor: moved to python-semshi --- ...mantic-highlight.lua => python-semshi.lua} | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) rename lua/lazyvim/plugins/extras/lang/{python/semantic-highlight.lua => python-semshi.lua} (67%) diff --git a/lua/lazyvim/plugins/extras/lang/python/semantic-highlight.lua b/lua/lazyvim/plugins/extras/lang/python-semshi.lua similarity index 67% rename from lua/lazyvim/plugins/extras/lang/python/semantic-highlight.lua rename to lua/lazyvim/plugins/extras/lang/python-semshi.lua index ad3b7cff..a9a4870e 100644 --- a/lua/lazyvim/plugins/extras/lang/python/semantic-highlight.lua +++ b/lua/lazyvim/plugins/extras/lang/python-semshi.lua @@ -1,5 +1,3 @@ --- NOTE: You might need to open a Python file, then manually run `:UpdateRemotePlugins` --- since the build command might be run when semshi has not been loaded due to lazyness return { -- "numiras/semshi", "wookayin/semshi", -- use a maintained fork @@ -13,12 +11,11 @@ return { vim.g["semshi#update_delay_factor"] = 0.001 -- This autocmd must be defined in init to take effect - vim.api.nvim_create_autocmd({ "VimEnter", "ColorScheme" }, - { - group = vim.api.nvim_create_augroup("SemanticHighlight", {}), - callback = function() - -- Only add style, inherit or link to the LSP's colors - vim.cmd [[ + vim.api.nvim_create_autocmd({ "VimEnter", "ColorScheme" }, { + group = vim.api.nvim_create_augroup("SemanticHighlight", {}), + callback = function() + -- Only add style, inherit or link to the LSP's colors + vim.cmd([[ highlight! semshiGlobal gui=italic highlight! semshiImported gui=bold highlight! link semshiParameter @lsp.type.parameter @@ -27,8 +24,8 @@ return { highlight! link semshiAttribute @attribute highlight! link semshiSelf @lsp.type.selfKeyword highlight! link semshiUnresolved @lsp.type.unresolvedReference - ]] - end - }) + ]]) + end, + }) end, }