fix(nvim): setup lsps properly
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-05-09 10:42:45 -04:00
parent 0667f0f4c9
commit c8f8dc98e6

View file

@ -26,13 +26,6 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
alejandra alejandra
# FIXME: set nixd to use alejandra
(writeShellApplication {
name = "nixpkgs-fmt";
runtimeInputs = [alejandra];
text = "alejandra \"$@\"";
})
]; ];
xdg.dataFile."${flakeDir}/.nixd.json".text = builtins.toJSON { xdg.dataFile."${flakeDir}/.nixd.json".text = builtins.toJSON {
@ -55,10 +48,15 @@ in
lua lua
*/ */
'' ''
local lsp = require('lspconfig'); require('lspconfig').nixd.setup(require('coq').lsp_ensure_capabilities({
settings = {
lsp.nixd.setup({}); nixd = {
lsp.nixd.setup(require('coq').lsp_ensure_capabilities({})); formatting = {
command = { "alejandra" },
},
},
},
}));
''; '';
}; };
}; };