1
0
Fork 0

nvim: Add nil_ls

This commit is contained in:
Daniel Kempkens 2022-09-26 22:03:29 +02:00
parent 5a2c054f01
commit b38acff125
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 15 additions and 12 deletions

View file

@ -27,11 +27,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1664143588, "lastModified": 1664210064,
"narHash": "sha256-I1qaa8VMISprKulco2bxiIJUaz1NGiKmlsQuM996yzM=", "narHash": "sha256-df6nKVZe/yAhmJ9csirTPahc0dldwm3HBhCVNA6qWr0=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "95ba7e548d55e74c36369dbd6a4bfe99a543c835", "rev": "02d2551c927b7d65ded1b3c7cd13da5cc7ae3fcf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -79,11 +79,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1664146938, "lastModified": 1664217366,
"narHash": "sha256-fIvsJ3qWiD6o3qH9iU66OsL8uG5C1FGXcuaNEctJv8M=", "narHash": "sha256-YsqVv0D4YIXjeaz37V4/aRZrkAtEMZpFTn+tduI5fAM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9e7394523eb4f298528d457e316fc752bdf07151", "rev": "65b65ce5ef08d54bc09336fe3f35e33be487e2fe",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -4,7 +4,8 @@
diagnostic (require :nifoc.diagnostic) diagnostic (require :nifoc.diagnostic)
formatting (require :nifoc.formatting)] formatting (require :nifoc.formatting)]
(fn custom-attach [client bufnr] (fn custom-attach [client bufnr]
(navic.attach client bufnr) (when (client.supports_method :textDocument/documentSymbol)
(navic.attach client bufnr))
(diagnostic.maybe-enable-lsp client bufnr) (diagnostic.maybe-enable-lsp client bufnr)
(formatting.maybe-enable-lsp client bufnr)) (formatting.maybe-enable-lsp client bufnr))
@ -32,6 +33,7 @@
:erlangls :erlangls
:eslint :eslint
:html :html
:nil_ls
:rnix :rnix
:sqls :sqls
:svelte :svelte

View file

@ -24,6 +24,7 @@ in
ripgrep ripgrep
# LSP # LSP
nil
nodePackages.bash-language-server nodePackages.bash-language-server
nodePackages.dockerfile-language-server-nodejs nodePackages.dockerfile-language-server-nodejs
nodePackages.svelte-language-server nodePackages.svelte-language-server

View file

@ -289,8 +289,8 @@ rec {
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "numtostr"; owner = "numtostr";
repo = "comment.nvim"; repo = "comment.nvim";
rev = "256cea0082c404cdced10319e9fa7580d33cf255"; rev = "7cc86127d30f7001a6e83c8b72656f17a67bc55f";
sha256 = "188wbh4wx256sna6b8m3hrsdfv529g6n928l220sy65kkv2dvj6k"; sha256 = "1jl2wwr8ssszgkynnkxpz2c57mw7yapvrc892jrnkbkj6lv7h8vi";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -483,12 +483,12 @@ rec {
}; };
nvim-surround = pkgs.vimUtils.buildVimPluginFrom2Nix { nvim-surround = pkgs.vimUtils.buildVimPluginFrom2Nix {
pname = "nvim-surround"; pname = "nvim-surround";
version = "2022-09-05"; version = "2022-09-26";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "kylechui"; owner = "kylechui";
repo = "nvim-surround"; repo = "nvim-surround";
rev = "d91787d5a716623be7cec3be23c06c0856dc21b8"; rev = "a0b35fd410e16f00543e81dbb6c52c723f49717e";
sha256 = "054kpdx7s0pj49yqf5111f1dsfh80js6fxlma1r0mds5q7vw5mav"; sha256 = "1krsgy0x3x9bml8iszd0svz9iqmdn73yn15n49ffznq3vj3gafr2";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };