mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Compare commits
2 Commits
e53ee104ec
...
855a88b532
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
855a88b532 | ||
|
|
892cd49f06 |
@ -65,7 +65,7 @@ pip install -U pynvim
|
|||||||
[python-lsp-server (pylsp)](https://github.com/python-lsp/python-lsp-server) is a Python [Language Server](https://microsoft.github.io/language-server-protocol/) for completion, linting, go to definition, etc.
|
[python-lsp-server (pylsp)](https://github.com/python-lsp/python-lsp-server) is a Python [Language Server](https://microsoft.github.io/language-server-protocol/) for completion, linting, go to definition, etc.
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install 'python-lsp-server[all]' pylsp-mypy pyls-isort
|
pip install 'python-lsp-server[all]' pylsp-mypy python-lsp-isort python-lsp-black
|
||||||
```
|
```
|
||||||
|
|
||||||
Note the executable for pylsp is also named `pylsp`. You need to set its PATH correctly.
|
Note the executable for pylsp is also named `pylsp`. You need to set its PATH correctly.
|
||||||
|
|||||||
@ -68,7 +68,7 @@ fi
|
|||||||
|
|
||||||
# Install some Python packages used by Nvim plugins.
|
# Install some Python packages used by Nvim plugins.
|
||||||
echo "Installing Python packages"
|
echo "Installing Python packages"
|
||||||
declare -a PY_PACKAGES=("pynvim" 'python-lsp-server[all]' "black" "vim-vint" "pyls-isort" "pylsp-mypy")
|
declare -a PY_PACKAGES=("pynvim" 'python-lsp-server[all]' "vim-vint" "python-lsp-isort" "pylsp-mypy" "python-lsp-black")
|
||||||
|
|
||||||
if [[ "$SYSTEM_PYTHON" = true ]]; then
|
if [[ "$SYSTEM_PYTHON" = true ]]; then
|
||||||
echo "Using system Python to install $(PY_PACKAGES)"
|
echo "Using system Python to install $(PY_PACKAGES)"
|
||||||
|
|||||||
@ -27,7 +27,7 @@ scoop install miniconda3
|
|||||||
pip install -U pynvim
|
pip install -U pynvim
|
||||||
|
|
||||||
# Install python-language-server
|
# Install python-language-server
|
||||||
pip install 'python-lsp-server[all]' pylsp-mypy pyls-isort
|
pip install 'python-lsp-server[all]' pylsp-mypy python-lsp-isort
|
||||||
|
|
||||||
# Install visual c++ redistribution
|
# Install visual c++ redistribution
|
||||||
scoop install vcredist2022
|
scoop install vcredist2022
|
||||||
|
|||||||
1
init.lua
1
init.lua
@ -43,6 +43,7 @@ for _, file_name in ipairs(core_conf_files) do
|
|||||||
vim.cmd(source_cmd)
|
vim.cmd(source_cmd)
|
||||||
else
|
else
|
||||||
local module_name, _ = string.gsub(file_name, "%.lua", "")
|
local module_name, _ = string.gsub(file_name, "%.lua", "")
|
||||||
|
package.loaded[module_name] = nil
|
||||||
require(module_name)
|
require(module_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user