mirror of
https://github.com/wlcx/home.git
synced 2025-11-03 14:33:44 +00:00
Compare commits
2 Commits
96396f67a7
...
2231683ffc
| Author | SHA1 | Date | |
|---|---|---|---|
| 2231683ffc | |||
| 9017475528 |
8
flake.lock
generated
8
flake.lock
generated
@ -62,16 +62,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671040593,
|
"lastModified": 1672102598,
|
||||||
"narHash": "sha256-W5aZNwYBjaEaLifDWGEfecvnCiDkXjI26rHgidSftUM=",
|
"narHash": "sha256-7fzlPrDEpej/8ORSk7V4H4W6koOMD0juQ/M7whewNpk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "170e39462b516bd1475ce9184f7bb93106d27c59",
|
"rev": "93c0d5dcf02409fe705500e90af38b33d3a259d3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-22.11",
|
"ref": "release-22.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
description = "Samw's home environment, as managed by nix/home-manager.";
|
description = "Samw's home environment, as managed by nix/home-manager.";
|
||||||
inputs = {
|
inputs = {
|
||||||
# Nixpkgs
|
# Nixpkgs
|
||||||
nixpkgs = {url = "github:nixos/nixpkgs/nixos-22.11";};
|
nixpkgs = {url = "github:nixos/nixpkgs/release-22.11";};
|
||||||
# Other modules
|
# Other modules
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-22.11";
|
url = "github:nix-community/home-manager/release-22.11";
|
||||||
|
|||||||
@ -32,6 +32,7 @@ in {
|
|||||||
dhall-vim
|
dhall-vim
|
||||||
kotlin-vim
|
kotlin-vim
|
||||||
Jenkinsfile-vim-syntax
|
Jenkinsfile-vim-syntax
|
||||||
|
html5-vim
|
||||||
]
|
]
|
||||||
# delve is unsupported on aarch64-linux and golangci-lint is broken on darwin
|
# delve is unsupported on aarch64-linux and golangci-lint is broken on darwin
|
||||||
# (see https://github.com/NixOS/nixpkgs/issues/168984).
|
# (see https://github.com/NixOS/nixpkgs/issues/168984).
|
||||||
|
|||||||
@ -62,6 +62,20 @@ require'lspconfig'.rnix.setup{
|
|||||||
require'lspconfig'.rust_analyzer.setup{
|
require'lspconfig'.rust_analyzer.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
commands = {
|
||||||
|
RustOpenDocs = {
|
||||||
|
function()
|
||||||
|
vim.lsp.buf_request(vim.api.nvim_get_current_buf(), 'experimental/externalDocs', vim.lsp.util.make_position_params(), function(err, url)
|
||||||
|
if err then
|
||||||
|
error(tostring(err))
|
||||||
|
else
|
||||||
|
vim.fn['netrw#BrowseX'](url, 0)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end,
|
||||||
|
description = 'Open documentation for the symbol under the cursor in default browser',
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
require'lspconfig'.dhall_lsp_server.setup{
|
require'lspconfig'.dhall_lsp_server.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user