Add Go LSP & Formatting
This commit is contained in:
parent
ca288c4e94
commit
8444f0f341
3
home.nix
3
home.nix
@ -32,6 +32,7 @@ in
|
|||||||
imagemagick
|
imagemagick
|
||||||
k9s
|
k9s
|
||||||
kubectl
|
kubectl
|
||||||
|
android-tools
|
||||||
mosh
|
mosh
|
||||||
neofetch
|
neofetch
|
||||||
pre-commit
|
pre-commit
|
||||||
@ -45,7 +46,7 @@ in
|
|||||||
programs.jq.enable = true;
|
programs.jq.enable = true;
|
||||||
programs.pandoc.enable = true;
|
programs.pandoc.enable = true;
|
||||||
|
|
||||||
# Misc Configuration
|
# SQLite Configuration
|
||||||
home.file.".sqliterc".text = ''
|
home.file.".sqliterc".text = ''
|
||||||
.headers on
|
.headers on
|
||||||
.mode column
|
.mode column
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
font_family MesloLGM Nerd Font Mono
|
font_family MesloLGM Nerd Font Mono
|
||||||
font_size 18.0
|
font_size 18.0
|
||||||
hide_window_decorations yes
|
hide_window_decorations titlebar-only
|
||||||
shell /Users/evanreichard/.nix-profile/bin/bash --login
|
shell /Users/evanreichard/.nix-profile/bin/bash --login
|
||||||
tab_bar_style powerline
|
tab_bar_style powerline
|
||||||
|
|
||||||
|
@ -80,6 +80,14 @@ nvim_lsp.eslint.setup {
|
|||||||
cmd = {nix_vars.vscodels .. "/bin/vscode-eslint-language-server", "--stdio"}
|
cmd = {nix_vars.vscodels .. "/bin/vscode-eslint-language-server", "--stdio"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Go LSP Configuration
|
||||||
|
nvim_lsp.gopls.setup {
|
||||||
|
on_attach = on_attach_no_formatting,
|
||||||
|
flags = lsp_flags,
|
||||||
|
capabilities = capabilities,
|
||||||
|
cmd = {nix_vars.gopls .. "/bin/gopls"}
|
||||||
|
}
|
||||||
|
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
--------------------- Null-LS LSP --------------------
|
--------------------- Null-LS LSP --------------------
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
@ -90,7 +98,7 @@ null_ls.setup({
|
|||||||
null_ls.builtins.completion.spell,
|
null_ls.builtins.completion.spell,
|
||||||
null_ls.builtins.formatting.nixpkgs_fmt,
|
null_ls.builtins.formatting.nixpkgs_fmt,
|
||||||
null_ls.builtins.formatting.lua_format,
|
null_ls.builtins.formatting.lua_format,
|
||||||
null_ls.builtins.formatting.prettier,
|
null_ls.builtins.formatting.prettier, null_ls.builtins.formatting.gofmt,
|
||||||
null_ls.builtins.diagnostics.sqlfluff
|
null_ls.builtins.diagnostics.sqlfluff
|
||||||
.with({extra_args = {"--dialect", "ansi"}}),
|
.with({extra_args = {"--dialect", "ansi"}}),
|
||||||
null_ls.builtins.formatting.sqlfluff
|
null_ls.builtins.formatting.sqlfluff
|
||||||
|
@ -112,6 +112,7 @@ in
|
|||||||
nodePackages.typescript
|
nodePackages.typescript
|
||||||
nodePackages.typescript-language-server
|
nodePackages.typescript-language-server
|
||||||
nodePackages.vscode-langservers-extracted
|
nodePackages.vscode-langservers-extracted
|
||||||
|
gopls
|
||||||
|
|
||||||
# Formatters
|
# Formatters
|
||||||
luaformatter
|
luaformatter
|
||||||
@ -142,6 +143,7 @@ in
|
|||||||
tsserver = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server",
|
tsserver = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server",
|
||||||
tslib = "${pkgs.nodePackages.typescript}/lib/node_modules/typescript/lib/",
|
tslib = "${pkgs.nodePackages.typescript}/lib/node_modules/typescript/lib/",
|
||||||
vscodels = "${pkgs.nodePackages.vscode-langservers-extracted}",
|
vscodels = "${pkgs.nodePackages.vscode-langservers-extracted}",
|
||||||
|
gopls = "${pkgs.gopls}",
|
||||||
}
|
}
|
||||||
return nix_vars
|
return nix_vars
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user