nvim: enable more language servers

This commit is contained in:
Johannes Rothe 2024-12-21 19:04:51 +01:00
parent aec0d3b8f3
commit 928a557707
3 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, mail, ... }:
{ pkgs, mail, ... }:
{
imports = [ ./nixvim ];

View File

@ -1,14 +1,11 @@
{ config, pkgs, lib, mail, ... }:
{ pkgs, ... }:
{
# TODO
# Linter (ale)
# Markdown spellcheck
# Autocomplete
# Missing plugins
# Telescope and fuzzy finder
# Ruff linter for python and black formatting on save
# Language support for python, go, tofu, terraform, yaml
# Format on exit
# Trailing spaces in statusline
# Good example: https://github.com/fred-drake/neovim/blob/master/config/python/language.nix
@ -68,6 +65,11 @@
ruff.formatEnabled = false;
};
};
lsp.servers.gopls.enable = true;
lsp.servers.nixd.enable = true;
lsp.servers.terraform_lsp.enable = true;
lsp.servers.tflint.enable = true;
lsp.servers.yamlls.enable = true;
lsp-format.enable = true; # Automatically format on save
lsp-lines.enable = true; # Display lsp hints in lines
lsp-signature.enable = true; # Show function signature when typing

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ...}:
{ ... }:
{
programs.nixvim = {
plugins.telescope = {