feat(nvim): add python lsp and formatters, and go
This commit is contained in:
parent
742a7e910e
commit
b619eaacf4
3 changed files with 7 additions and 4 deletions
|
@ -5,6 +5,7 @@ local options = {
|
||||||
html = { "prettier" },
|
html = { "prettier" },
|
||||||
js = { "prettier" },
|
js = { "prettier" },
|
||||||
php = { "php_cs_fixer" },
|
php = { "php_cs_fixer" },
|
||||||
|
python = { "black" },
|
||||||
},
|
},
|
||||||
|
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
|
|
|
@ -3,16 +3,16 @@ require("nvchad.configs.lspconfig").defaults()
|
||||||
|
|
||||||
local lspconfig = require "lspconfig"
|
local lspconfig = require "lspconfig"
|
||||||
|
|
||||||
-- EXAMPLE
|
-- cf. https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md
|
||||||
local servers = {
|
local servers = {
|
||||||
"html",
|
"html",
|
||||||
"cssls",
|
"cssls",
|
||||||
"phpactor",
|
"phpactor",
|
||||||
"gopls",
|
"gopls",
|
||||||
-- "intelephense",
|
|
||||||
"jsonls",
|
"jsonls",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"nixd",
|
"nixd",
|
||||||
|
"pylsp",
|
||||||
"tailwindcss",
|
"tailwindcss",
|
||||||
"templ",
|
"templ",
|
||||||
"vuels",
|
"vuels",
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
ansible
|
ansible
|
||||||
atuin
|
atuin
|
||||||
bat
|
bat
|
||||||
|
black
|
||||||
btop
|
btop
|
||||||
cargo
|
cargo
|
||||||
catnip
|
catnip
|
||||||
|
@ -24,6 +25,7 @@
|
||||||
gnugrep
|
gnugrep
|
||||||
gnumake
|
gnumake
|
||||||
gnupg
|
gnupg
|
||||||
|
go
|
||||||
imagemagick
|
imagemagick
|
||||||
jq
|
jq
|
||||||
git
|
git
|
||||||
|
@ -54,7 +56,9 @@
|
||||||
php83Packages.php-cs-fixer
|
php83Packages.php-cs-fixer
|
||||||
phpactor
|
phpactor
|
||||||
pinentry
|
pinentry
|
||||||
|
python312
|
||||||
python312Packages.pip
|
python312Packages.pip
|
||||||
|
python312Packages.python-lsp-server
|
||||||
ripgrep
|
ripgrep
|
||||||
slides
|
slides
|
||||||
starship
|
starship
|
||||||
|
@ -239,8 +243,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = with builtins; fromTOML (readFile ../dotfiles/starship/starship.toml);
|
settings = with builtins; fromTOML (readFile ../dotfiles/starship/starship.toml);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue