From d2e59987d6d06247a53c55095f07b49f5b3999bc Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Sat, 20 Jul 2024 17:43:36 +0200 Subject: [PATCH] chore: `venv-select` & `semshi` to optional, suggested plugins (#8) --- README.md | 2 ++ kickstart-python.lua | 50 +------------------------------------------- 2 files changed, 3 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index dec099b..399964e 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,8 @@ some people might be interested in them: - [jupytext.nvim](https://github.com/GCBallesteros/jupytext.nvim): Convert Jupyter Notebooks to code and back. - [py-requirements.nvim](https://github.com/MeanderingProgrammer/py-requirements.nvim): : Helps manage python requirements. +- [venv-selector](https://github.com/linux-cultist/venv-selector.nvim): switch + virtual environments ## Recommended Citation You can cite this software project as: diff --git a/kickstart-python.lua b/kickstart-python.lua index e157379..660f0ec 100644 --- a/kickstart-python.lua +++ b/kickstart-python.lua @@ -253,40 +253,7 @@ local plugins = { }, }, - -- semshi for additional syntax highlighting. - -- See the README for Treesitter cs Semshi comparison. - -- requires `pynvim` (`python3 -m pip install pynvim`) - { - "wookayin/semshi", -- maintained fork - ft = "python", - build = ":UpdateRemotePlugins", -- don't disable `rplugin` in lazy.nvim for this - init = function() - vim.g.python3_host_prog = vim.fn.exepath("python3") - -- better done by LSP - vim.g["semshi#error_sign"] = false - vim.g["semshi#simplify_markup"] = false - vim.g["semshi#mark_selected_nodes"] = false - vim.g["semshi#update_delay_factor"] = 0.001 - - vim.api.nvim_create_autocmd({ "VimEnter", "ColorScheme" }, { - callback = function() - vim.cmd([[ - highlight! semshiGlobal gui=italic - highlight! link semshiImported @lsp.type.namespace - highlight! link semshiParameter @lsp.type.parameter - highlight! link semshiParameterUnused DiagnosticUnnecessary - highlight! link semshiBuiltin @function.builtin - highlight! link semshiAttribute @field - highlight! link semshiSelf @lsp.type.selfKeyword - highlight! link semshiUnresolved @lsp.type.unresolvedReference - highlight! link semshiFree @comment - ]]) - end, - }) - end, - }, - - -- Colorscheme + -- COLORSCHEME -- In neovim, the choice of color schemes is unfortunately not purely -- aesthetic – treesitter-based highlighting or newer features like semantic -- highlighting are not always supported by a color scheme. It's therefore @@ -391,21 +358,6 @@ local plugins = { "chrisgrieser/nvim-puppeteer", dependencies = "nvim-treesitter/nvim-treesitter", }, - - -- select virtual environments - -- - makes pyright and debugpy aware of the selected virtual environment - -- - Select a virtual environment with `:VenvSelect` - { - "linux-cultist/venv-selector.nvim", - dependencies = { - "neovim/nvim-lspconfig", - "nvim-telescope/telescope.nvim", - "mfussenegger/nvim-dap-python", - }, - opts = { - dap_enabled = true, -- makes the debugger work with venv - }, - }, } --------------------------------------------------------------------------------