Skip to content

Commit d2e5998

Browse files
committed
chore: venv-select & semshi to optional, suggested plugins (#8)
1 parent 65d240f commit d2e5998

File tree

2 files changed

+3
-49
lines changed

2 files changed

+3
-49
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ some people might be interested in them:
101101
- [jupytext.nvim](https://github.com/GCBallesteros/jupytext.nvim): Convert
102102
Jupyter Notebooks to code and back.
103103
- [py-requirements.nvim](https://github.com/MeanderingProgrammer/py-requirements.nvim): : Helps manage python requirements.
104+
- [venv-selector](https://github.com/linux-cultist/venv-selector.nvim): switch
105+
virtual environments
104106

105107
## Recommended Citation
106108
You can cite this software project as:

kickstart-python.lua

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -253,40 +253,7 @@ local plugins = {
253253
},
254254
},
255255

256-
-- semshi for additional syntax highlighting.
257-
-- See the README for Treesitter cs Semshi comparison.
258-
-- requires `pynvim` (`python3 -m pip install pynvim`)
259-
{
260-
"wookayin/semshi", -- maintained fork
261-
ft = "python",
262-
build = ":UpdateRemotePlugins", -- don't disable `rplugin` in lazy.nvim for this
263-
init = function()
264-
vim.g.python3_host_prog = vim.fn.exepath("python3")
265-
-- better done by LSP
266-
vim.g["semshi#error_sign"] = false
267-
vim.g["semshi#simplify_markup"] = false
268-
vim.g["semshi#mark_selected_nodes"] = false
269-
vim.g["semshi#update_delay_factor"] = 0.001
270-
271-
vim.api.nvim_create_autocmd({ "VimEnter", "ColorScheme" }, {
272-
callback = function()
273-
vim.cmd([[
274-
highlight! semshiGlobal gui=italic
275-
highlight! link semshiImported @lsp.type.namespace
276-
highlight! link semshiParameter @lsp.type.parameter
277-
highlight! link semshiParameterUnused DiagnosticUnnecessary
278-
highlight! link semshiBuiltin @function.builtin
279-
highlight! link semshiAttribute @field
280-
highlight! link semshiSelf @lsp.type.selfKeyword
281-
highlight! link semshiUnresolved @lsp.type.unresolvedReference
282-
highlight! link semshiFree @comment
283-
]])
284-
end,
285-
})
286-
end,
287-
},
288-
289-
-- Colorscheme
256+
-- COLORSCHEME
290257
-- In neovim, the choice of color schemes is unfortunately not purely
291258
-- aesthetic – treesitter-based highlighting or newer features like semantic
292259
-- highlighting are not always supported by a color scheme. It's therefore
@@ -391,21 +358,6 @@ local plugins = {
391358
"chrisgrieser/nvim-puppeteer",
392359
dependencies = "nvim-treesitter/nvim-treesitter",
393360
},
394-
395-
-- select virtual environments
396-
-- - makes pyright and debugpy aware of the selected virtual environment
397-
-- - Select a virtual environment with `:VenvSelect`
398-
{
399-
"linux-cultist/venv-selector.nvim",
400-
dependencies = {
401-
"neovim/nvim-lspconfig",
402-
"nvim-telescope/telescope.nvim",
403-
"mfussenegger/nvim-dap-python",
404-
},
405-
opts = {
406-
dap_enabled = true, -- makes the debugger work with venv
407-
},
408-
},
409361
}
410362

411363
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)