Nixvim: Add Go support

This commit is contained in:
GHOSCHT 2025-01-04 13:15:57 +01:00
parent 0c8b4ccfa9
commit d987e13e04
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
3 changed files with 5 additions and 2 deletions

View file

@ -17,7 +17,7 @@
bashls.enable = true; # Bash
clangd.enable = true; # C/C++
yamlls.enable = true; # YAML
gopls.enable = true; # Go
lua_ls = {
# Lua
enable = true;

View file

@ -12,6 +12,7 @@
deadnix.enable = true;
pylint.enable = true;
checkstyle.enable = true;
golangci_lint.enable = true; # Go
};
formatting = {
alejandra.enable = true;
@ -19,6 +20,7 @@
shfmt.enable = true;
nixpkgs_fmt.enable = true;
google_java_format.enable = false;
gofmt.enable = true; # Go
prettier = {
enable = true;
disableTsServerFormatter = true;

View file

@ -13,7 +13,8 @@
opts = {
number = true; # Show line numbers
relativenumber = true; # Show relative line numbers
shiftwidth = 2; # Tab width should be 2
shiftwidth = 0; # Tab width should be 2
tabstop = 3; # Tab width should be 4
# Always show the signcolumn, otherwise text would be shifted when displaying error icons
signcolumn = "yes";