mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
refactor: moved to python-semshi
This commit is contained in:
parent
4982ececf7
commit
20f8db6f9a
1 changed files with 8 additions and 11 deletions
|
|
@ -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 {
|
return {
|
||||||
-- "numiras/semshi",
|
-- "numiras/semshi",
|
||||||
"wookayin/semshi", -- use a maintained fork
|
"wookayin/semshi", -- use a maintained fork
|
||||||
|
|
@ -13,12 +11,11 @@ return {
|
||||||
vim.g["semshi#update_delay_factor"] = 0.001
|
vim.g["semshi#update_delay_factor"] = 0.001
|
||||||
|
|
||||||
-- This autocmd must be defined in init to take effect
|
-- This autocmd must be defined in init to take effect
|
||||||
vim.api.nvim_create_autocmd({ "VimEnter", "ColorScheme" },
|
vim.api.nvim_create_autocmd({ "VimEnter", "ColorScheme" }, {
|
||||||
{
|
group = vim.api.nvim_create_augroup("SemanticHighlight", {}),
|
||||||
group = vim.api.nvim_create_augroup("SemanticHighlight", {}),
|
callback = function()
|
||||||
callback = function()
|
-- Only add style, inherit or link to the LSP's colors
|
||||||
-- Only add style, inherit or link to the LSP's colors
|
vim.cmd([[
|
||||||
vim.cmd [[
|
|
||||||
highlight! semshiGlobal gui=italic
|
highlight! semshiGlobal gui=italic
|
||||||
highlight! semshiImported gui=bold
|
highlight! semshiImported gui=bold
|
||||||
highlight! link semshiParameter @lsp.type.parameter
|
highlight! link semshiParameter @lsp.type.parameter
|
||||||
|
|
@ -27,8 +24,8 @@ return {
|
||||||
highlight! link semshiAttribute @attribute
|
highlight! link semshiAttribute @attribute
|
||||||
highlight! link semshiSelf @lsp.type.selfKeyword
|
highlight! link semshiSelf @lsp.type.selfKeyword
|
||||||
highlight! link semshiUnresolved @lsp.type.unresolvedReference
|
highlight! link semshiUnresolved @lsp.type.unresolvedReference
|
||||||
]]
|
]])
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue