nvim: enable more language servers
This commit is contained in:
parent
aec0d3b8f3
commit
928a557707
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, lib, mail, ... }:
|
{ pkgs, mail, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./nixvim ];
|
imports = [ ./nixvim ];
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
{ config, pkgs, lib, mail, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
# TODO
|
# TODO
|
||||||
# Linter (ale)
|
# Linter (ale)
|
||||||
# Markdown spellcheck
|
# Markdown spellcheck
|
||||||
# Autocomplete
|
# Autocomplete
|
||||||
# Missing plugins
|
# Missing plugins
|
||||||
# Telescope and fuzzy finder
|
|
||||||
# Ruff linter for python and black formatting on save
|
|
||||||
# Language support for python, go, tofu, terraform, yaml
|
# Language support for python, go, tofu, terraform, yaml
|
||||||
# Format on exit
|
|
||||||
# Trailing spaces in statusline
|
# Trailing spaces in statusline
|
||||||
# Good example: https://github.com/fred-drake/neovim/blob/master/config/python/language.nix
|
# Good example: https://github.com/fred-drake/neovim/blob/master/config/python/language.nix
|
||||||
|
|
||||||
@ -68,6 +65,11 @@
|
|||||||
ruff.formatEnabled = false;
|
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-format.enable = true; # Automatically format on save
|
||||||
lsp-lines.enable = true; # Display lsp hints in lines
|
lsp-lines.enable = true; # Display lsp hints in lines
|
||||||
lsp-signature.enable = true; # Show function signature when typing
|
lsp-signature.enable = true; # Show function signature when typing
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, lib, ...}:
|
{ ... }:
|
||||||
{
|
{
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
plugins.telescope = {
|
plugins.telescope = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user