mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-24 19:03:49 -08:00
36 lines
786 B
Nix
36 lines
786 B
Nix
# LSP setup
|
|
{ pkgs, inputs, ... }:
|
|
{
|
|
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;
|
|
typst-lsp.enable = true;
|
|
marksman.enable = true;
|
|
};
|
|
};
|
|
plugins.typescript-tools.enable = true;
|
|
plugins.lsp-lines.enable = true;
|
|
extraPlugins = [
|
|
(pkgs.vimUtils.buildVimPlugin {
|
|
name = "haskell-tools-nvim";
|
|
src = inputs.haskell-tools;
|
|
})
|
|
(pkgs.vimUtils.buildVimPlugin {
|
|
name = "rustaceanvim";
|
|
src = inputs.rustaceanvim;
|
|
})
|
|
];
|
|
}
|