2024-08-24 23:36:19 -07:00
|
|
|
# LSP setup
|
2024-09-02 18:28:53 -07:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2024-08-24 23:36:19 -07:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
rust-analyzer
|
|
|
|
lua-language-server
|
|
|
|
];
|
|
|
|
|
|
|
|
plugins.lsp = {
|
|
|
|
enable = true;
|
|
|
|
inlayHints = true;
|
|
|
|
servers = {
|
|
|
|
bashls.enable = true;
|
|
|
|
clangd.enable = true;
|
|
|
|
pyright.enable = true;
|
|
|
|
nixd.enable = true;
|
|
|
|
nushell.enable = true;
|
|
|
|
svelte.enable = true;
|
|
|
|
tailwindcss.enable = true;
|
2024-09-04 10:53:48 -07:00
|
|
|
typst-lsp.enable = true;
|
2024-08-24 23:36:19 -07:00
|
|
|
marksman.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2024-08-28 01:34:03 -07:00
|
|
|
plugins.typescript-tools.enable = true;
|
2024-08-24 23:36:19 -07:00
|
|
|
plugins.lsp-lines.enable = true;
|
|
|
|
extraPlugins = [
|
|
|
|
(pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "haskell-tools-nvim";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "mrcjkb";
|
|
|
|
repo = "haskell-tools.nvim";
|
|
|
|
rev = "959eac0fadbdd27442904a8cb363f39afb528027";
|
|
|
|
hash = "sha256-5CS5kvUSqQJe7iFFpicinBjCQXgFPL0ElGgnrZHTT+Y=";
|
|
|
|
};
|
|
|
|
})
|
|
|
|
(pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "rustaceanvim";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "mrcjkb";
|
|
|
|
repo = "rustaceanvim";
|
|
|
|
rev = "7cba8e599deca98d4b44cac1bcbd720c62937d90";
|
|
|
|
hash = "sha256-OYfeJuo4FZUBdW9wGGCT0lZGYr/ur1uy8frcyUJMF3k=";
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|