From 6f4d847d16c44d4791503c82b94d67a419cba138 Mon Sep 17 00:00:00 2001 From: Ivan Golikov Date: Mon, 16 Dec 2024 22:02:29 +0100 Subject: [PATCH] Python LSP base configuration for Neovim --- .config/nvim/lua/configs/lspconfig.lua | 2 +- .local/share/dotfiles/install_dev_tools.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/configs/lspconfig.lua b/.config/nvim/lua/configs/lspconfig.lua index 478df01..f8a0367 100644 --- a/.config/nvim/lua/configs/lspconfig.lua +++ b/.config/nvim/lua/configs/lspconfig.lua @@ -4,7 +4,7 @@ require("nvchad.configs.lspconfig").defaults() local lspconfig = require "lspconfig" -- EXAMPLE -local servers = { "html", "cssls" } +local servers = { "basedpyright" } local nvlsp = require "nvchad.configs.lspconfig" -- lsps with default config diff --git a/.local/share/dotfiles/install_dev_tools.yml b/.local/share/dotfiles/install_dev_tools.yml index 8d6580c..cae4e9b 100644 --- a/.local/share/dotfiles/install_dev_tools.yml +++ b/.local/share/dotfiles/install_dev_tools.yml @@ -19,6 +19,10 @@ pacman_packages: - python-pipx + pipx_packages: + - poetry + - basedpyright + macos_fish_path: /usr/local/bin/fish arch_fish_path: /usr/bin/fish @@ -51,6 +55,9 @@ become: true when: is_arch + - name: Install pipx packages + ansible.builtin.command: pipx install {{ pipx_packages|join(' ') }} + - name: Set fish as default shell become: true ansible.builtin.user: