2024-04-14 10:18:09 +00:00
|
|
|
{ self, pkgs, ... }:
|
2023-06-09 16:25:33 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.neovim-unwrapped;
|
|
|
|
|
2024-04-14 10:18:09 +00:00
|
|
|
extraConfig = ''source ~/.dotfiles/nvim/init.vim"source ${self}/nvim/init.vim'';
|
2023-06-09 16:25:33 +00:00
|
|
|
|
|
|
|
coc = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
2023-06-09 16:50:35 +00:00
|
|
|
languageserver = {
|
2023-06-09 16:25:33 +00:00
|
|
|
nix = {
|
2023-06-09 16:50:35 +00:00
|
|
|
command = "nil";
|
2023-06-09 16:25:33 +00:00
|
|
|
filetypes = [ "nix" ];
|
2023-06-09 16:50:35 +00:00
|
|
|
rootPatterns = [ "flake.nix" ];
|
|
|
|
"settings.nil" = {
|
2024-01-15 13:00:32 +00:00
|
|
|
"formatting.command" = [ "nixpkgs-fmt" ];
|
2023-06-09 16:50:35 +00:00
|
|
|
};
|
2023-06-09 16:25:33 +00:00
|
|
|
};
|
|
|
|
"go.goPlsOptions" = {
|
|
|
|
completion = true;
|
|
|
|
completeUnimported = true;
|
|
|
|
};
|
2024-01-15 13:00:32 +00:00
|
|
|
rescript = {
|
|
|
|
enable = true;
|
|
|
|
command = "rescript-language-server";
|
|
|
|
args = [ "--node-ipc" ];
|
|
|
|
filetypes = [ "rescript" ];
|
|
|
|
rootPatterns = [ "rescript.json" "bsconfig.json" ];
|
|
|
|
};
|
2023-06-09 16:25:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|