Go: LSP in vim
This commit is contained in:
parent
629cf069f1
commit
13db1d5f60
3 changed files with 3 additions and 1 deletions
|
|
@ -85,7 +85,7 @@
|
||||||
../../modules/hm/development/data.nix
|
../../modules/hm/development/data.nix
|
||||||
# ../../modules/hm/development/database.nix
|
# ../../modules/hm/development/database.nix
|
||||||
../../modules/hm/development/docker.nix
|
../../modules/hm/development/docker.nix
|
||||||
# ../../modules/hm/development/go.nix
|
../../modules/hm/development/go.nix
|
||||||
../../modules/hm/development/javascript.nix
|
../../modules/hm/development/javascript.nix
|
||||||
../../modules/hm/development/kubernetes.nix
|
../../modules/hm/development/kubernetes.nix
|
||||||
../../modules/hm/development/latex.nix
|
../../modules/hm/development/latex.nix
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,6 @@
|
||||||
|
|
||||||
home.packages =
|
home.packages =
|
||||||
(lib.optionals config.programs.helix.enable [ pkgs.gopls ])
|
(lib.optionals config.programs.helix.enable [ pkgs.gopls ])
|
||||||
|
++ (lib.optionals config.programs.neovim.enable [ pkgs.gopls ])
|
||||||
++ (lib.optionals config.programs.kakoune.enable [ pkgs.gopls ]);
|
++ (lib.optionals config.programs.kakoune.enable [ pkgs.gopls ]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@ end
|
||||||
|
|
||||||
-- LSP configuration
|
-- LSP configuration
|
||||||
lspconfig["html"].setup { capabilities = capabilities, on_attach = on_attach}
|
lspconfig["html"].setup { capabilities = capabilities, on_attach = on_attach}
|
||||||
|
lspconfig["gopls"].setup { capabilities = capabilities, on_attach = on_attach}
|
||||||
lspconfig["pylsp"].setup { capabilities = capabilities, on_attach = on_attach}
|
lspconfig["pylsp"].setup { capabilities = capabilities, on_attach = on_attach}
|
||||||
lspconfig["nil_ls"].setup { capabilities = capabilities, on_attach = on_attach, settings = {
|
lspconfig["nil_ls"].setup { capabilities = capabilities, on_attach = on_attach, settings = {
|
||||||
["nil"] = {
|
["nil"] = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue