Nixvim: Add Go support
This commit is contained in:
parent
0c8b4ccfa9
commit
d987e13e04
3 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue