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
|
bashls.enable = true; # Bash
|
||||||
clangd.enable = true; # C/C++
|
clangd.enable = true; # C/C++
|
||||||
yamlls.enable = true; # YAML
|
yamlls.enable = true; # YAML
|
||||||
|
gopls.enable = true; # Go
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
# Lua
|
# Lua
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
deadnix.enable = true;
|
deadnix.enable = true;
|
||||||
pylint.enable = true;
|
pylint.enable = true;
|
||||||
checkstyle.enable = true;
|
checkstyle.enable = true;
|
||||||
|
golangci_lint.enable = true; # Go
|
||||||
};
|
};
|
||||||
formatting = {
|
formatting = {
|
||||||
alejandra.enable = true;
|
alejandra.enable = true;
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
shfmt.enable = true;
|
shfmt.enable = true;
|
||||||
nixpkgs_fmt.enable = true;
|
nixpkgs_fmt.enable = true;
|
||||||
google_java_format.enable = false;
|
google_java_format.enable = false;
|
||||||
|
gofmt.enable = true; # Go
|
||||||
prettier = {
|
prettier = {
|
||||||
enable = true;
|
enable = true;
|
||||||
disableTsServerFormatter = true;
|
disableTsServerFormatter = true;
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
opts = {
|
opts = {
|
||||||
number = true; # Show line numbers
|
number = true; # Show line numbers
|
||||||
relativenumber = true; # Show relative 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
|
# Always show the signcolumn, otherwise text would be shifted when displaying error icons
|
||||||
signcolumn = "yes";
|
signcolumn = "yes";
|
||||||
|
|
Loading…
Reference in a new issue